android-toolbar Questions

2

Solved

I implement a toolbar and replace it with my actionbar according to my requirments. Now I want to add an icon in toolbar inside a fragment. I tried onCreateOptionMenu() and pass my menu xml to it. ...
Prissy asked 15/6, 2015 at 14:25

1

Solved

I displayed a fragment A that implements a ViewPager with several fragments (nested fragments). In my nested fragments, I inflate a menu with the following method. @Override public void onCreateO...
Galleywest asked 11/1, 2017 at 6:7

1

Solved

I have a problem with searchview implementation in android toolbar. The empty space padding is too big. I don't want to hide other actions, but these actions are overlapped by SearchView. Search...
Robbyrobbyn asked 20/12, 2016 at 17:26

3

Ok, so hiding the action bar is something doable. But, how can we hide the (newly introduced) toolbar in our activity? I am making an app with an activity having theme as theme.apcompat.light.noac...
Eneidaenema asked 20/1, 2015 at 3:51

3

Solved

With the new Design Library, we're supposed to set the toolbar title on the CollapsingToolbarLayout, not the Toolbar itself(at least when using the collapsing toolbar). But setTitle() only updates ...

3

When adding some alpha to my Toolbar background color, I notice there is a background applied to the title's TextView: Here is my layout: <FrameLayout xmlns:android="http://schemas.android.c...
Propitiate asked 22/9, 2016 at 12:43

2

Solved

Here is a picture of the large padding gap after the menu icon: This occurred after not working on my project for a month (summer school). I just came back to it and noticed this larger than norm...
Alby asked 14/7, 2016 at 11:51

13

Solved

I was having trouble using the new Material Design toolbar in the support library on a Preference screen. I have a settings.xml file as below: <PreferenceScreen xmlns:android="http://schemas.a...

2

Solved

I'm trying to add a simple SearchView to the toolbar in my app. Everything it's working fine expect for the layout. There is this "space" between the NavigationDrawer icon and the SearchView. If I...
Anathema asked 29/5, 2016 at 20:25

2

Solved

I have menu items in my app, and I would like to change color of item background, when it is clicked (please see screenshot - item 1 is clicked) I just want one color here - either light blue, o...

1

I'm using CoordinatorLayout in my project . It works fine but there is a problem I need to fix .I'm using white actionbar icons and When the CoordinatorLayout is expanded and the background color i...
Brassard asked 27/9, 2015 at 15:31

2

I tried searching a lot but was not able to find any simple solution for this. Basically I want to show a tool-tip balloon below an ActionBar item.
Frequently asked 31/8, 2015 at 11:17

5

Solved

I'm using a template from Android Studio that used AppCompat Toolbar. Unfortunately, the toolbar casts shadow on the status bar so it doesn't look right.I also implement a NavigationDrawer so I can...
Maurits asked 20/1, 2016 at 4:43

0

I am setting Toolbar subtitle like : Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getExtra(); getSupportActionBar().setSubtitle("subtitle"); It is workin...
Thermopylae asked 22/9, 2016 at 13:29

3

I'd like the toolbar(actionbar) to hide completely when scrolling down. On launching the activity or scrolling back up the toolbar should be visible and the statusbar light grey. start as [ stat...

5

Solved

I'm swapping out the action bar for the tool bar, and I nearly have every piece of the puzzle in place. My issue is specifically if I navigate 'up' and restore the navigation drawer, the drawer tog...
Incarcerate asked 1/2, 2015 at 14:15

3

Solved

I am currently building an app using the new material design guidelines. I am using a Toolbar rather than an action bar. I want the text, overflow icon, and the arrow/hamburger icon (thing that fl...
Moncrief asked 26/11, 2014 at 14:37

4

I'm using Android Studio 2.1.2. I started a new project with minSdkVersion as 19. My activity extends AppCompatActivity. The project starts with an empty activity using a fragment. When previewing...
Corked asked 10/8, 2016 at 9:36

4

Solved

I have made a ToolBar, but when I add menu items in menu.xml it always shows as an overflow. How do I add it separately? Moreover the Title is shown in the middle (vertically), how do I show it a...
Ripon asked 6/11, 2014 at 11:46

5

I have a new KitKat App and I'm trying to reproduce in my activity the layout that you can find in the new Play Store App Activity or Google+ Profile Activity. What I am trying to achieve is to hav...

2

Solved

I've created a Toolbar for Lollipop, but I can't seem to figure out how to add an overflow button to the toolbar. I'm not going to be using the v7 appcompat toolbar, as I want to explicitly use the...
Convolution asked 11/5, 2015 at 15:20

10

I'm trying to use the newest design library to make my toolbar hide/show on scroll. My issue is the scrolling content I have is in the fragment, I'm just injecting it into the FrameLayout container...

3

I am trying to learn CoordinatorLayout and its features. I have used it in conjunction with AppBarLayout. My xml is as follows: <android.support.design.widget.CoordinatorLayout android:id="@+i...

2

I am trying to push the back icon image on the left side of the app bar in the android but the icon displaying in the middle of app(tool) bar. How to align icon on the right side of the app bar in ...
Drue asked 8/8, 2016 at 9:41

3

Solved

I'm using Appcompat v22 to use tinted style for AutoCompleteTextView. However, as soon as I changed my build.gradle from this: compile 'com.android.support:support-v4:21.0.3' compile 'com.androi...
Keyway asked 16/3, 2015 at 11:12

© 2022 - 2024 — McMap. All rights reserved.