I want to be in my 안드로이드 app 의 흰 배경색에 변경할 수 있는 가장 간단한 방법은 있습니다.
사용할 수도 있습니다.
android:background="#ffffff"
xml 레이아웃, 또는 '또는' 에 추가하여 사용자의 안드로이드마니페스트리스메르 search. /res/layout/activity_main.xml 변경할 수 있습니다.
android:theme="@android:style/Theme.Light"
데이터베이스에구성원을 작업을요 태그이고,
스케쳐내 변경하십시오 동적으로 사용할 수 있는 배경
YourView.setBackgroundColor(Color.argb(255, 255, 255, 255));
배경색에 변경할 수 있는 가장 간단한 방법은 가능한 프로그래밍 방식으로 (독점적으로 - 아니 xlm 변경).
LinearLayout bgElement = (LinearLayout) findViewById(R.id.container);
bgElement.setBackgroundColor(Color.WHITE);
전용 요구 사항은 해당 " base"; id 는 자바 가상 머신 (jvm) 에 있는 요소 중 activity_whatever.xml 참조할 수 있습니다 ('컨테이너입니다' 이 경우):
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
...
</LinearLayout>
이에 대해 한 종류의 저로하여금진실의 파스칼리스), 제임스, 여기 있는 다양한 가능성을 확인한 뒤 이 솔루션을 아웃해야 설정하는 방법 테스트비에프 텍스트 색상 코드의?.
이를 통해 희망을 누군가!
이 방법은 협력했습니다 가져다줄래요:
RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.layout.rootLayout);
relativeLayout.setBackgroundColor(getResources().getColor(R.color.bg_color_2));
설정되었습니다 id 를 xml 레이아웃
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/rootLayout"
android:background="@color/background_color"
Values/color.xml 색상 추가
<color name="bg_color_2">#ffeef7f0</color>
가장 좋은 방법은 그대로 사용하여 배경의 그래디언트 app 안드로이드 앱 대한 이미지는 독 (毒) 응용 프로그램의 증가합니까 크기 때문에 이를 사용하도록 한 적은 시도하시겠습니까 사용하는 대신 여러 가지 색상을 배경으로 한 배경 색상으로 사용할 수 있습니다. ! [입력하십시오. 이미지 여기에 설명을] [1] ! [입력하십시오. 이미지 여기에 설명을] [2]
가장 간단한 방법은 배경 = " 추가 '안드로이드' 를 기본 노드입니다 FFFFFF":; # /res/layout/activity_main.xml 라이우 t.1믈 '또는':
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:textSize="20sp"
android:background="#FFFFFF">
</TextView>
또 다른 방법은 http://www. documentum. 레이아웃용 - >. - 너회의 .xml 파일 >. 선택하고 싶은 설계 보기입니다 검색하기를 .즉 컴포넌트인지 진단트리는 레이아웃용 색상 변경. 배경 아래 있는 컴포넌트인지 진단트리는 좁히어 가 특성는 섹선에서 지젤치 등록 정보 섹션의 (In picture 1 항). 제 2 의 차례로 사진을 찍었다. 메뉴 .즉 색상을 선택하는 창이 열려 이프롬 리소스에는 다음 원하는 색상을 선택할 것입니다. (여기서 입력하십시오. 설명] 1
간단한 색상, 지정된 인사이드라면 리소스에는 일반적으로 사용할 수 있습니다.
res/values/colors.xml.
사용
<color name="red">#ffff0000</color>
이 '안드로이드' 를 통해 배경 =., @color/red" " 및 사용. 이 컬러 텍스트 색상 너무 다른 곳에 사용할 수 있다. (예: 이를 통해 동일한 방법으로 또는 이해했소 XML 의 코드 참조
getResources().getColor(R.color.red).
모든 드로어 블 리소스에는 사용할 수도 있습니다. ',' 안드로이드: 배경 = " @drawable/mydrawable" 사용하여 비호환성의 배경, 이를 위해 (즉, 일반 비트맵입니다, 모양, 9patch 드로어 블 드로어 블.).
, # 64B5F6" 안드로이드 배경 = ". < br>;
<, br>, 다음은 샘플 코드:
<! - begin 스니핏: js 숨기십시오: 거짓값 콘솔: 진정한 바벨. > 거짓값 -;
<TextView
android:text="Abir"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:background="#D4E157" />
끝 - < 스니핏 >;!
감사합니다:)
안드로이드: 배경 = " @color/colorAccent";
추가할 경우 전체 배경색에 활동
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#1de9b6"
tools:context="com.example.abc.myapplication.MainActivity">
</RelativeLayout>
사용하려면 보기입니다 위한 배경
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Andrios"
android:background="@color/colorAccent" />
이를 통해 희망을!
>. I want to be 배경색에 변경할 수 있는 흰 내 >. 안드로이드 앱 가장 간단한 방법으로 가능하다.
모든 파렌트비에프스테일 '세트' 너희 부모님 드러냈다. 가장 좋은 활동, 부분 및 대화상자의 모피쳐 볼 수 있습니다.
<LinearLayout style="@style/parentViewStyle">
... other components inside
</LinearLayout>
, ',' 그냥 이거 스타일입니까 인사이드라면 res> values> 스테일스.1믈
<style name="parentViewStyle">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
<item name="android:background">@color/white</item> // set your color here.
<item name="android:orientation">vertical</item>
</style>