android开发中遇到的问题

7.ExpandableListView setOnChildClickListener无效,请在adapter的方法isChildSelectable返回true即可

6.使用<shape/>画虚线无效。从android3.0开始,安卓关闭了硬件加速功能,所以就不能显示了,所以就是在 AndroidManifest.xml,或者是在activity中把硬件加速的功能关掉就可以了android:hardwareAccelerated="false"或者是view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

5.service停止后,里面的线程不会停止运行

4.setResultonPause/onStop等方法设置无效的解决方案

//重写onBackPressed
public void onBackPressed(){
    setResult();
    super.onBackPressed();  
}

3.strings.xml中使用空格

&#160;(注: &nbsp;不可用)

 2.ExpandableListView设置android:divider无效

解决方案,没有设置android:dividerHeight

1.自定义RadioButton的setMinimumWidth无效

查文档,无法保证一定设置成功,可能受父Layout的影响而无法生效。而我的布局正是自定义的FlowLayout

Sets the minimum width of the view. It is not guaranteed the view will be able to achieve this minimum width (for example, if its parent layout constrains it with less available width).
原文地址:https://www.cnblogs.com/baron89/p/4310377.html