android-toolbar Questions

3

With the new Toolbar API in Android Lollipop and AppCompat-v7, they are removing a lot of the automatic features to make Toolbar/ActionBar more robust. One of those things is the progress bar. Sinc...
Doroteya asked 21/10, 2014 at 15:27

4

Solved

I am using a ToolBar at the top at present and want to replace the default back button with a home button. But when I add item, it always adds to the right. I don't see any layout_gravity options t...
Verbal asked 15/12, 2015 at 15:10

18

Solved

It is self Q&A post I have transparent ActionBar which overlays layout. After migration to the latest support library I have been forced to get rid off the ActionBar in favor of the Toolbar. Th...
Imparisyllabic asked 22/10, 2014 at 10:41

9

I have a ViewPager below an AppBarLayout (with a Toolbar and a TabLayout). I cannot understand why the height of the loaded fragments is more than the available space, even if there are no elements...

7

Solved

I am trying to set my toolbar title like so: public class StatisticsPage extends Fragment { public StatisticsPage(){} private FragmentTabHost mTabHost; @Override public View onCreateView(Lay...
Belter asked 10/3, 2015 at 0:54

5

Solved

How to remove the deep line between the toolbar and tablayout, I searched on the google someone said , add some elevation to the toolbar and tablayout ,I did but it not worked , after removing the ...
Vassell asked 29/8, 2016 at 6:6

6

Using: compile 'com.android.support:design:23.0.0' compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.android.support:cardview-v7:23.0.0' compile 'com.android.support:recyclerview-v7:2...

6

Solved

I am trying to create a CollapsingToolbarLayout and below it a listview, when the listview is scrolled the Toolbar should collapse, but its not working when scrolled the Toolbar is not collapsing. ...

1

Solved

In my app, the Toolbar is not showing shadow at its bottom, my target API is from Android 6 M to Android 9 P, I am testing my app on device having Android 9 Pie. There is a same question here but ...
Jimmie asked 29/6, 2019 at 14:25

2

Solved

The procedure in the question linked below does not appear to work for me either with the standard or the support ActionMode. ACTION_UP never appears as a parameter although ACTION_DOWN does but re...

6

I am using android design support library. ListView first row overlaps with Toolbar widget. In my MainActivity i added coordination layout and in first TAB fragment added ListView layout. But f...

2

I am using the new toolbar and setting it as the supportActionBar. My problem is that it is covering my content. Here is the code I am using to setup the toolbar. public void setupNavBar() { mT...
Wheaton asked 28/2, 2015 at 18:23

2

Hi I am developing small android application in which I am trying to display tool-bar with AppBarLayout. I want to display some view on top of my tool-bar. I tried this in following way : <?xm...
Myogenic asked 13/2, 2016 at 11:20

7

Solved

I'm getting a Resources$notfoundexception on older (pre-L) devices. I'm including the full stacktrace below. My version of the support library is the latest (24.1.0), and I've included in my grad...

5

I updated my android studio few days ago and started working with the CoordinatorLayout and CollapsingToolbarLayout just trying stuff. It seems that the Toolbar scrim colour override the status ba...

1

How is it possible to create a modal BottomSheetDialog(Fragment) which switches to fullscreen with a ToolBar as shown in the Material Design Spec? I could add a ToolBar manually by adding a Bottom...

1

Solved

SearchView looks fine on Lollipop devices (Android 21): But on Android 23-28 it doesn't hide all icons on the right side: <item android:id="@+id/action_search" android:title="@string/...

4

Solved

I want add PopupMenu to my MenuItem. Menu.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android...
Fiasco asked 6/9, 2016 at 10:39

3

Solved

I want to change height and width of Navigation Icon(in black circle in screen shot) in Android Toolbar programmatically. Is there any way to do so. This is not toolbar logo. I can't update toolbar...
Nichollenicholls asked 5/7, 2016 at 10:51

8

It's very easy to implement Toolbar with hamburger to back arrow animation. In my opinion this animation is pointless because as per material design spec navigation drawer covers the Toolbar when o...
Pup asked 25/11, 2014 at 1:17

4

Solved

I forked a GitHub project from https://github.com/nglauber/playground/tree/master/android/DemoSearch I would like to set the color of the search icon to be pure white. At the moment, the search ic...
Robbynrobe asked 7/12, 2016 at 6:46

4

I use CoordinatorLayout and CollapsingToolbarLayout, I don't know what cause this error, this is my xml file main.xml for activity <?xml version="1.0" encoding="utf-8"?> Licensed und...
Freemon asked 23/2, 2016 at 7:52

0

I found that in setActionBar method from Activity: public void setActionBar(@Nullable Toolbar toolbar) { final ActionBar ab = getActionBar(); if (ab instanceof WindowDecorActionBar) { throw new...
Forecourse asked 21/3, 2019 at 6:38

0

My task is receiving all motion events in android application with good embedding (library variant). I create my Window.Callback wrapper. public class WindowCallback implements Window.Callback { ...

5

Solved

Update: Actual issue is with CoordinatorLayout not with RecycleView. Instead of using RecycleView I tried TextView inside ScrollView and it is the same issue. Something is not aligned if you ha...

© 2022 - 2024 — McMap. All rights reserved.