Expandable list view move group icon indicator to right in jellyBean 4.3 version?

后端 未结 2 1784
野趣味
野趣味 2020-12-14 12:35

The below method is not working in android version jellybean 4.3.

historyExpaLV.setIndicatorBounds(historyExpaLV.getRight() - 60,
                    history         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 12:59

    i think it's bug

    int right = (int) (getResources().getDisplayMetrics().widthPixels - TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 30, getResources().getDisplayMetrics()));
        expandableListView.setIndicatorBounds(right - getResources().getDrawable(R.drawable.group_indicator_padding).getIntrinsicWidth(), right);
    

    this code works fine up to 4.2.2 and do nothing on 4.3

提交回复
热议问题