0
我有一個相當大的佈局文件,它們是TabHost的一部分,我的問題是最後一個RelativeLayout(@ id/footbar)不會粘在我的視圖的底部no看起來,我用什麼屬性是重要的。如何將RelativeView對齊到底部
請給我一個想法,意識到這一點。我希望ListView在佔位符(hline)和footbar之間爲。
當前的腳踏板粘貼到列表上,該列表在頂部正確對齊,但會隨其內容一起延伸。當我選擇列表中有「match_parent」或高度「FILL_PARENT」它需要所有的空間,底部和移動footbar了看法:(
BTW的:有沒有辦法讓?縮放的ImageButton,以適合微調的高度或圓形的方式
感謝的提前
這裏的清單:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/abrtimer">
<TextView android:id="@+id/username_timer"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
/>
<ImageView android:id="@+id/hline"
android:layout_width="fill_parent"
android:layout_height="2dip"
android:background="#544444"
android:layout_below="@id/username_timer" />
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@id/hline"
android:orientation="vertical">
<ExpandableListView android:id="@+id/timerList"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:drawSelectorOnTop="true"
android:gravity="top"/>
<LinearLayout android:orientation="horizontal"
android:layout_below="@id/timerList"
android:id="@+id/footbar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:weightSum="10">
<Spinner android:layout_height="wrap_content"
android:id="@+id/projectSpinner"
android:layout_width="fill_parent"
android:layout_gravity="left"
android:layout_weight="8"/>
<ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@android:drawable/ic_menu_add"
android:id="@+id/addButton"
android:scaleType="centerCrop"
android:layout_gravity="right"
android:layout_weight="2"/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>