Creating iPhone style bubble list view in android - android

I am creating a chat application the interacts between two users. I want to show the interaction between the users in the form of a iPhone bubble list view...
I found a tutorial that shows to create a bubble list in IOS... Here's the link......
I have seen lot of Android applications that display the bubble list view like Handcent sms etc. I am also sure that some developers here may have a clue about doing it... I would be grateful if any one direct me towards a tutorial or some samples of achieving the task...

You want something like this?
Click on the screen shots.
that is a twitter application that presents tweets in a bubble like format.
You'll have to implement a custom adapter for you ListView, where inside the getView() method, you can control how each row is drawn.
Implement different custom layouts for even-odd rows and you can something like this.
EDIT: You can find a full tutorial here: http://thetechnib.blogspot.com/2010/12/android-tutorial-custom-adapter-for.html

Related

material design two line list in android

this might be a duplicate question but I'm wondering how to use the two-line list from "material design" on a recycler view. I can't figure it out, and I can't find anything on Youtube and Stackoverflow after searching for about an hour.
I want to create something like the picture below.
This image is directly from the website itself: https://material.io/components/lists
Thanks!
Well, in order to do so, it would suffice to use android.R.layout.simple_list_item_2 as the row layout in your Adapter. Although it won't have the overflow menu icon. I don't know if you are trying to replicate that exact same list you posted.
But honestly, I don't know what's your Android experience. Do you have a working understanding of RecyclerViews and Adapters?
The link you provided shows Material Design guidelines. It doesn't necessarily mean that those lists and functionalities are ready to use with any basic Adapter you implement. For complex rows, you need to provide the layout, as well as implement functionality to user-initiated events such as click listeners, swipes, drags, etc.
For me, codelabs are always a good place to start with some hands-on exercise.
RecyclerView codelab:
https://developer.android.com/codelabs/kotlin-android-training-recyclerview-fundamentals?index=..%2F..android-kotlin-fundamentals&authuser=1#0

Android: How to create an expanding list like in Youtube app

I was looking at the Android YouTube app from Nov 2012, I they have a "list" like view which shows the related videos to the current video. If they click on the "more" part, it loads more below.
What I want to know is how they are implementing this screen al together. It doesn't seem like it is a standard ExpandableList in Android. But can someone maybe give some input?
I have done something similar by creating a LinearLayout and then adding more to the viewgroup as I create them. But then the problem is that they aren't managed by an adapter and the views are very static.

In Android how can I design a view like the attached image?

I am new in android and I have a view which is in the attach image. I have to open this view after clicking on list item, but I am not finding any proper way to solve this please suggest me how can i open a dialog like in Image.
Check PopupWindow control in android developers, does exactly what you want. There are numerous tutorials on the web on how to customize, animate, have functionality etc. It has an onCreate method and in simple words it works just like an Activity with specific bounds. It can be attached and shown anywhere and anytime. It's actually quite useful. When you don't want to use dialogs this is the best option.

android 4.0 spinner usage

I want to be able to do what is on the picture, provided by this link, under the "Allow cutting through hierarchies" section. I thought that I could do that using a spinner, but from the android documentation I realized that a spinner can show one child at a time and lets the user pick among them. In my case, (and from the example I provided), you have some other text displayed, and then you can choose from some other options provided in sth that looks like a popup, list that contains the things that i want to choose from. I don't know how this is implemented, but it's used in the google music app for android 4.0. If someone has an idea, have implemented sth like this, please give me some advice.
It is not a spinner. Its just a view (in the Mail app a relative layout) See here
On click this View opens a popupmenu.
Therefore it is looking like a spinner but you can add you custom behaviour.

Extra information within a ListView

I have a list view with some items in it and I would like to know how to add extra information to the side of this? I have a photoshopped example below of what I mean, it's difficult to describe without an image or I would have used google to try and find the answer myself. I want it with the extra text on the right hand side, i've seen it done easily within the iPhone but i'm a bit stuck with android. Thanks.
it's easy in Android too, you need to create a custom layout for a list item and set up an adapter to write to the fields of your new layout. here an example.

Categories

Resources