开发者

Listview theming issues

开发者 https://www.devze.com 2023-04-02 08:56 出处:网络
This is probably a simple question, but I really have tried searching here and google with no joy. I can make listview lists by following the many tutorials on the net. The problem is, they always se

This is probably a simple question, but I really have tried searching here and google with no joy.

I can make listview lists by following the many tutorials on the net. The problem is, they always seem to churn o开发者_开发知识库ut lists that don't seem similar in appearance to the bulk of the lists I see in apps. For example, I've attached a screenshot of a menu in the Chainfire3D app. It uses the 'standard' blue dividers, white titles and smaller blue 'description' text for the second line. This style of menu/list is used in many of the market apps I have. Feedly is another example. Every time I create a listview I get either all white text (or text which is themed by whatever I have used in the layout). Are there 2 line menus, with white and blue text that are easy to create, because I'm having to specify the colours in XML etc if I want them to look this way. Also, to get two line listviews I have been using a custom adapter and 2 textviews on top of each other in a layout. I tried a 'simple_list_item_2' and that worked but again it didn't take this 'standard' theme. I'm sure I'm missing something. Anyone know what?

Ideally, can someone share some code with me that will create a 2 item listviews, ideally (if poss) with a suitable adapter that will allow the running of different activities based on menu items presses. Here's hoping you can help.

Listview theming issues


The easiest way is to customize your layout.

You can find good examples here or here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号