我的Android應用程序有一個表格,用戶必須填寫。我正在尋找這樣的東西。這http://img688.imageshack.us/img688/4162/photocr.jpg。我的意思是編輯文本看起來像這樣整齊。關於我們如何在Android中複製這些內容的任何建議。我在Android中看到過幾個應用程序,它們都有這樣的UI。任何建議將受到歡迎。Android分組TextView
親切的問候,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/round_linearlayout"
android:orientation="vertical" >
<EditText
android:id="@+id/first_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/first_name_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<EditText
android:id="@+id/last_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/last_name_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<EditText
android:id="@+id/email_address"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/email_address_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/password_hint_text"
android:singleLine="true"
android:textColor="#778BB0"
android:textColorHint="#778BB0"
android:textSize="13sp"
android:textStyle="bold" />
<Button
android:id="@+id/already_have_an_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@android:color/transparent"
android:padding="20dp"
android:text="@string/already_have_an_account"
android:textColor="@color/hyperlink" />
</LinearLayout>
爲什麼人們認爲蘋果風格的命名對一切都有好處? :'( – Jin35 2012-07-23 05:03:20
@ Jin35。我必須同意你的看法,但有時它的顧客需要什麼,雖然我們解釋了android特定的佈局和樣式,但是沒有顧客喜歡它:(... – san 2012-07-23 05:05:06
我已經看過了。但是這隻給你一個Static ListView而不是一個EditText,我希望用戶能夠輸入這個,我遇到了這個例子http://vladexologija.blogspot.com/2012/03/groupedtextview.html。這是我可以鍵入框,但無法找回? – AndroidDev 2012-07-23 05:34:36