FrameLayout 中设置margin无效问题
众所周知,Android在对界面进行布局时,可以通过设置View的上下左右四个方向的margin值来调整该View和其他View之间的距离。
在布局文件中设置margin值的方法如下。
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="10dp"
android:layout_height="10dp"