¡@

Home 

2014/10/16 ¤W¤È 08:26:17

android Programming Glossary: theme

How to change an application icon programmatically in Android?

http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android

portrait android label @string app_name android theme @style CustomTheme android launchMode singleTask intent filter..

This app won't run unless you update Google Play Services. (via Bazaar)

http://stackoverflow.com/questions/13691943/this-app-wont-run-unless-you-update-google-play-services-via-bazaar

ic_launcher android label @string app_name android theme @style AppTheme activity android name .MainActivity android..

Unable instantiate android.gms.maps.MapFragment

http://stackoverflow.com/questions/13719263/unable-instantiate-android-gms-maps-mapfragment

ic_launcher android label @string app_name android theme @style AppTheme meta data android name com.google.android.maps.v2.API_KEY..

How do I restart an Android Activity

http://stackoverflow.com/questions/1397361/how-do-i-restart-an-android-activity

android activity share improve this question I did my theme switcher like this Intent intent getIntent finish startActivity..

ClassNotFoundException after ADT update

http://stackoverflow.com/questions/16610190/classnotfoundexception-after-adt-update

ic_launcher android label @string app_name android theme @style AppTheme activity android name com.example.myapp.MainActivity..

Android Activity as a dialog

http://stackoverflow.com/questions/1979369/android-activity-as-a-dialog

to Start activity as dialog i defined activity android theme @android style Theme.Dialog now when i startActivity it display..

How to create Transparent Activity in Android?

http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android

for example activity android name .SampleActivity android theme @style Theme.Transparent ... activity share improve this answer..

Set title background color

http://stackoverflow.com/questions/2251714/set-title-background-color

android textColor @color titletextcolor res values themes.xml We want to keep the default android theme and just need.. res values themes.xml We want to keep the default android theme and just need to change the background color of the title background... background color of the title background. So we create a theme that inherits the default theme and set the background style..

How to change theme for AlertDialog

http://stackoverflow.com/questions/2422562/how-to-change-theme-for-alertdialog

to change theme for AlertDialog I was wondering if someone could help me out... builder.create alertdialog.show In order to apply the theme to an AlertDialog I had to set the theme to the current context... to apply the theme to an AlertDialog I had to set the theme to the current context. However I just can't seem to get the..

How to change current Theme at runtime in Android

http://stackoverflow.com/questions/2482848/how-to-change-current-theme-at-runtime-in-android

a PreferenceActivity that allows the user to choose the theme he wants to apply to the entire application. When the user selects.. apply to the entire application. When the user selects a theme this code is executed if ... getApplication .setTheme R.style.BlackTheme.. consists of several Activities if that helps. android themes share improve this question I would like to see the method..

How to hide the title bar for an Activity in XML with existing custom theme

http://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom-theme

the title bar for an Activity in XML with existing custom theme I want to hide the titlebar for some of my activities. The.. to all my activities therefore I can't simply set the theme to @android style Theme.NoTitleBar. Using the NoTitleBar theme.. to @android style Theme.NoTitleBar. Using the NoTitleBar theme as a parent for my style would remove the title bar for to much..

Understanding the Use of ColorMatrix and ColorMatrixColorFilter to Modify a Drawable's Hue

http://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw

to use grayscale icons and allow the user to change the theme to a color of their choosing. To do this I'm trying to just..

Android: Taking complete control of phone(kiosk mode), is it possible? How?

http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phonekiosk-mode-is-it-possible-how

of Home key and end call key . for full screen add android theme @android style Theme.NoTitleBar.Fullscreen to activity tag in..

Changing the background drawable of the searchview widget

http://stackoverflow.com/questions/11085308/changing-the-background-drawable-of-the-searchview-widget

to handle both and make them both look the same as in Holo Theme . Simply make one local copy and use it in selector drawable.. a group of attributes related to SearchView in default Theme style name Theme ...other attributes present here... SearchView.. related to SearchView in default Theme style name Theme ...other attributes present here... SearchView attributes item..

Android Alarm Clock UI

http://stackoverflow.com/questions/13523350/android-alarm-clock-ui

Alarm Clock app. This appears to be using the Holo Dark Theme. The screenshot included is the Create Edit Alarm Activity screen...

Overriding referenced style attributes

http://stackoverflow.com/questions/17103894/overriding-referenced-style-attributes

style attributes After reading through References To Theme Attributes I am trying to reference the value of an attribute.. item style My theme I created is defined as style name Theme.Yellowgreen parent android Theme.Holo.Light.DarkActionBar item.. is defined as style name Theme.Yellowgreen parent android Theme.Holo.Light.DarkActionBar item name android listChoiceIndicatorMultiple..

How to create Transparent Activity in Android?

http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android

file xml version 1.0 encoding utf 8 resources style name Theme.Transparent parent android Theme item name android windowIsTranslucent.. 8 resources style name Theme.Transparent parent android Theme item name android windowIsTranslucent true item item name android..

Set title background color

http://stackoverflow.com/questions/2251714/set-title-background-color

xml version 1.0 encoding utf 8 resources style name customTheme parent android Theme item name android windowTitleBackgroundStyle.. utf 8 resources style name customTheme parent android Theme item name android windowTitleBackgroundStyle @style WindowTitleBackground.. android name .CustomTitleBar android theme @style customTheme ... From the Activity called CustomTitleBar @Override public..

How do I apply a style to all buttons of an Android application

http://stackoverflow.com/questions/2410836/how-do-i-apply-a-style-to-all-buttons-of-an-android-application

my styles.xml style name ApplicationStyle parent android Theme item name android button @style CKButton item style style name.. this would work style name ApplicationStyle parent android Theme item name android buttonStyle @style CKButton item style share..

How to change current Theme at runtime in Android

http://stackoverflow.com/questions/2482848/how-to-change-current-theme-at-runtime-in-android

to change current Theme at runtime in Android I've created a PreferenceActivity that.. a theme this code is executed if ... getApplication .setTheme R.style.BlackTheme else getApplication .setTheme R.style.LightTheme.. is executed if ... getApplication .setTheme R.style.BlackTheme else getApplication .setTheme R.style.LightTheme But even though..

How to make android app's background image repeat

http://stackoverflow.com/questions/2706913/how-to-make-android-apps-background-image-repeat

utf 8 resources style name app_theme parent android Theme item name android windowBackground @drawable app_background..

Setting global styles for Views in Android

http://stackoverflow.com/questions/3078081/setting-global-styles-for-views-in-android

xml version 1.0 encoding utf 8 resources style name MyTheme parent android Theme item name android textViewStyle @style.. encoding utf 8 resources style name MyTheme parent android Theme item name android textViewStyle @style MyTextViewStyle item.. AndroidManifest.xml application ¦] android theme @style MyTheme And all your text views will default to the style defined in..

Is it possible to change the radio button icon in an android radio button group

http://stackoverflow.com/questions/3576507/is-it-possible-to-change-the-radio-button-icon-in-an-android-radio-button-group

xml version 1.0 encoding utf 8 resources style name CustomTheme parent android Theme item name android radioButtonStyle @style.. utf 8 resources style name CustomTheme parent android Theme item name android radioButtonStyle @style RadioButton item style..

Wake Android Device up

http://stackoverflow.com/questions/3621599/wake-android-device-up

flags with an activity which is not full screen Dialog Theme and it didn't work. After looking at the documentation I found..

AlertDialog from within BroadcastReceiver?? Can it be done?

http://stackoverflow.com/questions/4844031/alertdialog-from-within-broadcastreceiver-can-it-be-done

have transparent screen. To achieve that @android style Theme.Translucent is entered under Theme tag for this activity in.. that @android style Theme.Translucent is entered under Theme tag for this activity in AndroidManifest.xml. public class NotifySMSReceived..

How to change the font size of tabhost in android

http://stackoverflow.com/questions/5788971/how-to-change-the-font-size-of-tabhost-in-android

to achieve this First you create the theme name CustomTheme for your Activity in your res styles.xml style name CustomTheme.. for your Activity in your res styles.xml style name CustomTheme parent @android style Theme item name android tabWidgetStyle.. styles.xml style name CustomTheme parent @android style Theme item name android tabWidgetStyle @style CustomTabWidget item..

Android remove space between tabs in tabwidget

http://stackoverflow.com/questions/5799320/android-remove-space-between-tabs-in-tabwidget

xml version 1.0 encoding utf 8 resources style name CustomTheme parent @android style Theme item name android tabWidgetStyle.. 8 resources style name CustomTheme parent @android style Theme item name android tabWidgetStyle @style CustomTabWidget item..

ActionBar text color

http://stackoverflow.com/questions/5861661/actionbar-text-color

text color of the ActionBar I've inherited the Holo Light Theme I'm able to change the background of the ActionBar but I don't.. xml version 1.0 encoding utf 8 resources style name MyTheme parent @android style Theme.Holo.Light item name android actionBarStyle.. utf 8 resources style name MyTheme parent @android style Theme.Holo.Light item name android actionBarStyle @style MyTheme.ActionBarStyle..

Android: Where is the Spinner widget's text color attribute hiding?

http://stackoverflow.com/questions/6159113/android-where-is-the-spinner-widgets-text-color-attribute-hiding

xml version 1.0 encoding utf 8 resources style name MooTheme parent android Theme item name android spinnerItemStyle @style.. utf 8 resources style name MooTheme parent android Theme item name android spinnerItemStyle @style MooSpinnerItem item..

How to change an application icon programmatically in Android?

http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android

configChanges keyboardHidden orientation android screenOrientation portrait android label @string app_name android theme @style CustomTheme android launchMode singleTask intent filter action android name android.intent.action.MAIN category android..

This app won't run unless you update Google Play Services. (via Bazaar)

http://stackoverflow.com/questions/13691943/this-app-wont-run-unless-you-update-google-play-services-via-bazaar

0x00020000 android required true application android icon @drawable ic_launcher android label @string app_name android theme @style AppTheme activity android name .MainActivity android label @string title_activity_main intent filter action android..

Unable instantiate android.gms.maps.MapFragment

http://stackoverflow.com/questions/13719263/unable-instantiate-android-gms-maps-mapfragment

0x00020000 android required true application android icon @drawable ic_launcher android label @string app_name android theme @style AppTheme meta data android name com.google.android.maps.v2.API_KEY android value AIzaSyDVAF4WaVSVRDKJx87It8OSFP5txQcPabc..

How do I restart an Android Activity

http://stackoverflow.com/questions/1397361/how-do-i-restart-an-android-activity

act.getClass act.startActivity intent act.finish android android activity share improve this question I did my theme switcher like this Intent intent getIntent finish startActivity intent Basically I'm calling finish first and I'm using..

ClassNotFoundException after ADT update

http://stackoverflow.com/questions/16610190/classnotfoundexception-after-adt-update

application android allowBackup true android icon @drawable ic_launcher android label @string app_name android theme @style AppTheme activity android name com.example.myapp.MainActivity android label @string app_name android windowSoftInputMode..

Android Activity as a dialog

http://stackoverflow.com/questions/1979369/android-activity-as-a-dialog

android activity android dialog share improve this question to Start activity as dialog i defined activity android theme @android style Theme.Dialog now when i startActivity it display like dialog and parent activity display on back i wan a..

How to create Transparent Activity in Android?

http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android

Set title background color

http://stackoverflow.com/questions/2251714/set-title-background-color

android layout_width fill_parent android layout_height fill_parent android textColor @color titletextcolor res values themes.xml We want to keep the default android theme and just need to change the background color of the title background. So.. fill_parent android textColor @color titletextcolor res values themes.xml We want to keep the default android theme and just need to change the background color of the title background. So we create a theme that inherits the default theme.. to keep the default android theme and just need to change the background color of the title background. So we create a theme that inherits the default theme and set the background style to our own style. xml version 1.0 encoding utf 8 resources..

How to change theme for AlertDialog

http://stackoverflow.com/questions/2422562/how-to-change-theme-for-alertdialog

to change theme for AlertDialog I was wondering if someone could help me out. I am trying to create a custom AlertDialog. In order to do.. dialog int id dialog.cancel AlertDialog alertdialog builder.create alertdialog.show In order to apply the theme to an AlertDialog I had to set the theme to the current context. However I just can't seem to get the app to show customized.. alertdialog builder.create alertdialog.show In order to apply the theme to an AlertDialog I had to set the theme to the current context. However I just can't seem to get the app to show customized AlertDialog. Can anyone help me out..

How to change current Theme at runtime in Android

http://stackoverflow.com/questions/2482848/how-to-change-current-theme-at-runtime-in-android

to change current Theme at runtime in Android I've created a PreferenceActivity that allows the user to choose the theme he wants to apply to the entire application. When the user selects a theme this code is executed if ... getApplication .setTheme.. that allows the user to choose the theme he wants to apply to the entire application. When the user selects a theme this code is executed if ... getApplication .setTheme R.style.BlackTheme else getApplication .setTheme R.style.LightTheme.. I call setTheme at any special point in the code My application consists of several Activities if that helps. android themes share improve this question I would like to see the method too where you set once for all your activities. But as far..

How to hide the title bar for an Activity in XML with existing custom theme

http://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom-theme

to hide the title bar for an Activity in XML with existing custom theme I want to hide the titlebar for some of my activities. The problem is that I applied a style to all my activities therefore.. for some of my activities. The problem is that I applied a style to all my activities therefore I can't simply set the theme to @android style Theme.NoTitleBar. Using the NoTitleBar theme as a parent for my style would remove the title bar for to.. to all my activities therefore I can't simply set the theme to @android style Theme.NoTitleBar. Using the NoTitleBar theme as a parent for my style would remove the title bar for to much activities. Can I set a no title style item somewhere android..

Understanding the Use of ColorMatrix and ColorMatrixColorFilter to Modify a Drawable's Hue

http://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw

Hue I'm working on a UI for an app and I'm attempting to use grayscale icons and allow the user to change the theme to a color of their choosing. To do this I'm trying to just apply a ColorFilter of some sort to overlay a color on top of..

Android: Taking complete control of phone(kiosk mode), is it possible? How?

http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phonekiosk-mode-is-it-possible-how

yes it is possible but you can not control the behaviour of Home key and end call key . for full screen add android theme @android style Theme.NoTitleBar.Fullscreen to activity tag in manifest file. To disable incoming call you need to listen..

Changing the background drawable of the searchview widget

http://stackoverflow.com/questions/11085308/changing-the-background-drawable-of-the-searchview-widget

state for both Dark and Light themes assuming that you want to handle both and make them both look the same as in Holo Theme . Simply make one local copy and use it in selector drawable for both themes. Now you'll need to edit downloaded nine patches.. attribute is set we investigate res values themes.xml . There's a group of attributes related to SearchView in default Theme style name Theme ...other attributes present here... SearchView attributes item name searchDropdownBackground @android drawable.. we investigate res values themes.xml . There's a group of attributes related to SearchView in default Theme style name Theme ...other attributes present here... SearchView attributes item name searchDropdownBackground @android drawable spinner_dropdown_background..

Android Alarm Clock UI

http://stackoverflow.com/questions/13523350/android-alarm-clock-ui

trying to figure out how the UI was designed for the Android Alarm Clock app. This appears to be using the Holo Dark Theme. The screenshot included is the Create Edit Alarm Activity screen. It looks similar to Android Settings . Is this case Because..

Overriding referenced style attributes

http://stackoverflow.com/questions/17103894/overriding-referenced-style-attributes

referenced style attributes After reading through References To Theme Attributes I am trying to reference the value of an attribute in the my custom theme that I have set. I am applying a user.. item name android checkMark android listChoiceIndicatorMultiple item style My theme I created is defined as style name Theme.Yellowgreen parent android Theme.Holo.Light.DarkActionBar item name android listChoiceIndicatorMultiple @drawable btn_check_holo_light.. listChoiceIndicatorMultiple item style My theme I created is defined as style name Theme.Yellowgreen parent android Theme.Holo.Light.DarkActionBar item name android listChoiceIndicatorMultiple @drawable btn_check_holo_light item style However..

How to create Transparent Activity in Android?

http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android

file if you don ™t have one create it. Here ™s a complete file xml version 1.0 encoding utf 8 resources style name Theme.Transparent parent android Theme item name android windowIsTranslucent true item item name android windowBackground @android.. create it. Here ™s a complete file xml version 1.0 encoding utf 8 resources style name Theme.Transparent parent android Theme item name android windowIsTranslucent true item item name android windowBackground @android color transparent item item..

Set title background color

http://stackoverflow.com/questions/2251714/set-title-background-color

default theme and set the background style to our own style. xml version 1.0 encoding utf 8 resources style name customTheme parent android Theme item name android windowTitleBackgroundStyle @style WindowTitleBackground item style resources res.. the background style to our own style. xml version 1.0 encoding utf 8 resources style name customTheme parent android Theme item name android windowTitleBackgroundStyle @style WindowTitleBackground item style resources res values styles.xml This.. or in the activity only this activity tags activity android name .CustomTitleBar android theme @style customTheme ... From the Activity called CustomTitleBar @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState..

How do I apply a style to all buttons of an Android application

http://stackoverflow.com/questions/2410836/how-do-i-apply-a-style-to-all-buttons-of-an-android-application

icon @drawable icon android label @string app_name And in my styles.xml style name ApplicationStyle parent android Theme item name android button @style CKButton item style style name CKButton parent android style Widget.Button item name android..

How to change current Theme at runtime in Android

http://stackoverflow.com/questions/2482848/how-to-change-current-theme-at-runtime-in-android

to change current Theme at runtime in Android I've created a PreferenceActivity that allows the user to choose the theme he wants to apply to the.. to apply to the entire application. When the user selects a theme this code is executed if ... getApplication .setTheme R.style.BlackTheme else getApplication .setTheme R.style.LightTheme But even though I've checked with the debugger that.. entire application. When the user selects a theme this code is executed if ... getApplication .setTheme R.style.BlackTheme else getApplication .setTheme R.style.LightTheme But even though I've checked with the debugger that the code is being executed..

How to make android app's background image repeat

http://stackoverflow.com/questions/2706913/how-to-make-android-apps-background-image-repeat

android tileMode repeat values styles.xml xml version 1.0 encoding utf 8 resources style name app_theme parent android Theme item name android windowBackground @drawable app_background item item name android listViewStyle @style TransparentListView..

Setting global styles for Views in Android

http://stackoverflow.com/questions/3078081/setting-global-styles-for-views-in-android

You can override these in the following way Create a styles.xml xml version 1.0 encoding utf 8 resources style name MyTheme parent android Theme item name android textViewStyle @style MyTextViewStyle item style style name MyTextViewStyle parent.. in the following way Create a styles.xml xml version 1.0 encoding utf 8 resources style name MyTheme parent android Theme item name android textViewStyle @style MyTextViewStyle item style style name MyTextViewStyle parent android Widget.TextView.. resources Then just apply that theme to your application in AndroidManifest.xml application ¦] android theme @style MyTheme And all your text views will default to the style defined in MyTextViewStyle in this instance bold and red This was tested..

Is it possible to change the radio button icon in an android radio button group

http://stackoverflow.com/questions/3576507/is-it-possible-to-change-the-radio-button-icon-in-an-android-radio-button-group

your own style for radio buttons at res values styles.xml xml version 1.0 encoding utf 8 resources style name CustomTheme parent android Theme item name android radioButtonStyle @style RadioButton item style style name RadioButton parent @android.. radio buttons at res values styles.xml xml version 1.0 encoding utf 8 resources style name CustomTheme parent android Theme item name android radioButtonStyle @style RadioButton item style style name RadioButton parent @android style Widget.CompoundButton.RadioButton..

Wake Android Device up

http://stackoverflow.com/questions/3621599/wake-android-device-up

above flag combination to work. In my app I tried to use these flags with an activity which is not full screen Dialog Theme and it didn't work. After looking at the documentation I found that these flags require the window to be a full screen window...

AlertDialog from within BroadcastReceiver?? Can it be done?

http://stackoverflow.com/questions/4844031/alertdialog-from-within-broadcastreceiver-can-it-be-done

that no content view is defined. It is because your app will have transparent screen. To achieve that @android style Theme.Translucent is entered under Theme tag for this activity in AndroidManifest.xml. public class NotifySMSReceived extends.. It is because your app will have transparent screen. To achieve that @android style Theme.Translucent is entered under Theme tag for this activity in AndroidManifest.xml. public class NotifySMSReceived extends Activity private static final String..

How to change the font size of tabhost in android

http://stackoverflow.com/questions/5788971/how-to-change-the-font-size-of-tabhost-in-android

share improve this question You can define themes use styles to achieve this First you create the theme name CustomTheme for your Activity in your res styles.xml style name CustomTheme parent @android style Theme item name android tabWidgetStyle.. to achieve this First you create the theme name CustomTheme for your Activity in your res styles.xml style name CustomTheme parent @android style Theme item name android tabWidgetStyle @style CustomTabWidget item style style name CustomTabWidget.. the theme name CustomTheme for your Activity in your res styles.xml style name CustomTheme parent @android style Theme item name android tabWidgetStyle @style CustomTabWidget item style style name CustomTabWidget parent @android style Widget.TabWidget..

Android remove space between tabs in tabwidget

http://stackoverflow.com/questions/5799320/android-remove-space-between-tabs-in-tabwidget

padding 5dp LinearLayout TabHost LinearLayout styles.xml xml version 1.0 encoding utf 8 resources style name CustomTheme parent @android style Theme item name android tabWidgetStyle @style CustomTabWidget item style style name CustomTabWidget.. TabHost LinearLayout styles.xml xml version 1.0 encoding utf 8 resources style name CustomTheme parent @android style Theme item name android tabWidgetStyle @style CustomTabWidget item style style name CustomTabWidget parent @android style Widget.TabWidget..

ActionBar text color

http://stackoverflow.com/questions/5861661/actionbar-text-color

text color how can I change the text color of the ActionBar I've inherited the Holo Light Theme I'm able to change the background of the ActionBar but I don't find out what is the attribute to tweak to change the text.. the title you can also tweak the subtitle. Here is my styles.xml xml version 1.0 encoding utf 8 resources style name MyTheme parent @android style Theme.Holo.Light item name android actionBarStyle @style MyTheme.ActionBarStyle item style style name.. the subtitle. Here is my styles.xml xml version 1.0 encoding utf 8 resources style name MyTheme parent @android style Theme.Holo.Light item name android actionBarStyle @style MyTheme.ActionBarStyle item style style name MyTheme.ActionBarStyle parent..

Android: Where is the Spinner widget's text color attribute hiding?

http://stackoverflow.com/questions/6159113/android-where-is-the-spinner-widgets-text-color-attribute-hiding

item style EDIT Here's the result and here's how it's done xml version 1.0 encoding utf 8 resources style name MooTheme parent android Theme item name android spinnerItemStyle @style MooSpinnerItem item style style name MooSpinnerItem parent.. Here's the result and here's how it's done xml version 1.0 encoding utf 8 resources style name MooTheme parent android Theme item name android spinnerItemStyle @style MooSpinnerItem item style style name MooSpinnerItem parent android Widget.TextView.SpinnerItem..