android-styles

Change Color of AppBar

十年热恋 提交于 2019-12-10 11:57:55
问题 I am trying to understand, what is the difference between Toolbar , Appbar , ActionBar . And i am trying to change the color of my AppBar or whatever it is to red. Someone mention try changing the theme. I tried but don't know the difference and i am also new to android programming. So if you could help me out. Here is the styles.xml file code <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name=

Rendering problems after updated gradle dependencies

淺唱寂寞╮ 提交于 2019-12-10 05:34:03
问题 I just updated build.gradle(Module: app) dependecies, and after that had rendering problems on Android Studio. What is wrong, before updating dependencies everythink worked correctly Here is how it is now: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:design:23.0.0' compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.google.android.gms:play-services:7.8.0' compile 'com.android.support:support-v4:23.0.0' compile 'com.android.support

Custom SearchView whole clickable in android

烂漫一生 提交于 2019-12-10 00:51:08
问题 I have a SearchView widget in my app, and I want to ask some questions about making it custom. First of all, you can start search only by clicking on search icon, is there any way to make whole SearchView clickable? Also, is there a way to make SearchView appear something like this when it is clicked? It is now in this state: Here is my code: citySearch = (SearchView) findViewById(R.id.city_search_bar); citySearch.setBackgroundResource(R.drawable.search_background); citySearch

Changing TimePickerDialog Styles

烂漫一生 提交于 2019-12-08 17:54:25
I want to change the style of my TimePicker but I can't get to change the color of the clock face and the header background. Here's my XML style code - <style name="DateTimeDialog" parent="Theme.AppCompat.Dialog"> <item name="android:colorBackground">@color/colorWhite</item> <item name="android:textColorPrimary">#000000</item> <item name="android:headerBackground">#000000</item> <item name="android:textColorSecondary">#000000</item> <item name="android:button">@color/colorWhite</item> <item name="android:colorPrimaryDark">@color/colorPrimaryDark</item> <item name="android:colorAccent">@color

getSupportActionBar().setCustomView(view) does not fill entire actionbar

自闭症网瘾萝莉.ら 提交于 2019-12-08 17:26:22
问题 I'm trying to set the customview of my app and the layout i made does not fill the entire actionbar. I've tried so many style settings but none has worked for me. here's my code in activity View view = getLayoutInflater().inflate(R.layout.actionbar_customized_home, null); getSupportActionBar().setDisplayShowCustomEnabled(true); getSupportActionBar().setCustomView(view); here's the layout placed set as view <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android

Android appcompat button style not working

我的未来我决定 提交于 2019-12-08 12:03:44
问题 This is my base theme for application: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorSecondaryLight</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:buttonStyle">@style/NormalButtonStyle</item> <item name="buttonStyle">@style/NormalButtonStyle</item> </style> And this is NormalButtonStyle: <style name=

Android - AppCompat does not support the current theme features Error

岁酱吖の 提交于 2019-12-08 11:35:13
问题 My app was working fine until I deleted few layout files and activities. Since then its showing this error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.skaprer.jope/com.skaprer.jope.Controllers.LoaderActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOverlay: false, android:windowIsFloating: false, windowActionModeOverlay: false, windowNoTitle: false } at android.app

Cordova fails to find Theme.AppCompat.Light

谁说胖子不能爱 提交于 2019-12-08 07:16:38
问题 I've set up a simple Cordova project which should display a splashscreen on Android. To utilize the whole screen I need to get rid of the statusbar by extending Theme.AppCompat.Light. So I set up this styles.xml file and put it into the root folder of the Cordova project. <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Full" parent="@style/Theme.AppCompat.Light"> <item name="android:windowNoTitle">true</item> <item name="android:windowActionBar">false</item> <item name=

How to make ActionBar and stacked bar share same background image

若如初见. 提交于 2019-12-08 07:02:50
问题 is it possible for actionbar and it's stacked bar(one that contain navigation tabs) to share same background image? one that starts from actionbar and ends at stacked bar? currently the way am implementing this, am ending up having action bar with it own image and stacked bar with its own. my styles.xml <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="android:actionBarStyle">@style/MyActionBar</item> <item name="android

Android tabs textcolor selector ignores state_pressed

こ雲淡風輕ζ 提交于 2019-12-07 17:00:59
问题 I have created my own android theme to change the look of the actionbar tabs. The problem is that textcolor selector seems to ignore state_pressed attribute, so the color of tab text is always the same, even if this tab is pressed. There is no problem with other states, for example state_selected is correctly recognized and selected tab has text color, which is different from unselected tabs text color. What is more, i have also created selector for tabs background and it works fine with