Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
7k views

How to anchor a Floating Action Button to the App ToolBar like in the guide images?

I want to get a Floating Action Button anchored to the upper part of my activity, on the action bar. In the guides is not explained how to get that effect of getting the floating action button ...
NullPointerException's user avatar
0 votes
1 answer
94 views

Custom ActionBar setCustomView() has extra margins

I am not really good when it comes to designing. I already have an ActionBar I just want to customize it. As you can see in the screenshot it is not properly aligned. The yellow one is the default ...
GGWP's user avatar
  • 1,121
0 votes
1 answer
1k views

Android AppBar not showing shadow

The AppBar and BottomNavigationView don't display any shadow on the listview between them even with setSupportActionBar().setElevation(3.0f); I have the following layout CordinatorLayout --...
ir2pid's user avatar
  • 6,116
0 votes
1 answer
59 views

Is Android Navigation drawer supposed to be over ActionBar?

As the title suggests, my app uses a side menu using navigation drawer. I got inspired by this official google doc and its nav drawer can be toggled either by swipe from left to right or by clicking ...
michnovka's user avatar
  • 3,369
1 vote
2 answers
1k views

ActionBar color not changing

I'm trying to change the color of the ActionBar in my app. The color was changed in the preview tap when opening the layout file, but not when I run it on my device (5.0.1). I need the status bar to ...
Motassem Jalal's user avatar
2 votes
3 answers
7k views

Use default title text view style for customize title text in android

I am implementing material design in my app with toolbar item. In my toolbar I have add "imageview" and "textview" and replace the title text for my "textView" Here my code <?xml version="1.0" ...
Manikandan's user avatar
0 votes
2 answers
1k views

Material Design Action Bar compatible from GingerBread onwards (Android)

I want a clean action bar which support from api 10 - api 21 to implement in my app. I have gone through different tutorials, developer documents from google and some examples provided at the ...
Jashan PJ's user avatar
  • 4,368
2 votes
0 answers
86 views

How position a View to the right inside a Toolbart without hiding the title?

I'm using the Toolbar widget of appcompat v21. Without hiding the toolbar title I want to add some views (ie: textview, button) to the content of the toolbar. By default they are positioned to the ...
Antonio Jose's user avatar
  • 2,778
10 votes
1 answer
6k views

Align an icon with the Toolbar icon - Android Material Design

In the new Material Design (using AppCompat), I am trying to align some action icons with the drawer icon of the new toolbar. Something like: I think I am looking in all the metrics correctly... ...
Ferran Negre's user avatar
  • 3,801