0
我即將開發應用程序,我遇到了一些問題。 我要讓我的微調和文本視圖並排side.I希望你這裏有人能幫助me..TQAndroid:layout_toRightOf
editText
android:id="@+id/editText3"
android:layout_width="157dp"
android:layout_height="wrap_content"
android:layout_marginBottom="11dp"
android:layout_marginLeft="43dp"
android:layout_marginTop="18dp"
android:background="@drawable/round"
android:ems="10"
android:inputType="number"
android:padding="5px" />
<Spinner
android:id="@+id/spinner1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight=".25"
android:layout_toRightOf="@+id/editText3"
android:entries="@array/phone_arrays"
android:padding="0dip"
android:prompt="@string/phone_prompt"
你忘了問一個問題。 – 323go 2014-10-28 01:45:37
使用linearLayout(水平)並將代碼(Spinner&editText)放置在佈局中... – 2014-10-28 02:49:56