android


Set transparent theme but custom style to activity on Android


In my App, I am doing theme change and it's going to apply to all activities.
But what i wants to set transparent theme to one my activity but also wants to set style from theme which selected for another activities except this(one who have transparent theme)
below method shows how theme change happens
public static void onActivityCreateSetTheme(Activity activity, int theme) {
switch (theme) {
case DEFAULT_THEME: {
activity.setTheme(R.style.AppTheme);
break;
}
case THEMEPINK: {
activity.setTheme(R.style.AppThemePink);
break;
}
case THEMERED: {
activity.setTheme(R.style.AppThemeRed);
break;
}
case THEMEBLUE: {
activity.setTheme(R.style.AppThemeBlue);
break;
}
case THEMEGREEN: {
activity.setTheme(R.style.AppThemeGreen);
break;
}
case THEME_TRANSPARENT:
activity.setTheme(R.style.Transparent);
break;
}
}
How can i set style from selected theme to activity with transparent theme?

Related Links

Is it necessary to use LocationManager.requestLocationUpdates and LocationManager.removeUpdates() for Google Maps?
how to make rounded corners button on runtime even if background is already set in xml
How do I create a node process on Google App Engine Flexible Environment?
Custom Android sdk and unit test on Android Studio
How to use autocomplete in chrome app?
Unable to create folder using phonegap cordova
TextSwitcher flicker/stutter sometimes
how does service registration work with NsdManager?
Get values from the Datasnapshot object with keys in Firebase Android
How do I enter a name parameter while signing up a user in Firebase for Android
Login to twitter always goes to callback failure method
Why onDraw() is not called if Custom View extends ViewGroup?
Can't see the newest taken picture in the gallery?
#120 - Invalid album ID while uploading an image to Facebook group
strange broken simbol rendered in mobile chrome
Android consumable in app purchase flow called twice launchPurchaseFlow()

Categories

HOME
sonarqube
httparty
phpword
adal
checkstyle
merge
rsa
sh
tivoli
google-apps
cakephp-3.4
maxscript
crystal-lang
vert.x
spin
augeas
speech-synthesis
gkturnbasedmatch
cumulocity
null-pointer
chargify
forgot-password
video-editing
jmp
surveymonkey
gpio
android-things
rpgle
aws-codecommit
playstation-portable
reverse
navigator
searchkit
reason
z-notation
recurrent-neural-network
gdata
urlsession
resolution
android-softkeyboard
escpos
bindingnavigator
avcapturedevice
rfc3339
x++
opennms
magento-2.0.7
jquery-ui-draggable
podscms
trojan
reindex
truezip
boo
pdf-conversion
sandcastle
cronexpression
grails-plugin
google-cloud-console
iotivity
adafruit
installshield-2010
android-dateutils
mediametadataretriever
cortex-m
nio2
design-principles
concept-insights
custom-errors
linklabel
oracle-spatial
uncompress
ocra
liquid-layout
skspritenode
easyrtc
create.js
lambda-architecture
reflector
wxformbuilder
ios8-extension
terminate
rfc5322
gd-graph
c++builder-xe5
isqlquery
ebay-lms
cffile
nebula
route-provider
http-status-code-410
fb.ui
onmousemove
fragmenttransaction
fitbounds
hibernateexception
luabind
convention
pinch
workflow-services
mysql-error-1205
google-ajax-api
commerceserver2007
squishit
resharper-6.0
delimited-text
vs-android
fail-fast-fail-early
image-capture

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile