android-toolbar Questions

5

My Toolbar Google Play Toolbar How can I remove unnecessary padding? My toolbar is inside the fragment My code in fragment: public void setUpToolbar(Toolbar toolbar, String title, @Drawable...
Ezzo asked 24/7, 2016 at 16:16

2

Solved

I have an activity with navigation drawer which replace the main_fragment_container on the activity. When one of the fragments is displayed I want to change the layout of the toolbar and add a spin...
Hurless asked 18/11, 2014 at 5:48

5

Solved

I know this question has been asked and but I am unable to solve my problem after looking at those answer. I have an Activity with a Fragment. In fragment, I have added the toolbar and I want to ha...
Boccie asked 6/5, 2015 at 10:53

5

Solved

I currently have a navigation drawer with a toolbar that has a title, i wish to centre this title within the toolbar but the toolbar does not seem to take into consideration the drawer icon as you ...
Feces asked 12/11, 2015 at 4:30

4

Solved

Background I wish to show an ActionBar on PreferenceActivity, as it's not available for pre-Honeycomb devices (even in the support library). Because such a class isn't available on the support li...
Depew asked 21/10, 2014 at 20:18

9

Solved

I'm having a problem trying to center the back button on the support toolbar. I'm using it inside an ActionBarActivity. <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android....

18

Solved

I have been using the latest Toolbar from AppCompatv7 lib.I have placed a textview in the ToolBar ViewGroup And I want to set a title into this Textview from the fragment in my activity.In case of ...
Clumsy asked 24/11, 2014 at 7:43

4

I'm following single activity approach. I have navigation toolbar, whenever i go to other screens (fragments) instead of hamburger icon i will have back arrow. What i want to achieve is, pop my cu...
Improbable asked 23/10, 2019 at 6:30

5

Solved

I am having some trouble setting the sub-title in my Toolbar from my fragment. I keep getting a Null Pointer Exception at the setSubTitle. @Override public void onActivityCreated(Bundle savedInst...

3

I have using navigation page in my application. I have to set font icon to toolbar item. But it shows cross symbol because i have not set the font family. So anyone suggest me to set font icon in t...
Honky asked 7/8, 2019 at 12:59

10

I am trying to use the android.view.ActionMode with the new android.support.v7.widget.Toolbar, in addition to the traditional android.app.ActionBar. I am able to display it with: toolbar.startActi...

2

Solved

I created a layout with parallax effect which I use in a fragment. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/...

3

what is exact difference between appbar, Toolbar, Actionbar? and when to use them specifically? I try to find about them but it make me confuse so can any buddy explain to me what is exact differen...

5

Solved

My problem is the extra space between the nav-drawer icon and toolbar title. The sample images are below: The xml view of the toolbar is <android.support.v7.widget.Toolbar android:id="@+i...

5

I am using MaterialComponents.DayNight theme in my app. In the day mode, toolbar text color is black. But when I switch to night mode toolbar text color is remain black, so it's not visible anymore...

18

Solved

The documentation of Toolbar says If an app uses a logo image it should strongly consider omitting a title and subtitle. What is the proper way to remove the title?
Homophonous asked 30/10, 2014 at 8:31

5

I'm implementing a dark theme in my playground Android app, and am struggling to get the action bar text color to be white. Below is my style and colors. The background of the action bar follows c...

5

I'm trying to make a layout with a CollapsingToolbarLayout which has scroll|exitUntilCollapsed flag, and a TabLayout which has scroll|enterAlways scrollFlag property. Basically I want my toolbar to...

6

Solved

I'm new to android apps and I'm hoping someone with keen eyes can spot what I'm doing wrong. I've tried to follow the steps here, to create a toolbar for my application. However, it's not showing t...
Temikatemp asked 10/1, 2016 at 8:8

16

Solved

I'm looking for a way to display the hamburger icon whitout using the Drawer/DrawerToggle and use the default icon included in Android By setting getSupportActionBar().setDisplayHomeAsUpEnabled(t...

5

Solved

I get this weird margin in my app toolbar between icon and navigation icon in the toolbar (as in the image). I've got no idea about where it comes from and how to remove it. After searching the int...
Ornamented asked 11/7, 2016 at 7:13

3

Solved

Hi. In the picture above you can see a back arrow and a (part of) title. I changed the title color using the attached .xml code. But I want to color the back arrow to white too. I read some answ...

9

Solved

I am new to Android Studio and I don't get why my toolbar isn't shown as described by https://developer.android.com/training/appbar/setting-up I know there are already some other questions like min...
Callaghan asked 21/8, 2018 at 23:22

4

How can I change the size of a menu item in the android toolbar? Currently the menus have a very small size and I want to increase the size. If anyone knows please help me to find a solution. app_...
Subversive asked 28/7, 2015 at 14:30

3

Solved

I have a list that looks like google play in a recyclerview with cardview, and works perfect. I need to add a popup menu (with overflow icon), like this: which is the best way to do this ? I r...

© 2022 - 2024 — McMap. All rights reserved.