Ric*_*rdP 5 android expandablelistview
我正在使用此代码设置我自己的组指示器图标并将其设置为列表的右侧
ExpandableListView list = (ExpandableListView) findViewById(R.id.SCHEDULE);
Drawable icon = StationInfo2.this.getResources().getDrawable(R.drawable.expander_group);
list.setGroupIndicator(icon);
list.setIndicatorBounds(list.getWidth() - 80, list.getWidth() - 40);
Run Code Online (Sandbox Code Playgroud)
它可以显示我自己的图标,但图标显示的尺寸错误.
Becouse我是新来的,我不能发布链接或图像来展示它的外观,但我希望有人知道我该怎么做?
你应该使用 9-patch 来绘制它。
http://developer.android.com/tools/help/draw9patch.html
将黑色像素放在角落。那会有帮助的。(如果您需要更多信息,请联系我)。看看原版你看到黑点了吗?为您的形象制作它们。

| 归档时间: |
|
| 查看次数: |
6828 次 |
| 最近记录: |