android-appcompat

Render error android studio failed to load appcompat action bar, even after matching library versions

喜欢而已 提交于 2019-12-11 14:27:08
问题 apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.app.newzubair.yld" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com

Customizing preference headers layout

时光怂恿深爱的人放手 提交于 2019-12-11 12:49:45
问题 I am using the SettingsActivity generated from AndroidStudio ( New , Activity , Settings Activity ) that relies on AppCompatDelegate. I have succeeded to add a toolbar and to set a custom divider to the listview used for displayer preference headers as follows: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout root = (LinearLayout) findViewById(android.R.id.list).getParent().getParent().getParent(); Toolbar toolbar = (Toolbar)

Appcombat v7 Toolbar with drawer changing colors

爱⌒轻易说出口 提交于 2019-12-11 12:28:44
问题 I am implementing material design on my app, and I want to be able to change the color of the drawer icon to white, but I couldnt achieve what I am looking for.. This is my themes.xml file: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="AppTheme" parent="AppTheme.Base" /> <style name="AppTheme.Base" parent="Theme.AppCompat.Light"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color

Error:(773) Attribute “titleTextStyle” has already been defined

我的梦境 提交于 2019-12-11 10:55:10
问题 I'm trying to migrate a project from Eclipse to Android Studio and after googling the problem I found an answer here. Unfortunately, my app requires both the ActionBarSherlock library and appcompat-v7 . This wasn't a problem in Eclipse, so why should Android Studio complain? Also, can anyone think of a solution, short of replacing the needed ActionBarSherlock methods with alternatives? I've looked into that and I see at least a couple of weeks of work ahead, which would blow my delivery

Can I use the latest version of the appcompat library with a project that is targeting sdk 21

独自空忆成欢 提交于 2019-12-11 10:26:54
问题 I dont know much about this appcompat library so apologies if this isnt the smartest question. I have a project that i was having a problem with. Turns out i had the targetSdkVersion set to 23 and it was causing me a problem since i wanted to use 21. So I changed it to 21. In my build.gradle I have compile com.android.support:appcompat-v7:23.1.1. And this causes the following problems when i try to build: C:\Users\Conor\Documents\Programming\AndroidStudioProjects\AndroidStudioProjects

Material Design and appcompat not working on older API versions

Deadly 提交于 2019-12-11 10:23:12
问题 I am using appcompat v7 (23.1.1) for a MaterialDesign backward compability. On a API 21 device it looks nice. On older API versions nothing of my styles is affecting. Why? Result in API 21 (goal): Result in API 17 (bad): Here is my style.xml inside values folder: <resources> <!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. --> <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> <!-- Theme

Tabs with MVVMCross 6.2+

耗尽温柔 提交于 2019-12-11 10:22:11
问题 I have created simple Xamarin Android app with MVVMCross 6.2+ and trying to create tab layout properly. Right now I get only one (the last registered tab) on screen, but after rotation (recreation) there are all three of them (as it should be). What's wrong? What have I missed? How to fix it? Thanks in advance for your help. MvvmCrossTabs.Core HomeViewModel.cs using System.Collections.Generic; using System.Threading.Tasks; using MvvmCross.Commands; using MvvmCross.Logging; using MvvmCross

How to set same font family to entire android application

会有一股神秘感。 提交于 2019-12-11 09:37:07
问题 Hello I want to set same font family to entire Android application. I have seen this Is it possible to set a custom font for entire of application? but this all doing using code. I want to set in Theme such that it will work in all. It should convert the font family of ActionBar text also. Any way to do this ? styles.xml <resources> <!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. --> <style name=

Action bar doesn't accept personal styles

拟墨画扇 提交于 2019-12-11 09:27:58
问题 I am trying to personilize my action bar. I want it to support API-9 and above the problem is that action bar doesn't accept changed made in styles.xml and items are not shown. this is my styles.xml : <resources> <style name="AppBaseTheme" parent="Theme.AppCompat.Light"></style> <style name="AppTheme" parent="AppBaseTheme"> <item name="android:windowBackground">@color/background_window</item> <item name="android:actionBarStyle">@style/ActionBarStyle</item> </style> <style name="ActionBarStyle

Why don't AppCompat v21 SearchView styles work in my app?

百般思念 提交于 2019-12-11 09:14:51
问题 I am trying to follow the "SearchView Widget" section in this blogpost to style my SearchView. I have added searchIcon , queryBackground and submitBackground values in my res/values-v21/styles.xml but the styles don't seem to apply: I am posting the code of the SSCCE and also posting the zipped eclipse project here , in case somebody will like to try it. SSCCE res/values-v21/styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="AppBaseTheme"> <!-- <item