有以下布局在xml文件里,是根Layout<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="#990000ff" >
....
....
</LinearLayout>发现两个margin的5dp全部显示在了屏幕右边,这是怎么回事?我要怎么弄才能左边、右边各5dp?
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="#990000ff" >
....
....
</LinearLayout>发现两个margin的5dp全部显示在了屏幕右边,这是怎么回事?我要怎么弄才能左边、右边各5dp?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货