getResouce().getColor(int id)在API 23以上版本时被废弃了,替换为方法getR...
Read more
在设置LinearLayout的orientation为horizontal的时候,每个横向子控件如果想要大小一样的话,设置他们的”layout_w...
Read more
通常我们修改Button的颜色会通过修改”android:background”属性来修改Button的背景颜色,但是这样做会丢失Button默认的...
Read more
Android系统版本不断的在更新,最新的版本可以提供更好的APIs,但是在更多的设备更新之前,仍然需要在app中对旧版本提供支持。
...
Read more