Я вытаскиваю свои волосы, пытаясь установить мою настройку расположения, как я хочу. Я хочу иметь EditText
слева с TextView
в середине и Button
направо и всех тех, кто по ListView
Вот так близко, как я могу получить ...Проблема с относительной компоновкой справа
Вот XML Я использую :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<EditText
android:id="@+id/new_bookmark_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/new_bookmark_clock"
android:ems="10"
android:inputType="text" />
<TextView
android:id="@+id/new_bookmark_clock"
android:layout_width="12sp"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/btn_add_new_bookmark"
android:text="@string/xx_xx_xx" />
<Button
android:id="@+id/btn_add_new_bookmark"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:text="@string/add" />
<ListView
android:id="@+id/bookmark_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/new_bookmark_name" />
</RelativeLayout>
Может ли кто-нибудь помочь мне?
' андроид: layout_width = "12SP" '? – RobinHood
Вы хотите, как это? http://postimg.org/image/xrc0nhvrv/ – RobinHood