我想在底部找到指示器,但没有找到任何解决方案,下面是将指示器向右移动的代码。 我想要like this
private void setGroupIndicatorToRight(ExpandableListView expandableListView) {
/* Get the screen width */
DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
int width = dm.widthPixels;
expandableListView.setIndicatorBounds(width - getDipsFromPixel(195), width - getDipsFromPixel(195- 30));
}
public int getDipsFromPixel(float pixels) {
final float scale = getResources().getDisplayMetrics().density;
return (int) (pixels * scale + 0.5f);
}