android-theme

How to Change the Text Selection Toolbar color which comes when we copy a text?

孤街醉人 提交于 2019-11-27 23:43:59
问题 I am developing an application and i set "android:textIsSelectable" for the TextViews. But my material theme is not matching with the TextSelection appBar. Is there a way by which i can change the color of that appBar ?? Attached the Image Below Check it :- 回答1: Assuming you use the appcompat-v7 library add these to your theme:¨ <!-- this makes sure the action mode is painted over not above the action bar --> <item name="windowActionModeOverlay">true</item> <item name="actionModeBackground">

What's the difference between windowBackground and background for activities style?

梦想的初衷 提交于 2019-11-27 21:57:32
I have a background set for all of the activities of the app by using the "android:background" parameter in the styles and setting the theme of the application to link to this style. All worked well, till I've noticed that for a dialog with a list of items, it makes each item to have the full size of the background . After changing the parameter being used to "android:windowBackground" it seems to work fine in this case too. Why does it occur? What is the difference between the two? Also , does setting "android:windowBackground" to @null as written here provide the same speed boost as using

How to set the theme for the application, to avoid wrong color transitions?

旧时模样 提交于 2019-11-27 20:47:55
问题 Background I'm developing a themes chooser feature in my "app manager" app, and I've succeeded setting the theme dynamically for each of the activities. AGAIN : this is not about setting the theme for the activities. This actually works fine for me. The problem The acitivties are showing the correct theme, but the application itself, when launching the app, is showing the wrong one, no matter what I do. This is a problem because when the user opens the app, he will see the background of the

Different Theme for different Android SDK versions

你说的曾经没有我的故事 提交于 2019-11-27 20:29:25
问题 Is there a way to use a different theme depending on which SDK version the application is installed on? The reason I ask is because I want to support all the way back to SDK version 8, but for those users that have ICS I want to be able to follow the design standards for ICS and use the Holo theme. I can see from Program different layouts for different versions in android that I can have a folder values-v14 which will have a theme.xml to override the theme declaration. However, it won't

android:theme=“@android:style/Theme.NoTitleBar.Fullscreen” works on Application level but not at the activity level. Any clue?

大兔子大兔子 提交于 2019-11-27 20:12:39
I need to make one of my activities called MyNoStatusBarActivity.java a full-screen activity. I have added in the Manifest : <activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:name=".MyNoStatusBarActivity" android:noHistory="true" android:label="@string/app_name" android:configChanges="touchscreen|keyboard|keyboardHidden|navigation|orientation"> ... </activity> And in the onCreate of my activity : @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(

Styling ActionBar dropdown menu

妖精的绣舞 提交于 2019-11-27 17:53:58
I'm using a custom theme that inherits from DarkActionBar and I want to customize dropdown menu to be white like when using Light Holo theme. I've been able to change the background to white using: <style name="MyTheme" parent="@style/Theme.Light.DarkActionBar"> <item name="android:actionDropDownStyle">@style/MyDropDownNav</item> </style> <style name="MyDropDownNav"> <item name="android:background">@drawable/spinner_background_white</item> <item name="android:popupBackground">@drawable/menu_dropdown_panel_whyite</item> <item name="android:dropDownSelector">@drawable/selectable_background_white

AlertDialog styling - how to change style (color) of title, message, etc

僤鯓⒐⒋嵵緔 提交于 2019-11-27 17:42:24
I've breaking my head over this quite a bit. What I need to do is, change the style of all AlertDialog s in my android application - dialog background needs to be white-ish, and text needs to be black-ish. I tried creating a lot of styles, themes, and applying from the code, manifest, etc, but no success, with regard to the text colors inside the AlertDialog . Right now, I have the simplest of codes, set like this: Manifest: <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > styles.xml: <style name="AppTheme" parent=

Android - change dialog title style of all dialogs in application

丶灬走出姿态 提交于 2019-11-27 15:35:53
Is there a way I can change all the alert dialogs appearing in my Android application? I want to change the dialogs that are system generated as well ( like the Edit Text dialog that opens up when you long tap on any EditText ). I want to change the title font color and size of all the dialogs in my app. Is there a way to do it? I have tried setting android:alertDialogTheme in my theme. But it seems to be not working. Code following - <style name="Theme.DLight" parent="android:Theme.Light.NoTitleBar"> <item name="android:alertDialogTheme">@style/DialogStyle</item> </style> and <style name=

Android: making a fullscreen application

我只是一个虾纸丫 提交于 2019-11-27 11:33:44
What is the simplest change that I can make to a new Blank Activity, as created by the latest version of Android Studio, to get the app to appear fullscreen? I want to create a fullscreen Android application. I'm working with Android Studio. This post suggests that I add a line such as ... android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen" ... to the AndroidManifest.xml file, as shown below: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.lexogram.james.blackslate" > <application android:allowBackup=

Dropdown Spinner outside of actionbar? (IceCream Sandwich style, w/ActionBarSherlock)

*爱你&永不变心* 提交于 2019-11-27 10:59:26
问题 Is there a way to create a Dropdown Spinner for Android 2.3.3? I am using ActionbarSherlock. Here is an Example of what I mean: Thanks 回答1: As it stands, you're in luck. It can be done with ActionBarSherlock and it works with versions pre-4.0 . However, I'm not 100% sure Jake Wharton will want us to use it like this, since it's not exactly "public api", AFAIK (I've meant to ask). Anyway, you have to first create your own class to extend from the ActionBarSherlock class: public class