android-toolbar Questions

9

Solved

I tried different combinations in xml file: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.an...
Totemism asked 6/10, 2015 at 11:48

2

Solved

I have an activity with a CoordinatorLayout, AppBarLayout, CollapsingToolbarLayout and Toolbar. So, basically, a view that collapses when scrolling a RecyclerView. What I need to do is to show a c...

3

Solved

I want my toolbar to take the space of status bar and the image used for it be the background of the status bar and I successfully do that with this code inside my activity //for using status bar s...

8

Solved

How can I create a button inside Android's Toolbar that looks like this iOS example?
Coincidentally asked 5/7, 2015 at 14:53

7

Is it possible to set Toolbar logo in xml? I have tried this so far: 1. <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schema...
Lunde asked 15/6, 2015 at 17:26

2

I've tried using the following code but no checkbox appear, only text : <item android:id="@+id/menuShowDue" android:actionViewClass="android.widget.CheckBox" android:title="@string/string_du...
Inductee asked 26/9, 2015 at 9:57

10

Solved

I have ActionBarActivity with NavigationDrawer and use support_v7 Toolbar as ActionBar. In one of my fragments toolbar has custom view. In other fragments Toolbar should show title. How get Toolba...

3

Solved

I have white toolbar with menu item showed as action that is a black vector asset from material icons. There is no ripple effect on menu item click because ripple effect is also white. If toolbar b...
Sanbenito asked 26/3, 2017 at 17:1

5

Solved

I want to set an icon at the the end of my Toolbar,which start another activity. My Toolbar portion <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/androi...
Mark asked 13/1, 2015 at 14:3

6

Solved

I am trying to develop an activity with a toolbar (the example is more or less taken from a tutorial), but the Toolbar always overlaps part of the other content. Here is a screenshot: The blue ...
Perry asked 29/10, 2015 at 18:42

3

Solved

I want to stick image as background of CollapsingToolbarLayout when collapsed. I am able to show image in expanded form on CollapsingToolbarLayout but when the collapsed image disappears, I want th...

4

I'm adding the Toolbar inside my app but seems I have a issue. In the app I should have a button that is on the right of the screen, and the title in center. But when I go deeper in the app I shoul...
Basaltware asked 11/2, 2016 at 11:40

2

Solved

When i switched to AndroidX i found that the Toolbar has moved to androidx.appcompat.widget.Toolbar also there is a new MaterialToolbar introduced as com.google.android.material.appbar.MaterialTool...

3

Solved

The main problem I've currently got with the CollapsingToolbarLayout is, that whatever I'm trying, the minHeight attribute of my Toolbar does not have any effect. My desired result would be this: (...

0

I'm developing an app in Kotlin using some of the latest Android Jetepack components. I've recently had a bit of a hitch with the following case: This issue seems to occur when using BottomNavigat...

3

Solved

Currently I am using material components and material theme: <style name="BaseTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar"> ... ... <item name="materialButtonStyle"&...

2

in app/build.gradle: implementation 'com.android.support:appcompat-v7:28.0.0' in my activity I use import android.support.v7.widget.Toolbar Nice. It's work finde. But when I migrate to andr...

5

Solved

I am using ToolBar in my activity. I want to right align the profile picture of user. I have used android:layout_alignParentRight="true" but it is not working. 1. XML <android.support.v4.widge...
Workwoman asked 23/12, 2015 at 12:48

3

Solved

I added a toolbar to my layout and now I get this error when running: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapp/mainactivity.MainActivity}: android.view....
Iodoform asked 22/3, 2019 at 11:35

8

Solved

I updated my android app to the new material design, but I also wanted to add some shadow or elevation to the Toolbar. There seem to be some (hacky) ways of doing it via images/9-patches, but I won...
Pleasurable asked 29/6, 2015 at 12:18

2

This is the XML for the Toolbar layout... <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:id...
Washin asked 14/4, 2015 at 21:18

2

I can set up navigation icon with tint in toolbar from code: Toolbar toolbar = findViewById(R.id.biometry_agreement_toolbar); Drawable drawable = AppCompatResources.getDrawable(requireCont...
Zacheryzack asked 26/9, 2019 at 5:36

2

Solved

I have a navigationView in my app and after add two lines in app style : <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> The Navigation ...

3

Solved

I want to change the Fonts of my title in the action bar. I have set the title programatically, in xml it was not showing any effect. Now I want to change the font of that title. I saw some post re...

2

Solved

My app has an item selection just like WhatsApp and on long click I can select multiple items to delete them. Everything is working fine until I need a button to clear selection. I want to use the ...

© 2022 - 2024 — McMap. All rights reserved.