마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

리스트 가 배경이 검은색인데

0 추천
리스트 가 배경이 검은색인데

리스트아이템의 글자색은 회색으로 나옵니다

아래코드를 리스트아이템으로 사용하는데

따로 배경색상은 설정하지않았는데 왜 이렇게나오는지...

기본 배경이 검은색으로 글자색이 하얀색으로 테마가 적용되도록

하고싶은데 어떻게하면될까요?

 

<?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">
    <ImageView android:src="@drawable/ic_launcher" android:id="@+id/imageView1" android:layout_alignParentLeft="true" android:layout_height="50dp" android:layout_width="50dp"></ImageView>
    <TextView android:layout_width="wrap_content" android:id="@+id/textView1" android:text="TextView" android:layout_height="wrap_content" android:layout_toRightOf="@+id/imageView1" android:textSize="20dip"></TextView>
    <TextView android:layout_width="wrap_content" android:id="@+id/textView2" android:text="TextView" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_below="@+id/textView1" android:textSize="19dip"></TextView>
</RelativeLayout>
참참참 (3,100 포인트) 님이 2015년 1월 26일 질문

1개의 답변

+1 추천
 
채택된 답변
전체 배경색과 글자색을 지정해주심 되것지요

 

<RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#ff000000" >

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:layout_alignParentLeft="true"
            android:src="@drawable/ic_launcher" >
        </ImageView>

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@+id/imageView1"
            android:text="TextView"
            android:textColor="#ffffffff"
            android:textSize="20dip" >

        </TextView>

        <TextView
            android:id="@+id/textView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_below="@+id/textView1"
            android:text="TextView"
            android:textColor="#ffffffff"
            android:textSize="19dip" >

        </TextView>
    </RelativeLayout>
nicehee (73,100 포인트) 님이 2015년 1월 26일 답변
참참참님이 2015년 1월 26일 채택됨
...