我有2個問題與下面的代碼和谷歌不能幫助我:/
1. android.support.design.widget.TextInputLayout
只是出現在海誓山盟,它們不共享像他們應該這樣的線。如果我刪除設計,並只留下Edittexts,它工作正常。
2.寬度大小android.support.design.widget.TextInputLayout
設置爲'match_parent',但它只顯示一條小行。只有當我設置數字dp值時纔會更改。
android.support.design.widget.TextInputLayout - 雙重麻煩
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@id/rgGender">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/etDay"
android:hint="Day"
android:inputType="number"
/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/etMonth"
android:hint="Month"
/>
</android.support.design.widget.TextInputLayout>
</LinearLayout>
@Shay嘿...我希望我的回答是解決你的問題,如果是的話,做好標記。 – Dipika