我要對齊我在同一行的TextView和微調像this image但我的屏幕看起來像this對齊的TextView和微調在同一行
此外,我怎麼能與微調的值更新價格TextView的?假設產品價格是200美元,當我選擇微調控件textview更改爲400美元時。我怎麼做?
<LinearLayout
android:layout_width="fill_parent"
android:orientation="vertical"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="#E5E5E5"
android:layout_height="fill_parent">
<TextView
android:id="@+id/TextViewTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="Qty"
android:textSize="10pt"></TextView>
<Spinner
android:id="@+id/SpinnerFeedbackType"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="fill_parent"
android:entries="@array/feedbacktypelist"></Spinner>
<EditText
android:id="@+id/EditTextName"
android:layout_height="wrap_content"
android:hint="Name"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:inputType="textPersonName"
android:layout_width="fill_parent"></EditText>
<EditText
android:id="@+id/EditTextEmail"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="Email"
android:inputType="textEmailAddress"
android:layout_width="fill_parent"></EditText>
<EditText
android:id="@+id/EditTextMobile"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="Mobile Number"
android:inputType="textEmailAddress"
android:layout_width="fill_parent"></EditText>
<EditText
android:id="@+id/EditCity"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="City"
android:inputType="textEmailAddress"
android:layout_width="fill_parent"></EditText>
<EditText
android:id="@+id/EditTextFeedbackBody"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="Address"
android:inputType="textMultiLine"
android:lines="5"
android:layout_width="fill_parent"></EditText>
<EditText
android:id="@+id/EditTextComments"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="Comments"
android:inputType="textMultiLine"
android:lines="5"
android:layout_width="fill_parent"></EditText>
<TextView
android:id="@+id/TextViewTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="Total Order Price:"
android:textSize="10pt"></TextView>
<TextView
android:id="@+id/TextViewTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="Rs.6,849"
android:textSize="10pt"></TextView>
<CheckBox
android:id="@+id/CheckBoxResponse"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="@string/feedbackresponse"
android:layout_width="fill_parent"></CheckBox>
<Button
android:id="@+id/ButtonSendFeedback"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="@string/feedbackbutton"
android:onClick="sendFeedback"
android:layout_width="fill_parent"></Button>
</LinearLayout>
telll me full senario whe spinner sleect它的數量如何倍增價格? – user2931692
請查看更新後的答案。 –
顯示錯誤java.lang.NumberFormatException:無法解析'Rs.6,849'爲整數 – user2931692