Questions tagged [androiddesignsupport]

The Android Design Support Library brings navigation drawer view, floating labels, a floating action button, snackbar, tabs, and a motion and scroll framework to tie them together.

The Android Design Support Library library brings Navigation Drawer View, Floating labels, a Floating Action Button (FAB), Snackbar, Tabs, and a motion and scroll framework to tie them together.

439 questions
189
votes
4 answers
119
votes
3 answers

What is the difference between AppBarLayout vs Toolbar?

I want to include Toolbar in my app, but the design support library just came out with AppBarLayout, so I just need clarification on what the difference is and when I would use one over the other.
Aleckson Nyamwaya
  • 1,233
  • 2
  • 9
  • 12
116
votes
7 answers

Change the color of a checked menu item in a navigation drawer

I am using the new Android Design Support library to implement a navigation drawer in my application. I can't figure out how to change the color of a selected item! Here is the xml of the menu :
Greg
  • 1,570
  • 2
  • 12
  • 22
111
votes
18 answers

android:textAllCaps="false" not working for TabLayout design Support

I have set android:textAllCaps="false" in my android.support.design.widget.TabLayout thought it is showing the Tab Title in All caps only. How can I remove all caps?
105
votes
8 answers

Remove BottomNavigationView labels

Google released new support library v25 with BottomNavigationView is there any way to remove items labels ?
101
votes
26 answers

Status bar turns white and does not show content behind it

I am trying out AppCompat on Marshmallow. And I want to have a transparent status bar however it turns white. I've tried a couple solutions but they didn't work for me (Transparent status bar not working with windowTranslucentNavigation="false",…
87
votes
25 answers

Error inflating class android.support.design.widget.NavigationView

I followed a tutorial of new component NavigationView in Support Design Library and can't get through this error message : Error inflating class android.support.design.widget.NavigationView I tried every workaround here Error when using any Android…
pptang
  • 1,931
  • 1
  • 15
  • 18
85
votes
7 answers

BottomSheetDialogFragment - How to set expanded height (or min top offset)

I create a BottomSheetDialogFragment and I want to adjust it's maximum expanded height. How can I do that? I can retrieve the BottomSheetBehaviour but all I can find is a setter for the peek height but nothing for the expanded height. public class…
prom85
  • 16,896
  • 17
  • 122
  • 242
85
votes
9 answers

TabLayout (Android Design Library) Text Color

I'm using the new TabLayout from the Android Design library. I managed to set the textcolor statelist using tabLayout.setTabTextColors(colorstatelist) How can i achieve the same using styles.xml?
sebastian
  • 2,610
  • 2
  • 17
  • 28
83
votes
17 answers

In android how to set navigation drawer header image and name programmatically in class file?

In android studio 1.4.1, I have created new Navigation Drawer Project which is default.My issue is in this project there is nav_header_main.xml file which is for navigation header image and name. I want this image and name should be set…
77
votes
8 answers

How to set the divider between Tabs in TabLayout of design support library?

I am using the new android.support.design.widget.TabLayout of v7-appcompat library, and found a problem, there is no way to set the divider between the tabs, dont know if there is. I have successfully configured the pager adapter and the tabs are…
Gopal Singh Sirvi
  • 4,539
  • 5
  • 33
  • 55
74
votes
14 answers

Support library VectorDrawable Resources$NotFoundException

I am using Design Support Library version 23.4.0. I have enabled the gradle flag: defaultConfig { vectorDrawables.useSupportLibrary = true } I am using build tools version 23.0.2, but still, I am getting Resources$NotFoundException on KitKat or…
73
votes
8 answers

Custom TextSize of BottomNavigationView support android

I am trying to change the textSize of BottomNavigationView from android support library 25.0.0
silentsudo
  • 6,730
  • 6
  • 39
  • 81
72
votes
11 answers

How can I change the NavigationView's item text size?

Google recently released the android.support.design.widget.NavigationView widget as part of the com.android.support:design:22.2.0 library, which greatly simplified (and standardises) the process of creating a NavigationDrawer. However according to…
Jay Wick
  • 12,325
  • 10
  • 54
  • 78
71
votes
20 answers

TextInputLayout :How to give padding or margin to hint?

I have to use TextInputLayout of design support library in my project. I want to give space between hint and EditText in TextInputLayout. I set margin and padding in TextInputLayout and even inside EditText but both are not work.So how to solve this…
1
2 3
29 30