Questions tagged [android-design-library]

The Design package provides APIs to support adding material design components and patterns to your apps.

The Design Support library adds support for various material design components and patterns for app developers to build upon, such as navigation drawers, floating action buttons (FAB), snackbars, and tabs.

744 questions
0
votes
3 answers

CollapsingToolbarLayout define animation start

How could I change the starting of animation in CollapsingToolbarLayout? I figured out that animation is controlled by the app:contentScrim attribute. But the "alpha" animation is starting too soon. Could I change the animation attributes somehow? …
user1908375
  • 1,069
  • 1
  • 14
  • 33
0
votes
1 answer

Wrapping the design library navigation drawer in a Fragment

Is there an (easy) way to wrap the navigation drawer view (more precisely android.support.design.widget.NavigationView) from the design support library in a Fragment? The motivation behind this is to move navigation drawer related code (e.g. a…
0
votes
1 answer

ListPopupWindow doesn't display correctly in TextInputLayout

I'm trying to add a custom ListPopupWindow to a TextView wrapped in a TextInputLayout. The TextView has an OnClick listener that creates and shows the ListPopupWindow. Effectively I'm working on a custom Spinner. If I change the TextInputLayout to a…
0
votes
1 answer

ViewPager and other viewGroup in CoordinatorLayout not working

I observed that adding appbar_scrolling_view_behavior to a ViewPager and that viewPager is not fullScreen (in my case contains some bottom buttons/tabs), then the viewPager has a bigger height (with the height of the toolbar I guess) and overlaps…
0
votes
0 answers

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.appcompat.R$styleable" on path: DexPathList

I am getting the following error on Intellij 15.0 Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.appcompat.R$styleable" on path: DexPathList I have defined the Design & AppCompat libraries but i am not sure…
0
votes
2 answers

Insert Image Header in Navigation Drawer Fragment with API 15

Whats the better way to Insert Image Header in Navigation Drawer Fragment with API 15? I know how put it with api 21, but i need to know this other method, if it is possible. Thanks
0
votes
1 answer

Android support design library vs. raygun

I have an app that uses Raygun. This is giving me problems when I try to update the com.android.support:design library. They works fine when I use com.android.support:design:22.2.0, but when I go up to com.android.support:design:23.+ I get a series…
KairisCharm
  • 1,363
  • 1
  • 13
  • 32
0
votes
1 answer

Android How make the same action bar?

Please help me. How i can make the same action bar?(Without using the observablescrollview…
0
votes
1 answer

Android design support navigation drawer selecting multiple items

I want to know if there is a way to tell the design support navigation drawer to only mark one item as selected, when I have sub-items which contain more items. Code:
0
votes
0 answers

Android design support CollapsingToolbar subtitle

Is there any way to set a subtitle to a design support CollapsingToolbar? I didn't find any method to do that, but I know the AppCompat Toolbar has a method to set subtitles, but trying to use that together with the CollapsingToolbar doesn't display…
0
votes
1 answer

ViewPager within AppBarLayout does not work?

With a ViewPager placed within the AppBayLayout, I get a cast exception between FrameLayout.LayoutParams and CoordinatorLayout.LayoutParams. If I switch out ViewPager with an ImageView in the following xml, it works perfectly. Any suggestions on…
tgalfer
  • 11
  • 2
0
votes
3 answers

Can not set background color of android.support.v7.widget.Toolbar

I create app from the template with Design Support Library and gonna change the color of the android.support.v7.widget.Toolbar to pure red.
tse
  • 5,769
  • 6
  • 38
  • 58
0
votes
1 answer

How to prevent a layout moving along with toolbar inside a coordinator layout?

I have a HomeActivity which has tabs containing fragments. In which BoardFragment has children RecyclerView and a RelativeLayout(at bottom). My Toolbar collapses when I scroll up. But my RealtiveLayout on the bottom also coordinate with them. Only…
0
votes
2 answers

How to have Material Design for Pre-Lollipop Devices

I'm looking to have the same design for Pre-Lollipop devices. In my application I'm using a switch button which is looking like this on Lollipop devices : and on Pre-Lollipop devices. it's looking like this : So how can I do that I have two styles…
Stranger B.
  • 9,004
  • 21
  • 71
  • 108
0
votes
2 answers

getCustomView() of TabLayout.Tab is not public in Design Library

I am using the Google Design Library v22.2.0. I have used the TabLayout with ViewPager using custom view for tabs. After getting location, I have to update the Title of custom tab view. This was the 1st option I tried to update…
Tejas
  • 585
  • 3
  • 15