android-theme

Changing the text appearance in styles and themes for an Android app

眉间皱痕 提交于 2019-12-12 08:17:50
问题 I am writing an android app and I am wanting to alter the theme of my app. I have managed to alter the background colour of the app by using a theme, but I am struggling to change the default text appearance. This is my styles.xml resource file. <resources> <style name="QTheme" parent="android:Theme.Light"> <item name="android:windowBackground">@color/q_green</item> <item name="android:colorBackground">@color/q_green</item> <item name="android:textAppearance">@style/QText</item> </style>

Android 5.0: howto change Overview Screen Task Title background color

て烟熏妆下的殇ゞ 提交于 2019-12-12 07:51:57
问题 The new Android 5.0 Lollipop Overview Screen features each App's Task with a screenshot and a (by default) grey title bar. Some Lollipop Apps (For example the new Play Store) use different colours. How can the colour of the Overview Screen title background be changed? 回答1: In general, if you're targeting Material then you should set colorPrimary (action bar, recents), colorPrimaryDark (status bar), and colorAccent (check boxes, progress bars, etc) in your theme. That said, you can dynamically

making customized theme for android phone

余生长醉 提交于 2019-12-12 07:38:34
问题 I'm a new mobile developer and i know how to put theme on an application i was able to make 2 mobile application as of now but i wanted to try to make a customized theme for phones. I'm wondering if anyone out there has idea on the following. 1.how to make a customized theme for phone. 2.what is the format of the theme. 3.is it possible to make it in eclipse. 4.what are the things needed to consider to make a theme for phone. 5.how to implement customized theme on phone. 6.available tutorial

old theme in 4.0+ app

怎甘沉沦 提交于 2019-12-12 03:54:26
问题 I've created a spinner in my activity and when i run my app on my Jelly Bean device the theme of the spinner is like 2.x, how can i get the ICS one? Here's my spinner code : <Spinner android:id="@+id/spinnermap" style="@android:style/Theme.Holo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" /> As you can see I tried to set the global style "Holo" but no results.. I had the same problem with a

Change color of action bar shadow gradient

99封情书 提交于 2019-12-12 00:18:24
问题 I'd like to change the color of the shadow gradient that appears at the bottom of the Action Bar . I'm using ActionBarSherlock . I've looked through the XML resources trying to determine where this shape is defined but I'm feeling a bit overwhelmed. Can somebody point me in the right direction? 回答1: I've looked through the XML resources trying to determine where this shape is defined They are not defined as XML shapes. The ActionBar/ABS uses 9Patches. You can use the ActionBar Style generator

Theme_HoloEverywhereLight_Sherlock showing dark background

白昼怎懂夜的黑 提交于 2019-12-11 17:52:55
问题 I'm using Christophe Versiuex's HoloEverywhere library in concert with ActionBarSherlock to display an ICS looking app on Gingerbread phones. The Theme.HoloEverywhereDark.Sherlock theme works great. But when I try to change the theme to Theme.HoloEverywhereLight.Sherlock, all the text changes to dark text, but the Activity backgrounds stay dark. All I'm doing is: setTheme(R.style.Theme_HoloEverywhereLight_Sherlock); setContentView(R.layout.mylayout); in the Activity.onCreate() method. In

Toolbar's popup menu - custom background (color and borders)

纵然是瞬间 提交于 2019-12-11 14:15:21
问题 How can I make such popup item menu for my toolbar (support v7)? screenshot of transparent toolbar's popup menu (MX Player) I found out how to make transparent background: from layout <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:theme="@style/MyToolbarTheme"/> from style <style name="ToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> <item name="android:colorBackground">@color/my

Android - want to show 3-dots menu on ICS

帅比萌擦擦* 提交于 2019-12-11 12:56:12
问题 I want to show the 3-dot overflow menu key (next to the RecentApp virtual key) when building my app with android:targetSdkVersion="15" Here is my story. My app includes two lib projects (only jars + res no source), lib-a is using menu; when the app was built with target-sdk=10, works well, the 3-dot icon shows up next to RecentApp key on system navigation bar. Now lib-b got upgraded, I HAVE to build the app with target-sdk=15, but this makes lib-a UI menu disappear. I want lib-a to have menu

How do I keep ActionBar items' background the same while changing the app's main background?

橙三吉。 提交于 2019-12-11 12:18:24
问题 I am trying to change the background of the app, but when I do the below (sdk 14) the items in the actionbar also change to match the new background color. The actionbar itself has the correct background, but the items in the actionbar do not. I was able to get the actionbarmenuitems to be correct, but the title and search view and home icon and back button all have the background set on the custom theme. What am I doing wrong? <?xml version="1.0" encoding="utf-8"?> <resources> <style name=

How to set screen size to full screen at runtime in android

本小妞迷上赌 提交于 2019-12-11 11:46:27
问题 I want to change the screen layout in my application to full screen when the user click on button but it didn't work, my code is: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btnFullScreen = (Button) findViewById(R.id.btnFullScreen); btnNormalScreen = (Button) findViewById(R.id.btnNormalScreen); btnFullScreen.setOnClickListener(new OnClickListener() { public void onClick(View v) { setTheme(R.style