android-support-library

Android password visibility toggle not working with support library 25?

為{幸葍}努か 提交于 2019-12-04 03:21:12
I have implemented a TextInputLayout with a password field in the usual way: <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/returning_password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/prompt_password" android:inputType="textPassword" android:maxLines="1" android:textSize="14sp" /> </android.support.design.widget.TextInputLayout> This worked fine when using the Android support library up to version 24.0.2, but after switching to 25.0.1:

SearchView on support.v7.appcompat library issue: default 9-patch background not renders properly

落花浮王杯 提交于 2019-12-04 02:55:57
问题 I'm developing an app with ActionBar using support.v7.appcompat library. The action bar works, the SearchView is shown, the hint shows. The only problem is that the background of the SearchView is not scalling properly. Insead of the usual, it appears big and with the 9-patch black lines. Using: Developing from command line, using ant debug to compile. On Linux Mageia 3, ant version: Apache Ant(TM) version 1.8.4 compiled on January 11 2013 Linking to library with project.properties line:

BotomSheetDialog FabButton Anchor View not working as expected

和自甴很熟 提交于 2019-12-04 02:50:34
问题 Hi I am trying to anchor Fab button to BottomSheetDialog but it is not working. EDITED Here is My Dialog public static class QuickInfoDialog extends BottomSheetDialogFragment { private BottomSheetBehavior.BottomSheetCallback mBottomSheetBehaviorCallback = new BottomSheetBehavior.BottomSheetCallback() { @Override public void onStateChanged(@NonNull View bottomSheet, int newState) { if (newState == BottomSheetBehavior.STATE_HIDDEN) { dismiss(); } } @Override public void onSlide(@NonNull View

Android Bottom Navigation View item text color?

风流意气都作罢 提交于 2019-12-04 01:35:01
问题 I Started working on Android Bottom Navigation View. But i am facing one issue. If i added 5 items to bottom navigation view, only selected items showing item text. If i added 3 items it is working fine. Any one please tell me how to show the item text for all the 5 items. Thank you in advance. menu.xml: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com

Android colorControlNormal xml attributes doesn't work pre-Lollipop

孤者浪人 提交于 2019-12-04 01:12:46
I've been trying to change the color of the EditText line on the bottom, but my EditText still doesn't wanna change the color, but it's using the style from Material . I've tried to change the color following these answer: link So I have an EditText with the Material form but not the colors I've set. I've put appcompat-v7 in my Gradle config file, and it's already working for the color primary. <style name="AppBaseTheme.MiddleTheme.Widget.EditText" parent="Theme.AppCompat.Light"> <item name="colorPrimary">@color/middle_primary</item> <!-- Those 3 lines are staying in red war in IntelliJ but it

Bug with anchored FloatingActionButton in support library 24.2.1

吃可爱长大的小学妹 提交于 2019-12-04 00:56:09
I have been having this issue since 24.2.0, but now I'm using 24.2.1 and the bug is still here, it only works well <= 24.1.1. I have an anchored FloatingActionButton done like this: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.CoordinatorLayout android:id="@+id/contact_coordinator_layout" android:layout_width="match_parent" android:layout_height="wrap_content" tools

Android SearchView does not work

南楼画角 提交于 2019-12-04 00:42:00
问题 I tried to update all the libraries, but i still got errors. I am able to run the app on the simulator, but when I export the APK and run it on a real android device, the app is not working. MinSdkVersion is 8, targetSdkVersion is 19. Please help!!! menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:example="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_showTC" android:orderInCategory="100" android:showAsAction="never" android:title=

Google Play Services 9.2.0 missing classes [duplicate]

柔情痞子 提交于 2019-12-03 23:22:39
This question already has answers here : Closed 3 years ago . Places class is removed from android play services 9.2.0 (3 answers) After an update to Google Play Services 9.2.0 of 28th, June, there are some missing classes that prevent working projects from compiling: Error:(24, 35) error: package com.google.android.gms.maps does not exist The same about Google Places, so if you updated to google play services 9.2.0, your project probably won't compile. Downgrading to 9.0.2 solves the problem: compile 'com.google.android.gms:play-services-location:9.0.2' Does anyone know how to fix the issue

PercentRelativeLayout is more Performant?

允我心安 提交于 2019-12-03 22:34:13
I always use LinearLayout and RelativeLayouts, and i was reading about the "new" PercentRelativeLayout . I have a few questions: Should i always start using this one or only in cases of nested weights with linearlayout? Is this more performant than the others? Any other information about PercentRelativeLayout it will be welcome. Thanks! Jeroen Mols Looking at the source code , a PercentRelativeLayout is basically a minor extension of a RelativeLayout. This means you need to make the same considerations as when you choose between a RelativeLayout and LinearLayout. RelativeLayout needs 2 measure

Collapsing toolbar with image, tabs and FAB

北战南征 提交于 2019-12-03 22:09:10
I'm having difficulties trying to implement the toolbar as in images below: However, I've failed to add the Floating Action Button like shown on image. I'm using Googles design support library. Any ideas? My current XML code: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match