android-support-library

Preventing TextInputLayout from making TextInputEditText taller

久未见 提交于 2019-12-23 12:28:11
问题 I want that password toggle feature, and it seems TextInputLayout has that feature, not TextInputEditText . But as you see the code below, even though I set the height to wrap_content and app:hintEnabled="false" , the height of TextInputEditText gets taller if the TextInputEditText is in TextInputLayout . Compare that to the height of the TextInputEditText outside the TextInputLayout . Since I do not use that hint animation, there is no need that the TextInputLayout to increase the height of

Proguard rules for Android support library (v4 & v7)

佐手、 提交于 2019-12-23 12:13:44
问题 I use, android support library v4 and v7 in my app. I am using only few widgets from the support library (not all of them). But in final release API, 18K functions are included from support libraries. (screenshot attached) How to reduce them? Following is my proguard config. -optimizationpasses 3 -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content

Android support action bar not showing overflow menu

六眼飞鱼酱① 提交于 2019-12-23 10:08:24
问题 My android app supports 2.2 and higher. I'm using the appcompat support library for the action bar, so it should only show if there are things that don't fit. I want my action bar to support the overflow button (the three vertical squares) that reveals a menu with the other items when clicked. In my menu file, I have three items set up. However on the app I only see two of them, and the overflow button is not showing as well. activity_menu.xml <menu xmlns:android="http://schemas.android.com

Robolectric InflateException when using v7 support library AlertDialog

回眸只為那壹抹淺笑 提交于 2019-12-23 09:48:40
问题 Using a normal android.app.AlertDialog works with ShadowAlertDialog.getLatestAlertDialog() , but if you use a support library android.support.v7.app.AlertDialog , then this exception happens: android.view.InflateException: XML file app/build/intermediates/res/qa/debug/layout/abc_alert_dialog_material.xml line #-1 (sorry, not yet implemented): Error inflating class android.support.v7.internal.widget.DialogTitle at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713) at

Gingerbread devices not using Holo style from Theme.AppCompat (support library)

戏子无情 提交于 2019-12-23 09:38:11
问题 I'm using the v4 and v7 support library to integrate the action bar and navigation drawer in my app, which supports API 10+. I've followed the guide on the developer site to use Theme.AppCompat and style/Widget.AppCompat.ActionBar as the parent of my theme and action bar style, respectively. Everything works fine, except when I test on Gingerbread devices, things like a dropdown/popup menu has a white background (skin from the phone) and text fields don't use the holo-style backgrounds (again

while using support library i am getting an error that Attribute “ ” has already been defined in android

时光毁灭记忆、已成空白 提交于 2019-12-23 09:36:54
问题 I am using android version 4.2.2(API 17) and i am getting a lot of errors in the console.The errors are in the format of [[[Attribute " " has already been defined in android]]] inside the quotes a lot of values present.For example title,height,isLightTheme,windowActionBar color,spinBars,drawableSize,gapBetweenBars,topBottomBarArrowSize etc..... The console is shown below..... [2014-12-18 10:22:16 - sample] /mnt/D/workspaceinnerimage1/appcompat_v7/res/values/attrs.xml:28: error: Attribute

Navigation Drawer Using Appcompat v7 - Issues with ?android:attr Tag

我只是一个虾纸丫 提交于 2019-12-23 09:19:39
问题 I am using an actionbar and navigation drawer in my project. Using appcompat v7 and v4. I have added the appcompat v7 WITH resources. The following is my textview for the navigation drawer list taken straight from the android sample app found at Creating a Navigation Drawer The bottom three lines all cause my application to fail, it builds okay, but I get a force close and I am not sure how to solve the problem. I don't understand why the attributes are not being found, considering I added

android design library gradle null pointer exception

无人久伴 提交于 2019-12-23 08:35:08
问题 I'm trying to add android.support.design library to my project: All the interesting things in my gradle file: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:design:22.2.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.android.support:support-v13:22.1.1' compile 'com.android.support:recyclerview-v7:22.1.1' compile 'com.android.support:cardview-v7:22.1.0' } I'm getting Error:Android Gradle Build Target: java.lang

android design library gradle null pointer exception

梦想的初衷 提交于 2019-12-23 08:34:11
问题 I'm trying to add android.support.design library to my project: All the interesting things in my gradle file: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:design:22.2.0' compile 'com.android.support:support-annotations:22.0.0' compile 'com.android.support:support-v13:22.1.1' compile 'com.android.support:recyclerview-v7:22.1.1' compile 'com.android.support:cardview-v7:22.1.0' } I'm getting Error:Android Gradle Build Target: java.lang

Android support library 23.4.0: android.support.v7.widget.TintContextWrapper cannot be cast to Activity

可紊 提交于 2019-12-23 07:51:09
问题 So I updated to the latest support libraries, and got a crash I am not able to fix. My build.gradle now has these dependencies: dependencies { compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:gridlayout-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:cardview-v7:23.4.0' compile 'com.android.support:recyclerview-v7:23.4.0' compile 'com.android.support:design:23.4.0' // More stuff... } I had a working listener that is used to