【发布时间】:2019-01-15 20:52:02
【问题描述】:
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp">
<android.support.design.widget.TextInputEditText
android:id="@+id/editTextDonorName"
android:inputType="textPersonName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Name" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Category"
style="@style/InputLabel" />
<Spinner
android:id="@+id/editTextCategory"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:hint="Category"
android:inputType="text"
android:padding="10dp" />
</android.support.design.widget.TextInputLayout>
这是我选择微调器时得到的 https://i.stack.imgur.com/dm8Ts.jpg
因此,如您所见,editTextDonorName 仍处于活动状态,就好像它仍处于选中状态一样。我希望它不是,并在选择微调器时更改 textView“类别”的颜色。
【问题讨论】: