android-design-library

How to add “Android Design Support Library” to Eclipse with ADT-plugin?

巧了我就是萌 提交于 2019-12-17 06:46:09
问题 The Android Developers Blog announced in May 2015: The Design library is available now, so make sure to update the Android Support Repository in the SDK Manager. I am using Eclipse (Version: Luna 4.4.2) with latest ADT-plugin and don't see anything "design" in the SDK manager: When trying to use android.support.design.widget.FloatingActionButton or android.support.design.widget.NavigationView in my projects like this one - I unfortunately get errors: Caused by: java.lang

How to add “Android Design Support Library” to Eclipse with ADT-plugin?

感情迁移 提交于 2019-12-17 06:46:07
问题 The Android Developers Blog announced in May 2015: The Design library is available now, so make sure to update the Android Support Repository in the SDK Manager. I am using Eclipse (Version: Luna 4.4.2) with latest ADT-plugin and don't see anything "design" in the SDK manager: When trying to use android.support.design.widget.FloatingActionButton or android.support.design.widget.NavigationView in my projects like this one - I unfortunately get errors: Caused by: java.lang

How I can remove the unnecessary top padding of the Navigation view?

浪尽此生 提交于 2019-12-17 06:08:25
问题 There's an unnecessary top padding between the header and the first item shown in this picture. How it can be removed? you can find the source code here: https://github.com/chrisbanes/cheesesquare 回答1: NavigationView seeks to match the material design specs for the navigation drawer which state an 8dp space between content areas. Generally there are no ways to override NavigationView to specifically break the specifications. 回答2: You can override predefined dimensions at your dimens.xml as;

how to change color of TextinputLayout's label and edittext underline android

自作多情 提交于 2019-12-17 04:41:51
问题 I am using android design library's TextinputLayout . But couldn't customize the hint color, label color and the underline color of EditText inside TextinputLayout . Please help. 回答1: To change bottom line color, you can use this in your app theme: <item name="colorControlNormal">#c5c5c5</item> <item name="colorControlActivated">@color/accent</item> <item name="colorControlHighlight">@color/accent</item> For more info, Check THIS THREAD. To change floating label color <style name=

how to change color of TextinputLayout's label and edittext underline android

拈花ヽ惹草 提交于 2019-12-17 04:41:13
问题 I am using android design library's TextinputLayout . But couldn't customize the hint color, label color and the underline color of EditText inside TextinputLayout . Please help. 回答1: To change bottom line color, you can use this in your app theme: <item name="colorControlNormal">#c5c5c5</item> <item name="colorControlActivated">@color/accent</item> <item name="colorControlHighlight">@color/accent</item> For more info, Check THIS THREAD. To change floating label color <style name=

how to change color of TextinputLayout's label and edittext underline android

孤者浪人 提交于 2019-12-17 04:41:06
问题 I am using android design library's TextinputLayout . But couldn't customize the hint color, label color and the underline color of EditText inside TextinputLayout . Please help. 回答1: To change bottom line color, you can use this in your app theme: <item name="colorControlNormal">#c5c5c5</item> <item name="colorControlActivated">@color/accent</item> <item name="colorControlHighlight">@color/accent</item> For more info, Check THIS THREAD. To change floating label color <style name=

File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020016 [duplicate]

浪尽此生 提交于 2019-12-17 04:31:46
问题 This question already has answers here : Update Android Support Library to 23.2.0 cause error: XmlPullParserException Binary XML file line #17<vector> tag requires viewportWidth > 0 (31 answers) Closed 3 years ago . Recently android support library was updated to 23.2.0 . After downloading android sdk and updating android design support library into 23.2.0 , this error happens repeatedly. My project can't even be compiled. The complete error log says: 03-02 12:00:04.945 9324-9324/com

Change EditText hint color when using TextInputLayout

北慕城南 提交于 2019-12-17 03:56:12
问题 I am using the new TextInputLayout from the design library. I am able to get it to show and to change the color of the floating label. Unfortunately the actual EditText hint is now always white. I have tried changing the hintColor in XML, styles, and programmatically and also tried using the android.support.v7.widget.AppCompatEditText but the EditText hint always shows white. Here is my XML for my TextInputLayout and EditText <android.support.design.widget.TextInputLayout android:layout_width

Android design support library for API 28 (P) not working

爱⌒轻易说出口 提交于 2019-12-17 02:35:09
问题 I've configured android-P SDK environment successfully. When I attempt to use the android design support library I face project build errors. Project configurations are: IDE: 3.2 Canary 17 Target API: 28 Compile API: 28 apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 28 defaultConfig { applicationId "com.app.navigationpoc" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0"

Can the tab selection indicator of TabLayout be pinned to the top of the screen while scrolling?

我的未来我决定 提交于 2019-12-13 01:53:44
问题 I am investigating the way to pin the tab indicator of TabLayout in CoordinatorLayout while scrolling down. If I add scroll|enterAlwaysCollapsed flag to the TabLayout , then the tablayout itself is dissappeared while scrolling down. I want tab indicator bar be pinned to the top of the screen. Is there a way to implement this? 回答1: I think you should just have no flags at all. Your layout should be something like: <CoordinatorLayout> <AppBarLayout> <Toolbar app:layout_scrollFlags="scroll