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
1 answer

Weird Options Menu using Theme.AppCompat.Light on Android version < 5.0

I have an app with minSdkVersion = 8. I am using the following theme: On Android version less than 5.0, the drop down menu looks that weird: Anyone knows why? How can we…
0
votes
1 answer

Android Design Support Library - Tablayout with toolbar

I just made the jump from eclipse to Android Studio and I'm fixing some issues that have come up. One of which is removing the tab navigation offered by ActionBar and switching to the Tablayout offered by AD support library. I have everything up…
0
votes
0 answers

How to use adapters with NavigationView to add items to the NavigationView?

How can I use an adapter to dynamically add a NavigationView (programatically) without relying on a RecyclerView (ie, just appending items to the NavigationView based on data I have stored in the app's SQLite database) I have managed to get items…
0
votes
1 answer

TabLayout eclipsing Toolbar

I am using TabLayoutBar for showing tabs. But it somehow eclipsed my ToolBar. The issues is happening on API v21 and not on API v15. Following is my layout:
Rajat Saxena
  • 3,834
  • 5
  • 45
  • 63
0
votes
1 answer

TabLayout disappears when screen goes to sleep

I'm using TabLayout from Android Design Support Library in my app. I setup tabs using viewPager in activity's onCreate and they work well. viewPager.setAdapter( new TabsAdapter(getSupportFragmentManager(), new TabInfo("Test1",…
0
votes
1 answer

Running on API 20 and higher SupportLibrary not supported and inflator error occur

My Application works fine on lower API's because they use the AppCompatTheme, but when a higher API runs the application exception like the ones below happen. java.lang.RuntimeException: Unable to start activity…
0
votes
1 answer

Design Library Android

I'm using Android Design Library components, and I would like to have an image behind my ToolBar and TabLayout. The image must be cropped and not fit to the size. I'm actually setting my image as android:background="@drawable/AppBarBg" in…
0
votes
1 answer

CollapsingToolbarLayout children aren't visible on Android 4.x

Good evening folks, Here's the deal. I put some widgets inside my CollapsingToolbarLayout (2 TextViews, 2 ImageViews, 1 ImageButton and 1 NetworkImageView that appears in the background) alongside a Toolbar. The result is great on Lollipop. Here's…
geecko
  • 660
  • 1
  • 9
  • 22
0
votes
1 answer

CoordinatorLayout, AppBarLayout Reverse Scroll

I building a chat application and I have a slight problem. My RecyclerView is upside down (newest messages at the bottom) and I need that tool bar would hide, when I scroll up, not down (practically reversed hiding behaviour or something). Is there…
Alpha
  • 1,754
  • 3
  • 21
  • 39
0
votes
2 answers

CollapsingToolbar back button does not show

I been using the design library and I came across a problem. final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); I initialized the Toolbar to have to…
safaiyeh
  • 1,655
  • 3
  • 16
  • 35
0
votes
1 answer

Android expanding design support FAB

How can I show more FABs when clicking on the standard FAB like in many Google apps? I searched on the internet and found no guide on how to achieve this, but I'm sure there is a way. I am using the design support FAB if that matters.
0
votes
1 answer

Show DialogFragment over TabLayout

I'm trying to show a DialogFragment full-screen such that the ActionBar is still visible but the tabs in a TabLayout are hidden. The image on the left is what I've managed to achieve; the image on the right is what I'm aiming for: There are two…
Jon
  • 9,815
  • 9
  • 46
  • 67
0
votes
0 answers

Android Design Support Library crashes app

Some days ago I switched from eclipse to Android Studio. Now I have been trying to implement some of the features introduced with the Android Design Support Library. But something isn't working. After a few hours I found out that as soon as I add…
0
votes
1 answer

Material Design - Floating EditText Implementation

I'm trying to implement the new Material Design floating EditText but I'm getting errors. So, I'm using the latest 'Android Support Design Library' launch by Google on 29th of May 2015. As per instructions I'm compiling the library via build.gradle…
0
votes
1 answer

Fix messed up system bar tint when using android design library appbar/toolbar

Q: How do I make the system bar be the correct color? I've tried setting this up following the cheesesquare sample app. When doing that, they use a coordinator layout and an appbar layout which contains a toolbar layout -- it looks like…
Doronz
  • 704
  • 8
  • 21