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>