分类: Android平台
2014-12-24 16:23:02
1.RelativeLayout在使用的大部分时间能替代FrameLayout的使用,但是也会有些小区别,如下情况:
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_width="20dp"
android:layout_height="20dp"/>
这个地方如果使用RelativeLayout的话,会存在tv_1的view显示不出来,这是换成FrameLayout即可。