android-toolbar Questions

5

Solved

Please, explain to me... I have Navigation Drawer in my Activity and it syncs with Toolbar (like ActionBar). Activity has few fragments and in different fragments I need to use different AppBar mod...

2

This is my toolbar.xml <?xml version="1.0" encoding="utf-8"?> <androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.an...
Serious asked 28/12, 2018 at 21:45

2

I'm integrating Dark Mode , i have Collapsing toolbar and toolbar which are wrapped in an appbarlayout , the issue is when i try to set the toolbar title color into white when dark mode is set , it...

4

Solved

I have a toolbar with a transparent/translucent background that overlays the content. So, behind the toolbar, views can appear that are clickable. The problem is that they can not be clicked throug...

1

I followed guide from android.developers and implemented a navigation component into my app. I stumbled across a problem when I need some screens to be with or without a toolbar/bottom navbar. Andr...

4

I want to create a layout like the below image: A CoordinatorLayout which contain : CollapsingToolbarLayout( contain ImageView & Toolbar) RecyclerView TabLayout ViewPager( that each fragme...

5

I´m trying to change the toolbar Background color programmatically by doing this: getSupportActionBar().setBackgroundDrawable(newColorDrawable(getResources().getColor(R.color.test_color_blue))); ...
Malamut asked 6/4, 2015 at 1:7

7

I asked a similar question here... I got some tutorials in the answers. But this question is diffrenet. because none of that method do not works in my project. I want center all icons in toolbar...
Bossism asked 1/7, 2015 at 6:30

3

Solved

I've done a few researches on this topic and I couldn't find a complete solution so, step by step and with some trial and error, I finally find out how can we achieve these results: having a transp...

6

Solved

I try to implement a search bar like in google maps android app: When the recycler view is in its initial state, the toolbar has no elevation. Only when the users starts scrolling the elevation ...

2

Solved

I would like to change the default navigate up icon (back button icon) to my custom icon. I not using a drawer, just a simple toolbar and material components Is this possible?

2

I am developing an app in which there are multiple tabs with icon without any title. The problem is that the icons are not looking as bright it should. I used white color(FFFFFF) in creating icon a...
Electrophorus asked 5/3, 2017 at 18:54

6

Solved

I am trying to implement the feature that, when I am long clicking a list item, the action mode shall start and it shall be possible to delete one or more items. I am starting in DocumentsActivity ...
Songsongbird asked 14/1, 2019 at 14:43

4

Solved

Unable to get the text on my toolbar to change. I have done a tone of searching but I am seeing no results. I have tried so many combinations of things but maybe something will pop out. Here is th...
Vladamir asked 26/4, 2017 at 20:14

13

Solved

I am having the following problem: I know how to set up a toolbar to show a back button icon instead of a burger button icon. From this: to this: using: getSupportActionBar().setDisplayHome...

17

Solved

I have a toolbar that I use, and set title with: ((ActionBarActivity)getActivity()).getSupportActionBar().setTitle("Home"); Is there a way to change the color from black to white? I tried makin...
Measured asked 10/3, 2015 at 1:11

1

hi there I want align a set of icons in toolbar like below picture. I googled and after some change I have: mainActivity.xml ... <include android:id="@+id/tool_bar_bottom" layout="@layou...
Hoicks asked 30/6, 2015 at 7:22

6

Solved

I am trying to achieve this(A timer in toolbar with red background): I am trying to add customView in toolbar. It always end's up being on extreme left just beside the back arrow. Like the text ...
Tolmann asked 25/11, 2015 at 6:13

12

Solved

I've noticed that using AppCompat themes, default toolbar icons get tinted by the attribute colorControlNormal in my style. <style name="MyTheme" parent="Theme.AppCompat"> <item name="co...

1

Solved

I'm trying to implement the new Jetpack Navigation framework from google, but I'm running into an issue. I want to use my first fragment as a login page and don't want to have a toolbar in it. How ...

1

I understand that a toolbar is needed so that the CollapsingToolbarLayout does not completely close when you scroll: eg: https://i.sstatic.net/nIxrx.jpg I'm trying to figure out if I can get away...

7

Solved

How can I set back arrow in Android toolbar and also apply click listener?

2

In my Android application I have Toolbar and need to perform action for tool bar back button click in Espresso. I have tried the following but it does not work onView(withId(R.id.pageToolbar)).per...
Kermis asked 22/11, 2016 at 10:57

5

This is my code that I try to create toolbar with rounded corners shown in picture. <android.support.design.widget.AppBarLayout android:id="@+id/appBar" android:layout_width="match_parent" a...
Billingsgate asked 26/7, 2018 at 10:10

1

I have a Search icon in my toolbar that searches a RecyclerView list. Pic 1: When the icon is clicked, the toolbar shows the SearchView's setQueryHint " Search here...". Pic 2: When a cha...

© 2022 - 2024 — McMap. All rights reserved.