How can I make my ListView row look like the Twitter app [Screenshot]?

ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:textColor="#444444" android:divider="@drawable/list_divider" android:dividerHeight="1px" android:cacheColor.

Create your own divider gradient named “list_divider” which is an xml file that you throw in your drawable folder. You just specify the colors for the left, center and right side: list_divider. Xml layout for each row in the list.

This is also done through a layout xml file that you specify later in your code. Row. Xml edit: removed line number, because I m a kind person.

2 Ouch! Those line numbers are certainly going to make the OP do some extra work. – Mr. Disappointment May 23 at 14:14.

Heere ya go: you just use linear layout instead of relative. And use its weights. And the last important thing is to wrap views inside layout components.

Like ImageView inside another linearlayout or relative etc.. so try some combinations with this and it will work fine. Also for the list divider you can set a null drawable or a custom shape etc. Your row background can also be a shape or some color or drawable.

Ids are different then yours but you should find it out. Do not use 5 or so LinearLayouts ... it will consume more memory and slow your ListView.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions