用于导航的变化指示器图标和expandablelistview尺寸:机器人 [英] android:change indicator icon and size of expandablelistview used for navigation

查看:124
本文介绍了用于导航的变化指示器图标和expandablelistview尺寸:机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个应用程序中,我必须使用给定的图像可扩展列表视图.Actully我说的指示器图标和它的大小而导航path.Can谁能告诉我如何改变这种形象。任何帮助会AP preciated。

I am making an app in which i have to use given images for expandable list view .Actully i am talking of indicator icon and its size which navigate the path.Can anyone tell me how to change that image .Any help will be appreciated.

推荐答案

您可以使用下面的code:

You can use the following code:

<ExpandableListView android:id="@+id/android:list"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:layout_marginTop="10dp"
    android:groupIndicator="@drawable/settings_selector" />

...其中 setting_selector 是:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
   <item android:drawable="@drawable/up_arrow" 
         android:state_empty="true" />
   <item android:drawable="@drawable/down_arrow" 
         android:state_expanded="true" />
</selector>

这篇关于用于导航的变化指示器图标和expandablelistview尺寸:机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆