android开发中的问题集锦(慢慢搬运...)
1, android 设置ExpandableListView 系统默认箭头到右边
if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) { //< android 4.3 elv.setIndicatorBounds(width - 10 - 50, width - 10); //width 为控件宽度 }else{ elv.setIndicatorBoundsRelative(width - 10 - 50, width - 10); //API 18 =4.3 }
====================== 养成写博客的好习惯 ============================