toolbar Questions

2

Say we have the following view of two text fields: struct ContentView: View { @State private var first = "" @State private var second = "" var body: some View { VStack {...
Cerated asked 7/10, 2021 at 9:30

2

Due to the new NavigationStack having quite a few problems, including a pretty significant memory leak at this time, I am still using the old NavigationView with a build target of iOS 15+. However,...
Doriedorin asked 22/11, 2022 at 15:9

1

See the code below. Using that code I can see the toolbar item without any problem. But if i remove or replace navigationView with for example a VSack the toolbar item disappears. Is it possible to...
Sorrells asked 14/1, 2023 at 20:2

1

Solved

I am making an app where the first view the users see is a home screen with buttons that takes them to a second view. One of the second views present the user with a list of items. When the user cl...
Allgood asked 14/1, 2023 at 17:15

10

Solved

Been trying to center a logo inside my toolbar. When i navigate to the next activity, the "up affordance" icon is present, and it will push my logo slightly to the right. How can I keep my logo at ...
Falco asked 10/2, 2015 at 23:21

0

Is there a way to increase the height of the SwiftUI toolbar? My toolbar items are quite squished together and if I add any padding then they are cut off from the view. What I have done is created ...
Spank asked 11/10, 2022 at 17:1

7

I've been searching how to customize the toolbar, for example how to add background color, but I don't understand how it works. I've been trying to add a custom style for my toolbar but any result...
Cannonade asked 26/8, 2015 at 21:49

9

Solved

I am trying to use the Toolbar instead of the ActionBar, but I can't figure out how to add the up button to return to the previous activity. I couldn't find any method that could relate to it. Ho...
Bridie asked 17/12, 2014 at 20:34

3

I have a bottom menu as a toolbar and I need to add another one at the top as an actionbar. here is the code ofthe activity public class ListViewPharms extends AppCompatActivity { public Toolbar ...
Callida asked 27/9, 2015 at 14:30

4

I installed django-ckeditor==4.4.8 on django1.6 But I get a minimum of buttons in the toolbar, I tried to change the toolbar to get more options, specially to be able to add pictures this is what...
Sporulate asked 25/6, 2015 at 11:54

4

Solved

As the question states I am trying to add a toolbar item/button to shell for adding a database item. Normally in Xamarin forms I was able to add a toolbar item with <ContentPage.ToolbarItems>...
Etruria asked 15/1, 2022 at 5:35

10

I'm trying to use toolbar for my project. Here is the code I am using: <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height=...
Concatenate asked 26/6, 2015 at 2:37

14

Solved

I am using a android.support.v7.widget.Toolbar and learned from this post how to change the color of the hamburger icon to white, but the up/back arrow remains a dark color when I call setDisplayH...
Duaneduarchy asked 20/2, 2015 at 2:49

2

a strange thing happened when I try to implement the toolbar with the Coordinatorlayout. everything seems ok when I scroll down and scroll up the toolbar show correctly however after I scrol...
Ducharme asked 15/6, 2015 at 3:30

2

Solved

I would like to show a ProgressBar during the update process at the bottom of the activity's toolbar. However, I still haven't found the right solution for it. How should I start? I've already tri...
Baten asked 1/8, 2018 at 15:48

4

Solved

I have a dialog fragment in which I have toolbar in layout. I want to make back button(Navigation Icon) working in toolbar and exit the fragment when clicked. But I am unable to catch the click ev...
Uncle asked 9/7, 2015 at 8:6

3

In my app I'm using the Toolbar as explained in the official documentation (v7 appcompat support library, Theme.Appcompat.Light.NoActionBar, android.support.v7.widget.Toolbar, setSupportActionBar(m...
Eastward asked 4/12, 2015 at 19:9

1

When I first launch my app the toolbar icons are shown and work fine, but they are initially greyed out until mousing over the button. First run of the app: and then mouse over: Here is the code:...
Shala asked 9/7, 2021 at 7:32

9

Solved

When I use drawables from the AppCompat library for my Toolbar menu items the tinting works as expected. Like this: <item android:id="@+id/action_clear" android:icon="@drawable/abc_ic_clear_m...
Barnhill asked 6/11, 2014 at 12:56

20

I am using ToolBar in my project first time, so i do not know how to customized the toolbar in android. I need to centered title in to the tool bar and how to do that please tell me. Thank in adva...
Astarte asked 4/4, 2015 at 6:49

5

Solved

I'm trying to access the default ToolBar from within and Activity's onCreateOptionsMenu function to change the Overflow menu icon (three dots icon). I want to use the setOverflowIcon method provide...
Defilade asked 10/4, 2018 at 19:23

3

Solved

I would like to hide an ImageView (logo) when CollapsingToolbarLayout is expanded and only show the ImageView when the CollapsingToolbarLayout is collapsed. (I know how to do the reverse of this qu...
Eocene asked 30/11, 2017 at 12:23

10

I have a problem that I don't know how to solve. How do you hide a toolbar in a specific fragment, I have already been searching around on the internet and what I found was communicating activity a...
Verecund asked 18/3, 2015 at 16:58

3

Solved

I am trying to create a toolbar programmatically and add left and right bar buttons without using XML. But the button is not getting aligned to right. Toolbar TopTulBarVar = new Toolbar(this); TopT...
Natalee asked 27/5, 2017 at 14:57

18

Toolbar background is dark color, I want text and back arrow to be white. I tried following, but it doesnt work. <style name="Theme.MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> &lt...
Partiality asked 17/11, 2014 at 9:28

© 2022 - 2024 — McMap. All rights reserved.