android-toolbar Questions

3

EDIT: See Using the Master/Detail template in ViewPager Fragments (download link) for full code I have a toolbar and a recyclerView. When the layout is first inflated the last item of the recycler...

7

Solved

I want to add search bar with edit text in toolbar like below image My toolbar.xml:- <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://sch...
Discant asked 21/10, 2015 at 4:19

5

Solved

Background In the past, Google always shown the toolbar to have the title aligned to the left: https://material.io/develop/android/components/app-bar-layout/ However, recently, it seems that on ...
Overnice asked 25/2, 2019 at 15:14

3

I'm trying to show custom layout as an item in options menu. And this is what I have done so far <item android:id="@+id/action_profile" android:orderInCategory="100" android:title="Profil...
Frivolous asked 21/2, 2016 at 11:14

0

Hey guys I am using custom toolbar in my project. When I try to scroll view it goes behind the toolbar and see all item. I made a short video please have a look. toolbar.xml <?xml version="...

0

Hey guys I am trying to set title in my custom toolbar. It's not working until I explicit through xml. I don't want to put a Textview in xml in toolbar. I tried this post and trying to set by code,...

1

Solved

Hey I am working on search bar in android. I get the lead from this post. Now I want to try something more. Above post explanation in short :- I have searchview in the middle of screen. When we foc...

1

Solved

I want to build searchview in center of screen and when I focus I want to move into toolbar. Remove Searchview only from toolbar when I remove focus from SearchView. I don't won't in different acti...

3

I tried to find an answer for myself but couldn't find it. I need make badge on the MenuItem icon in the Toolbar, like this: How can I make this?
Goerke asked 26/1, 2016 at 8:42

3

Solved

I have an activity which has a Toolbar which displays a back button. <android.support.v7.widget.Toolbar android:id="@+id/toolbar_about" android:layout_width="match_parent" ...
Vickers asked 1/11, 2017 at 20:23

6

Solved

My question is very simple, but i can't figure it out: When i try to display a subtitle, the toolbar has not enough space do display it and it is cut. Toolbar: <android.support.v7.widget.Tool...
Plastometer asked 17/2, 2016 at 8:41

3

Solved

I'm using the Toolbar (instead of ActionBar) via AppCompat. I'd like to replace the Toolbar's title (the app/actity name) with an icon, but I don't see how. My icon is just text using a non-standa...
Morentz asked 6/11, 2014 at 16:13

3

Solved

I'm pretty new in android development. I want to hide navigation drawer when user is not logged in. So basically, it will shown login fragment (better in full screen like Facebook android). And if ...

8

Solved

I am trying to show a drop down menu for my toolbar which includes BOTH text and icons: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/a...
Serafina asked 15/6, 2015 at 12:56

6

I want to go from fragment to activity using back button using toolbar back icon. The fragment is my navigation drawer item & activity is my MainActivity. How do I do it?

12

Solved

I am having a hard time with v7 Toolbar. What was once a simple task for ActionBar, now seems overly complex. No matter what style I set, I cannot change either navigation icon (which opens a Drawe...

1

First I set AppBarLayout theme via xml: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andro...

17

Solved

I'm creating a chat based UI screen where I have toolbar and recyclerview for chat messages, and reply msg layout. Whenever edittext get focus It moves up the toolbar. Instead I would like to resi...

3

Solved

In my application, I have implemented some languages including Arabic language which starts from Right to Left. I want to align all icons in the Toolbar be RIGHT_TO_LEFT. I tried layout_gravity="r...
Gainful asked 28/3, 2015 at 12:23

21

Solved

I'm updating my app with the new Toolbar from the support library v21. My problem is that the toolbar does not cast any shadow if I don't set the "elevation" attribute. Is that the normal behavior ...
Tyishatyke asked 26/10, 2014 at 16:28

11

Solved

I am using the Toolbar search widget in my project. Everything works fine but expect the thing which I am completely stuck up with removing the underline below the search field in my toolbar. I hav...
Heddy asked 15/6, 2015 at 10:31

12

I have a toolbar as well as a navigation drawer. When I start my app, the toolbar and navigation drawer are created. When I click items in the navigation drawer, it starts new fragments and keeps t...
Birmingham asked 9/6, 2015 at 1:34

6

I am using single activity and many fragments approach in my app Now since in my some fragments I have custom view in toolbar I decided to have separate toolbar for each fragment. How to impleme...

11

All of my fragments are controlled through ActionBarActivity (mainActivity), inside mainActivity a DrawerLayout is implemented and all the child fragments are pushed through drawerLayout's list ite...

2

Solved

I have an app with a navigation drawer and 4 navigation items (Fragments). In one of the Fragments, I have a tab layout set up with a view pager (3 more Fragments). From one of these inner fragmen...
Spilt asked 27/3, 2016 at 16:10

© 2022 - 2024 — McMap. All rights reserved.