0
레이아웃 배경색이 회색으로 설정되어 있습니다. 레이아웃의 에는 3 개의 편집 텍스트가 있습니다. 편집 배경을 터치하면 레이아웃 배경색이 사라집니다. 그리고 편집 텍스트를 터치 할 때마다 색상이 반환되고 다시 사라집니다.터치시 레이아웃 색상이 변경됩니다.
아무에게도 제안 할 수있는 내용이 있습니까?
자바가없는 경우에만보기로 설정됩니다.
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_marginLeft="5dp"
android:layout_marginTop="20dp"
android:background="@color/gray" >
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="#FF000000"
android:ems="9"
android:hint="Patient ID"
android:paddingBottom="10dp"
android:paddingLeft="5dp"
android:paddingTop="10dp"
android:textColor="@color/white"
android:textStyle="bold"
android:imeOptions="flagNoExtractUi"/>
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="#FF000000"
android:ems="6"
android:hint="First"
android:paddingBottom="10dp"
android:paddingLeft="5dp"
android:paddingTop="10dp"
android:textColor="@color/white"
android:textStyle="bold"
android:imeOptions="flagNoExtractUi"/>
<EditText
android:id="@+id/editText3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="#FF000000"
android:ems="6"
android:hint="Last"
android:paddingBottom="10dp"
android:paddingLeft="5dp"
android:paddingTop="10dp"
android:textColor="@color/white"
android:textStyle="bold"
android:imeOptions="flagNoExtractUi"/>
</LinearLayout>
감사
편집 : 모든 텍스트를 편집 레이아웃에서 배경 = "#의 FF000000" :
는 내가 안드로이드를 삭제 whent 작동합니다.
검정색 배경으로 텍스트를 편집해야하므로 어떻게해야합니까?
당신이 당신 색상으로 검은 배경 사용 # 000 필요합니다. 사용하는 형식은 #AARRGGBB입니다. 또한 styles.xml과 themes.xml 같은 것을 확인해 보겠습니다. 한 번 이상 나는 거기에 변화를주고 잊었다. –