记录Android开发过程中遇到的问题
-
机型兼容
- Samsung SM-G9550 Android 9, API 28 TextView设置
gravity = "center"
&&layout_width = "wrap_content"
时, 画布默认向右移动width/2, 导致自定义View绘制出错
- Samsung SM-G9550 Android 9, API 28 TextView设置
-
RadioGroup
-
RadioGroup#check()
会导致OnCheckedChangeListener#onCheckedChanged()
被调用2次
-
-
View
- selector的资源文件的
android:constantSize
属性 -
View#post(Runnable)
中Runnable
的调用时机 -
super#onRestoreInstanceState(Parcelable)
参数传入BaseSavedState
的子类时, 在Api <= 22时崩溃
- selector的资源文件的
-
Fragment
-
Fragment#onActivityCreated(Bundle)
, 除非在Fragment#onSaveInstanceState(Bundle)
中存入了内容, 否则Bundle
一直为null
-
- EventBus
- Retrofit