Change the arrow in ExpandableList View



  • May ExpandableListView You want me to change the drop list in the group, so she's not on the left side, but on the right?



  • I found a decision to change my position. Expandable indicator On the left to the right, used this code:

     Display newDisplay = getWindowManager().getDefaultDisplay();
            int width = newDisplay.getWidth();
            if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) {
                expListView.setIndicatorBounds(width-50, width);
            } else {
                expListView.setIndicatorBoundsRelative(width-50, width);
            }
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2