Hamstersztyk Hamstersztyk - 1 year ago 66
Android Question

Is it possible to change theme in each intent in Android Studio?

I'm coding an Android app that fetches Sun image from NASA site. I wanted to change ActionBar color in each intent. For example to have AIA094 wavelength intent's ActionBar color green and AIA211 intent's ActionBar color as pink. Is it possible in Android Studio? Thanks in advance!

Answer Source

Use custom style in AndroidManifest.xml in each activity

for example

<activity android:theme="@android:style/Theme.Dialog">
<activity android:theme="@style/CustomTheme">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download