Questions tagged [android-support-design]

Android support design is library that introduce by google for giving support of few material design components to all android 2.1 devices or higher devices.

About android support design library .

With a little help from the new Android Design Support Library, we’re bringing a number of important material design components to all developers and to all Android 2.1 or higher devices. You’ll find a navigation drawer view, floating labels for editing text, a floating action button, snackbar, tabs, and a motion and scroll framework to tie them together.

For implementation and specification

1.android-design-support-library

242 questions
197
votes
11 answers

BottomNavigationView display both icons and text labels at all times

I am using android.support.design.widget.BottomNavigationView from design support library version 25 compile 'com.android.support:design:25.0.0'
154
votes
23 answers

Set state of BottomSheetDialogFragment to expanded

How do you set the state of a fragment extending BottomSheetDialogFragment to expanded using BottomSheetBehavior#setState(STATE_EXPANDED) using the Android Support Design Library (v23.2.1)? https://code.google.com/p/android/issues/detail?id=202396…
151
votes
21 answers

How to disable BottomNavigationView shift mode?

BottomNavigationView doesn't show menu's title that are inactive. How to show titles of all menu elements in bottomNavigationBar? The problem is that in my case shown only title of element that is clicked.
Natan Rubinstein
  • 1,873
  • 3
  • 11
  • 13
124
votes
37 answers

Disabling User dragging on BottomSheet

I am trying to disable user dragging on BottomSheet. The reason I want to disable is two things. 1. It's preventing the ListView from scrolling downward, 2. I don't want users to dismiss using dragging but with a button on the BottomSheetView. This…
88
votes
7 answers

InflateException with FloatingActionButton from Official Design Library

I am getting a bug using the official FloatingActionButton from Google's support design library. Here is my LogCat. android.view.InflateException: Binary XML file line #34: Error inflating class android.support.design.widget.FloatingActionButton at…
69
votes
9 answers

Rounded corners on material button

I'm following the tips from questions like this to create a button style like suggested on Material Design. However, I need to change the corner radius and haven't been able to do so by inheriting Widget.AppCompat.Button.Colored style and setting…
58
votes
6 answers

Using BottomSheetBehavior with a inner CoordinatorLayout

The design support library v. 23.2 introduced BottomSheetBehavior, which allows childs of a coordinator to act as bottom sheets (views draggable from the bottom of the screen). What I’d like to do is to have, as a bottom sheet view, the following…
56
votes
17 answers

How do I change the default height of a BottomSheetDialog?

I've been using the new BottomSheetDialog added in Support Library 23.2, but I want to change the default height of the dialog. I know it probably has to do with the behavior_peekHeight attribute which controls the initial height, but how do I set…
ianhanniballake
  • 191,609
  • 30
  • 470
  • 443
51
votes
7 answers

How to set maximum expanded height in android support design bottom sheet?

I already showed my bottom sheet layout with its peek height set to 100dp. But how can I limit my bottom sheet to expand to 500dp only? This is my sample…
51
votes
4 answers

Android CollapsingToolbarLayout Title background

I'm working with the CollapsingToolbarLayout from the new Android Design Support Library. I have set its title and it is working fine, the only problem I still have is that when you scroll, the text is lost, depending on the image in the background.…
49
votes
4 answers

How to enable horizontal scroll in tab like Google Play?

I'm referencing a great demo here regarding material design. It has tabs, but when I add too many the tab items get squished (see screenshot). How can I make it scroll horizontally? I believe below is the layout I should make the change, but I…
44
votes
7 answers

Recycler view item fill up entire recycler view height after upgrading support library from "23.1.1" to "23.2.1"

Previously, I'm using the following old support libraries "23.1.1". compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:support-v4:23.1.1' compile 'com.android.support:preference-v7:23.1.1' compile…
42
votes
2 answers

AppBarLayout.setExpanded(boolean, true) weird animation in support library 23.1.1

In my app I expand or contract the AppBarLayout on a specific event using setExpanded(boolean, true). I've got a good result, with a snappy and fluid animation using com.android.support:design:23.1.0, then I updated to 23.1.1 and the animation got…
Nifhel
  • 2,013
  • 2
  • 26
  • 39
41
votes
2 answers

How to enable/disable toolbar scrolling programmatically when using design support library

I use support design library to show/hide toolbar when scrolling a recyclerView inside a fragment, as mention here https://github.com/codepath/android_guides/wiki/Handling-Scrolls-with-CoordinatorLayout
Mohamad Shaker
  • 1,466
  • 2
  • 14
  • 21
39
votes
5 answers

How to hide ToolBar when I scrolling content up?

I am trying to hide my tool bar when I scroll my text and image with content. Here I use scrollView for getting scroll content. When I scroll content up, how to hide the tool bar? Here is my XMl…
1
2 3
16 17