Questions tagged as 'toolbar'

1
answer

How can I make a Toolbar with a transparent gradient background?

I need to achieve this effect in the Toolbar: This is the code I use to call Toolbar : //... Toolbar myToolbar = (Toolbar) findViewById(R.id.toolbarMap); setSupportActionBar(myToolbar); myToolbar.setTitleTextColor(getResources()....
asked by 21.10.2017 / 21:43
2
answers

why does my toolbar appear below the fragments elements?

Well the problem is the following, I have a toolbar that in lolipop versions onwards is shown correctly, but in kit versions kat below, the toolbar is placed below the elements of my fragments I was already investigating and even I have not reso...
asked by 16.11.2017 / 20:39
1
answer

Extended App Bar

How can I implement an extended app bar, like the one shown in the image?     
asked by 18.01.2017 / 23:39
2
answers

How to put or enable back button in toolbar

something very strange is happening to me, I do not get the button to go back in the toolbar and in a previous project if I leave .. I followed the same steps with the difference that now the toolbar I have in a separate xml but not I know why I...
asked by 19.11.2016 / 18:20
1
answer

Buttons on Android ActionBar

I am creating an application and I need to put buttons in the ActionBar and I already did it but I do not know how to put images on the buttons and only text (see image) the question is that in XML if it is done but in this case I can not...
asked by 26.11.2018 / 22:04
2
answers

How to change the title name in the toolbar? And how do I center it?

I would like to know how to change the title of each activity (I have eight different activities) in the toolbar. I have created a toolbar.xml <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android...
asked by 21.03.2018 / 20:45
2
answers

Problems with setSupportActionBar (toolbar) in android studio

I am new to the world of mobile programming and I had a problem when creating a toolbar in the java code, this does not recognize the object created with the name toolbar in setSupportActionBar (toolbar), here is the code: package com.example....
asked by 27.12.2017 / 21:15
1
answer

How to change toolbar when changing fragment in Android? [closed]

I have a lower navigation and when I change from one fragment to another I want the top toolbar to change the options.     
asked by 17.02.2017 / 20:33
0
answers

android / view / View $ OnUnhandleKeyListener (Error)

I am creating a menu that is built by a Toolbar, but I get an error android / view / View $ OnUnhandleKeyListener , I can not see the part of the Design p> This is the code of the Menu <menu xmlns:android="http://schemas.android.com...
asked by 31.08.2018 / 23:16
1
answer

Problem inserting setTitle ("title");

I can not believe I can not put a simple Toolbar, my code is as follows: MainActivity: package com.example.a60393.calculadorakuspit; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.su...
asked by 13.08.2018 / 06:15