有一個EditText建立在Android的擴展工具欄我想在的Android這是正常的工具欄的高度2X,並在下半部的EditText
創建工具欄。如何在底部
目前,我有XML代碼(注意android:layout_height="128dp"
):
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:title="Messages"
android:titleTextColor="@color/windowBackground"
android:background="@color/buttonBackground"
android:layout_height="128dp"
android:layout_width="match_parent"
android:minHeight="?android:attr/actionBarSize"
android:gravity="bottom" />
<fragment
android:id="@+id/no_activity_fragment"
class="com.ohmd.ohmd.ui.main.MainActivityListFragment"
android:name="com.ohmd.ohmd.ui.main.MainActivityListFragment"
android:layout_below="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="fill_parent"/>
</RelativeLayout>
我」,所以有幾個問題米停留在:
(一)我怎樣才能獲得「MESSA ges「在高度設置爲
"?android:attr/actionBarSize"
時對齊頂部的位置?(b) aftter將標題向上移動,如何在下半部分添加
EditText
視圖?