android中按钮间隔,Android布局有2个均匀间隔的按钮
我有這個(gè)布局正常工作,相對布局與文本視圖和兩個(gè)按鈕均勻分布在它下面.
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:padding="5px"
android:visibility="gone"
android:layout_below="@+id/ad"
android:background="#80000000">
android:layout_height="wrap_content" android:text="Entry Popup..."
android:textColor="#ffffffff"
android:textSize="20sp" />
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/title">
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"/>
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="fill_parent"/>
但是運(yùn)行l(wèi)ayoutopt它說“這個(gè)TableRow布局或它的TableLayout父級(jí)可能無用”.
有沒有辦法在沒有表格的情況下進(jìn)行此布局?
總結(jié)
以上是生活随笔為你收集整理的android中按钮间隔,Android布局有2个均匀间隔的按钮的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 多个类的对象,andro
- 下一篇: android drawableleft