버튼은 회색이고 버튼을누르면 R,G,B, 검은색,하양 으로 배경색이 바뀌도록했습니다.
화면 전체가 빨,검,초,파,흰색 으로 변하게 하고싶은데
어떻게해야되나요? 액티비티를 새로 만들어야되는건가요?
T43같은 휴대용 디스플레이 샀을때 불량화소 검사하던것처럼 화면 전체가 색깔이 나오게 하고 싶은거거든요.
또 만약에 제가 RGB (0.100.100) 이런식으로 색상의 값을 조절하고싶은데
어떻게해야지 색상조절을 할수있나요?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainActivity"
android:id="@+id/rl_background"
>
<TextView
android:id="@+id/textview01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="버튼을누르면 빨강"
android:onClick="myClickListener"
android:padding="25dp"
/>
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="버튼을 누르면 하양"
android:onClick="myClickListener1"
android:padding="25dp"
/>
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="버튼을 누르면 green"
android:onClick="myClickListenergreen"
android:padding="25dp"
/>
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="버튼을 누르면 blue"
android:onClick="myClickListenerblue"
android:padding="25dp"
/>
<Button
android:id="@+id/button5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="버튼을 누르면 black"
android:onClick="myClickListenerblack"
android:padding="25dp"
/>
</LinearLayout>