I have to move the indicator from the left to the right (because of the plane image). I couldn't succeed also because the expandableviewlist is inside a fragment and not inside a whole activity. Any idea? Thanks!
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
another solution to put the indicator on the right programmatically:
where
expandableListView
is yourExpandableListview
One more solution is: 1) First set groupIndicator in your ExpandableListView to @null:
2) Then create group_indicator.xml file with following details:
3) Then create group_header.xml layout with following details and inflate this layout in getGroupView() method of ExpandableListAdapter.java:
3) In getGroupView() method of your ExpandableListAdapter.java class, just set the following:
With this approach, your down_icon and up_icon will work properly. Hope this helps.
In your groupcustom.xml file you can use Relativelayout and put that image to
I don't know a way to do that from XML but i'll tell you a way to do so dynamically in your adapter.
First you have to remove group indicator from your xml
Then in your layout of the parent add an imageview in the right position of your layout.
Then in your custom adapter do the following