2012-02-22 6 views
0

활동 전환시 배경색을 변경할 수 있습니까? 검은 색을 의미합니다. 활동 중 하나가 사라지고 두 번째가 나타나기 전에 무슨 일이 일어나는가를 말합니다. 감사.안드로이드 배경색을 변경할 수 있습니까?

application android:icon="@drawable/icon" android:label="@string/app_name" 
    android:theme="@android:style/Theme.Light" > 

편집 을 문서에 언급 한 바와 같이 :

+1

방법 활동을 전환하고 있습니까? 이것은 일반적인 Android 동작처럼 들리지 않습니다. – jprofitt

+0

이것은 기본 전환이며 애니메이션을 넣지 않고 overridePendingTransition도 지정하지 않습니다. 내가 검은 색을 바꿀 수 있는지 궁금합니다. – goodm

답변

0

다음과 같이 사용하고있는 테마를 변경할 수 있습니다

<application android:theme="@style/CustomTheme"> 

하고 당신이 좋아하는 테마를 조정할 :

<style> 
<color name="custom_theme_color">#b0b0ff</color> 
<style name="CustomTheme" parent="android:Theme.Light"> 
<item name="android:windowBackground">@color/custom_theme_color</item> 
<item name="android:colorBackground">@color/custom_theme_color</item> 
</style> 
여기

http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme

+0

및 맞춤형? 활동간에 회색 배경이 필요합니까? – goodm

+0

@goodm 나는 내 대답을 편집했다. –

0

는 그냥 검은 화면을 설정하려면이 배경 매개 변수를 추가 activity_home.xml에 코드의 시작 라인에서 을 향하기 위해 필요한 주제에 대한 링크입니다

android:background="#ffffff" 
관련 문제