Android的:如何改变ExpandableListView指示灯的位置?指示灯、位置、Android、ExpandableListView

2023-09-04 11:55:07 作者:筅潹、莪僦籟丄伱ㄋ

我想改变这种状况出现在ExpandableListView集团查看默认箭头的位置。我想它是不是被向左向右。

I want to change the position of the default arrow that appears in the Group view of the ExpandableListView. I want it to be to the right instead of being to the left.

如何才能做到这一点?

推荐答案

使用setIndicatorBounds:

设定绘图界限指标(至少,组   指示器受此;儿童指示器受此   如果孩子的指标范围设置为继承)。

Sets the drawing bounds for the indicators (at minimum, the group indicator is affected by this; the child indicator is affected by this if the child indicator bounds are set to inherit).