안드로이드 개발 질문/답변
(글 수 45,052)
a.xml는 상단에 타이틀, 제목, 리스트뷰가 있고요,
b.xml에는 리스트뷰의 행 부분의 customView로 들어가게끔 해서
잘 동작은 합니다만,
배경이 기본 검은색일 때에는 리스트중에서
하나를 선택하면 사용자가 해당 리스트를 선택했다고 알려주는 초록색으로 잠깐 바꿨다가 다음으로 넘어가는 것이 되는데
흰색으로 바꾸니까 기능은 하지만 초록색으로 잠시 바뀌는건 안되네요..ㅠ.ㅠ
b.xml에는 리스트뷰의 행 부분의 customView로 들어가게끔 해서
잘 동작은 합니다만,
배경이 기본 검은색일 때에는 리스트중에서
하나를 선택하면 사용자가 해당 리스트를 선택했다고 알려주는 초록색으로 잠깐 바꿨다가 다음으로 넘어가는 것이 되는데
흰색으로 바꾸니까 기능은 하지만 초록색으로 잠시 바뀌는건 안되네요..ㅠ.ㅠ
a.xml ==================== <LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:orientation="vertical" android:layout_weight="16"> <ListView android:id="@+id/android:list" android:layout_height="wrap_content" android:layout_width="fill_parent"/> </LinearLayout> ==================== b.xml ===================== <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/news_title" android:layout_width="fill_parent" android:textColor="#000000" android:layout_height="wrap_content" android:textSize="7pt" android:singleLine="true"/> <TextView android:id="@+id/news_where" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/news_title" android:textColor="#a9a9a9" /> <TextView android:id="@+id/news_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/news_title" android:layout_toRightOf="@id/news_where" android:textColor="#a9a9a9" /> <TextView android:id="@+id/news_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/news_title" android:layout_toRightOf="@id/news_date" android:textColor="#a9a9a9" /> </RelativeLayout>