FAQ Database Discussion Community


How add a single menu item left to the toolbar in android?

android,toolbar,menuitem,android-toolbar,android-actionbaractivity
I simply want a back button in left side of toolbar.But when i added with following code ,appear in right side of toolbar.how can i change to it to left side? my code <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com.me.myapp.activities.Timer"> <item android:id="@+id/backButton" android:title="Back Button" android:icon="@mipmap/back_icon" app:showAsAction="ifRoom"></item> </menu> ...

Android toolbar inside a tab menu retrieval

java,android,menu,fragment,toolbar
How do I get a menu for my toolbar inside a fragment (tab)? I'm relatively new to android and java. Here's the code: import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.ActionBarActivity; import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class Tab1 extends Fragment { @Override public View onCreateView(LayoutInflater inflater,...

Add toolbar dynamically to an abstract activity

android,android-activity,toolbar
I have a base activity that all of my activities extend from. This class includes basics like a toolbar and a navigation drawer. I am looking for a solution that will allow me to override a method in extended activities so I can change the type of toolbar that activity...

Hide Toolbar with CoordinationLayout and Webview not working

android,webview,toolbar
I'm trying to hide the Toolbar when scrolling the WebView, with the new CordinationLayout, but it's not working. Is there any way to do it? This is my xml: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.themobilebakery.isus.gui.WebViewActivity"> <WebView...

Back button in Toolbar without ActionBarActivity

android,toolbar,android-toolbar
I'm using a Toolbar inside a Fragment (which covers the whole screen) and I want to show the back button, but I can't use getSupportActionBar().setDisplayHomeAsUpEnabled(true) because I'm not using ActionBarActivity. I need something which works with API 9, so I can't use Toolbar's setNavigationIcon....

Get Toolbar's navigation icon view referrence

android,android-actionbar,navigation-drawer,toolbar,hamburger-menu
I would like to highlight drawer icon in my Toolbar (working on a tutorial). For that, I need its position. How do I get a reference to drawer's navigation icon (hamburger) view?

android toolbar no longer works

java,android,toolbar
so my friend "helped" me with my program a little only that his help brought more problems than actual help. I used to have a toolbar within one of my activities and while the rest of the code works, if the toolbar is present the program always stops. Getting no...

ToolBar becomes so much bigger on 19+ API in android

android,toolbar
I want transparent StatusBar as well as NavigationBar in my app. thus I've achieve this using: values/style.xml <style name="AppBaseTheme" parent="Theme.AppCompat"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style> <style name="AppTheme"...

Android how toggle with the button in toolbar to open/close navigation drawer with Fragments

java,android,fragment,navigation-drawer,toolbar
I am new in Android Development after reading so many tutorials and documentation and spending some time finally i managed to create a navigation drawer with the toolbar. but currently the problem is i can only open drawer by swiping from left side of the screen (not capable open/close drawer...

How to change the toolbar text size in Android?

android,toolbar,text-size
I want to change the size of text in toolbar because in my application, toolbar text has different sizes both for landscape mode and portrait mode. Is it possible to change the text size of text in toolbar? ...

how disable DrawerArrowToggle from toolbar or move right

android,toolbar,right-to-left
first question: i want to create a right to left toolbar like this image: how can customize the toolbar DrawerArrowToggle to move right? And second question: i create a custom toolbar and make a button for open drawer but toolbar DrawerArrowToggle is appear left of my custom toolbar. how to...

GXT ToolBar is scrolled

gwt,scrollbar,toolbar,ext-gwt,treepanel
I'm developing a simple GXT widget - it's a TreePanel with a ToolBar added using setTopComponent. The problem is that as soon as the tree is large enough so that it can be scrolled, the scroll-bar doesn't scroll the tree only, but scrolls the ToolBar as well. What should be...

New fragment from fragment after imageView click

android,android-fragments,android-studio,toolbar
i'm trying to call a fragment from an another, but when i call it, the toolbar still with the same name, how to reload it ? @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); ImageView actualites = (ImageView) getView().findViewById(R.id.thirdBlock); actualites.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Fragment fragment = new...

How to style Polymer's toolbar background in 0.5?

polymer,toolbar
I'm having issues trying to set the full background color of the toolbar in Polymer 0.5 when using core-scaffold. What I've tried so far on Stackoverflow only sets the left menu side, but not the right content side. How does one set the background color for the full toolbar? Below...

Toolbar hidden by noification pannel

java,android,android-studio,apk,toolbar
so i've generated the apk, but when i start my app, the toolbar is hidder by the noification pannel: android.support.v7.widget.Toolbar Toolbar.xml: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/main_toolbar" android:layout_width="match_parent" android:layout_height="50px" android:background="#263355" local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" local:popupTheme="@style/ThemeOverlay.AppCompat.Light"...

android - make text away from my toolbar

android,scroll,toolbar
when I scroll my text forward my toolbar , text mix with my toolbar title , it look bad . any idea how to fix this issue thank you in advance my xml file <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" style="@style/noActionBar"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="fill_parent"...

android appcompat v22 2 Global theme overrides toolbar theme for burger icon

android,toolbar,android-theme,appcompat-v7-r22.2
I'm using the support library AppCompat v7 22.2. My app uses a light theme that I've set up as follows <style name="Theme.SM3Theme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/s3m_primary</item> <item name="colorPrimaryDark">@color/s3m_primary_dark</item> <item name="colorAccent">@color/s3m_accent</item> </style> In my manifest I have <application android:allowBackup="false" android:icon="@drawable/icon" android:theme="@style/Theme.SM3Theme" I want my...

In Visual Studio 2013, how do I copy the 'Full Screen' icon to the toolbar?

visual-studio-2013,toolbar
Under the View menu, there is a Full Screen entry that I would like to see on the toolbar all the time. When I enter full screen mode, the icon is automatically placed on the menu bar but then it disappears when I leave full screen mode. [Menu] View/Toolbars/Customize... doesn't...

Android Toolbar for API 19? (for API 21 works ok)

android,android-actionbar,navigation-drawer,toolbar
I used How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar? answer of Suyash (I added also toolbar, maybe wrongly) to put Navigation Drawer over the "action bar". For API level 21 instead of "action bar" I used toolbar, and it works fine. But...

How to replace title by logo in Android Toolbar?

android,toolbar,material-design
I want to replace the title in my Toolbar by a logo like Twitter App. I think we can replace this programmatically like that : mToolbar = (Toolbar) findViewById(R.id.app_toolbar); mToolbar.setLogo(R.drawable.ic_logo); But I want to replace it directly in my XML toolBar declaration, but I can't see the property app:logo or...

Use Toolbar across all activities (Android)

android,toolbar,android-toolbar
I'm using a Toolbar to replace the ActionBar. All is going well with one problem: The toolbar shows only on the main activity. If I try call the toolbar on any activity the same way I did with the main activity the app will crash when I call that activity....

onOptionsItemSelected ActionBarActivity doesn't respect false return

android,menu,toolbar
I have some code that looks like this in an ActionBarActivity: @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: Intent returnIntent = new Intent(); if (isNameNull()) { namePicker.setError(getString(R.string.warning_name_should_not_be_empty)); Log.d(TAG, "child name is empty"); return false; } } return super.onOptionsItemSelected(item); } This code is just supposed to display...

How to add a toolbar in the bottom of the screen?

android,android-activity,fragment,toolbar
I'm new here. I need your help because I don't know some thing. For example, I put a toolbar for my app and not an action bar in the top of the screen...now I want to put a toolbar in the bottom...so how could I do it? Toolbar is the...

Floating toolbar with text selection controls

android,toolbar,material-design,textselection
I was researching all over the web to no avail. My app requires a floating toolbar which appears above a selected text because the default text selection controls are not accessible in a particular case and they also show up oddly in my activity with a translucent status bar and...

Adding an image to the Qt toolbar area

c++,qt,toolbar
I was making a Qt application and after placing my actions, still a lot of empty space is left in the toolbar. I was trying to add an image to the right side of icons, and was told it is possible using QLabel object and placing an image using QPixmap....

Android Toolbar home as up indicator material design click effect not shown

android,toolbar,material-design
I'm working on an Android app with some Material Design features. Currently I'm trying to fix the toolbar, but I have one problem, namely: When I press the home as up arrow to go back to the parent activity, it brings me back to the parent activity but doesn't show...

Android AppCompat ToolBar color can't be changed to white

java,android,android-studio,toolbar,appcompat
I attempted the following: <style name="myAppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="colorPrimary">@color/primaryColor</item> <item name="colorPrimaryDark">@color/primaryColorDark</item> <item name="android:windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="drawerArrowStyle">@style/DrawerArrowStyle</item> <item name="actionBarStyle">@style/MyActionBar</item> </style> <style...

Animating toolbar with ListView

java,android,listview,toolbar
currently I have a Toolbar and a ListView underneath it. I would like to make my content more immersive, and I wish to do this by making the toolbar scroll up out of the screen as you scroll the ListView, like the Google Play Store's top charts view. I am...

HomeAsUp indicator in Toolabr not working

android,toolbar
I want to change HomeAsUp indicator in Toolbar and replace Default arrow, How can i do this.? Below is my code , but cant Change Icon. Please help. Styles : <style name="ToolBarStyle" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> <item name="android:homeAsUpIndicator">@drawable/ic_action_back_white</item> <item name="homeAsUpIndicator">@drawable/ic_action_back_white</item> </style> Toolbar in layout : <android.support.v7.widget.Toolbar android:id="@+id/toolBar" android:layout_width="match_parent"...

Problems with Home button in the Toolbar

android,android-studio,android-actionbar,toolbar,android-toolbar
I know it's a common question but I tried a lot of solutions of StackOverflow and any solution works. I want to show the home button in the toolbar but it shows the back button or nothing. I tried different codes like: getSupportActionBar().setHomeButtonEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(true); Now I have the...

ToolBar navigation button

android,android-actionbar,navigation-drawer,toolbar,android-button
This is my Toolbar: And this is Gmail app Toolbar: I want to have the button which open the navigation drawer that the Gmail app has. How can I achive that? This is my ToolBar: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" app:theme="@style/ThemeOverlay.AppCompat.ActionBar" android:layout_width="match_parent" android:layout_height="wrap_content"...

It's possible to add imageview in a toolbar?

android,android-fragments,toolbar
I need an information about Toolbar. I would like to add four images in my Toolbar like home, news, search and message. So i've putting Imageviews in the Toolbar. Now I don't know how to add listener at these images...how could I do that? I have also a navigation drawer...

How to make Search Dialog size of a toolbar

android,search,layout,toolbar,search-dialog
So I learned how to make Search dialog with this tutorial but it doesn't look pretty and I'm looking for proper way to fix it. As you can see search widget doesn't cover fully the toolbar and I think making it shorter by using constant dp values is not a...

Lollipop: Had trouble showing a shadow under the overflow menu

android,toolbar,shadow
I had some trouble getting the shadow to show in a certain Activity on Lollipop devices. Despite the theme of the Activity and the Support Toolbar used was exactly the same as it was in any other activities. I was confused why I couldn't get the shadow to show in...

Difference between setSupportActionBar and setActionBar

android,android-actionbar,toolbar
So I am trying to use a Toolbar as an ActionBar in an app. I am trying to use the setSupportActionBar() method in a fragment that is hosted by an activity that extends a class that extends AppCompatActivity. For some reason I'm not able to do getActivity().setSupportActionBar() at all, I...

setsupportactionbar() throws error

android,toolbar,android-support-library
I tried following the steps for displaying a drawer above the action bar but below the status bar. The steps found here: display over the ActionBar/Toolbar and under the status bar? But after implementing the code, the following error was thrown: error: cannot find symbol method setSupportActionBar(Toolbar) I've searched on...

What to use instead of getSupportActionBar() in Library 22?

android,toolbar,appcompatactivity
There is a line in my code, that marked as yellow: getSupportActionBar().setDisplayShowHomeEnabled(true); After installing appcompat-v7:22.1 it shows a hint: "Method invocation may produce java.lang.nullpointerexception". What should be used instead of getSupportActionBar()?...

Main Menu in toolbar not working as expected

delphi,menu,toolbar
I create a VCL forms application, add a main menu and insert the "MDI Frame Menu" from the menu templates. I run the programme and use the acceleration keys. Everything works as expected. I now add a toolbar, disconnect the main menu from the form and link it to the...

CKEDITOR - Toolbar button with text

button,text,plugins,ckeditor,toolbar
I have a plugin to save the editor contents via Ajax. Right now the button on the toolbar has an image. I wanted to change that to have bold text spelling out 'SAVE'. Is this possible? This is button currently in my plugin. editor.ui.addButton('ajax-save', { label: I18n.t('js.save'), command: ajax-save, className...

Set ActionBarDrawerToggle in center of toolbar or actionbar, android?

android,toolbar,android-toolbar,actionbardrawertoggle
I have created my activity XML through java and also put the navigation drawer. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mDrawerLayout = new DrawerLayout(getApplicationContext()); mDrawerLayout.setLayoutParams(new DrawerLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); content_frame = new FrameLayout(getApplicationContext()); content_frame.setLayoutParams(new FrameLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); content_layout =...

Prevent toolbar from hiding when recyclerview has one item

android,toolbar,recyclerview,android-design-library
I have some, problem. The toolbar is hiding when recyclerview has few items (1,2,3,4). This is unwanted behavior. How can i prevent the toolbar from hiding when recyclerview has only few item and there is no scroll on recyclerview? main_recyclerview.xml GIF showing the problem <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="1dp" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"...

Why doesn't my NavDrawer open when clicking my navigation icon?

android,toolbar
I use a custom navigation icon so I need to drawerToggle.setDrawerIndicatorEnabled(false);. But now, my Navdrawer does not open when clicking my custom icon. Any ideas how to accomplish this? Do I even still need an ActionBarDrawerToggle? public void setUpActionBar() { actionBar = (Toolbar) findViewById(R.id.custom_screen_toolbar); setSupportActionBar(actionBar); actionBar.setBackgroundResource(R.drawable.divider_action_bar); actionBar.setNavigationIcon(R.drawable.action_bar_menu); drawerLayout = (DrawerLayout)...

How to make QtQuick transparent Toolbar

qml,toolbar,qt-quick,qtquick2
How to make the built-in Quick ToolBar transparent so that only buttons are visible?

Fit JavaFX ToolBar snugly around its items

javafx,toolbar
A JavaFX toolbar always has padding space around its child items. Is there a way to control this so there's no space to the side (first item, and last item at the other edge), top, and bottom?

Title, etc. not showing in Android Toolbar

android,toolbar,android-toolbar
I've just added an Android Toolbar to an app I'm working on. The toolbar placement works correctly with the toolbar layout appearing at the top of the display. However, the toolbar is showing up as a blank colored bar...the App Title and Overflow Icon do not show up in the...

android toolbar menu item clicks

java,android,listview,click,toolbar
So I have this 'add' item in my toolbar. This item is supposed to add views to a listView below the toolbar and it works when you press it the first time. However, once the first view is added you cannot add anymore. How do I fix this? @Override public...

Android use AppBarLayout instead of Toolbar

android,android-activity,toolbar,android-support-library,appcompat
I am using a normal AppCompat Toolbar in my project. In one of my fragments I want to use the AppBarLayout toolbar and TabLayout instead of the normal Toolbar. How can I switch between those two toolbars? I tried inflating the AppBar Toolbar but it just puts it below the...

Matplotlib and WxPython - Interactive Toolbar Plot not doing a Refresh/Update on click

python,matplotlib,wxpython,toolbar,wx
I am trying to integrate matplotlib within a wxpython GUI, and I have gotten the interactive navigation toolbar to show up successfully. However, pressing any of the buttons does not change the plot, the plot only changes (based on the last pressed button) if you re-size the window or if...

Toolbar bug with method setTitle

android,android-actionbar,toolbar,appcompat,android-toolbar
I am using this two methods in my toolbar: toolbar.setTitleTextColor(getResources().getColor(R.color.ColorPrimary)); getSupportActionBar().setTitle("title"); The reason for using getSupportActionBar is because toolbar.setTitle("title"); is not working. This is a bug?...

Toolbar will not collapse with Scrollview as child of CoordinatorLayout

android,toolbar,android-scrollview,android-toolbar,coordinator-layout
I am trying to follow the Google Docs on using the CoordinatorLayout but i am having an issue with the ScrollView inside the CoordinatorLayout. Basically, the Toolbar normally would collapse with a RecyclerView or a Listview when scrolling down. Now with a ScrollView it will not collapse. <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent">...

Custom/common toolbar in Swift

ios,swift,navigation,toolbar
I'm quite new to Swift and am working on an app where I'm not sure how to setup the navigation. It works with a tab bar, except that I want the bar to display nomatter what view is being displayed. There are 4 "main" views that the user should always...

Add labels to Toolbar items in XCODE

ios,swift,toolbar
I am using swift with xcode. I am having trouble putting a label underneath an image for a toolbar item. Either it only allows a label or only an image. I want to do something like this Example of toolbar item But i am not able to do that through...

BaseActivity to implement Navigation Drawer and Toolbar in every activity

android,tabs,navigation-drawer,toolbar
I created a base activity and base layout to extend those to get same nav drawer and toolbar in all my activities. However, I want to add sliding tab layout in one of my activity. Should I create a new layout for this? Or is there a way I can...

NavigationDrawer over Toolbar with App.Compat theme

android,toolbar
I am mixing stuff really bad now. Just confuzed about all the options. I have a drawer and a toolbar. the drawer opens Under the toolbar. I would like to open the drawer over the toolbar to gain more space. It's spagheti now, I don't understand it. This is the...

Eclipse RCP4: Display HandledToolItem with both image and label

eclipse,toolbar,rcp,e4
I'm working on an Eclipse RCP 4 application and trying to add a HandledToolItem that displays both a label and an image to its left. Problem is whenever i add the image it only displays the image and hides the label. Is there any other way of getting this implemented...

Add EditText to Toolbar

android,android-edittext,android-custom-view,toolbar
My Toolbar and EditText look like this: I tried adding it as an ActionView but I got this result: It basically just added my words 'Tap Below' as a title without the TextView Here's what I did: menu.xml <menu> ... ... <item android:id="@+id/edit_text_menu" android:orderInCategory="300" android:title="Tap Below" android:actionLayout="@layout/edit_text_layout" app:showAsAction="ifRoom|collapseActionView" /> </menu>...

Logo disappear from toolbar after while

android,android-actionbar,android-5.0-lollipop,toolbar,android-actionbar-compat
When I install my app everything seems OK. But when I return after some moment there is no logo in my toolbar. There is only black. It was OK in Android 4.4, but my Galaxy S4 upgraded to Android 5.0.1 and there is this bug in my app. Don't you...

Table and toolbar on same shell

java,eclipse,shell,table,toolbar
I need help how to place Toolbar and Table on same shell SWT window. Problem I have is that if I have both of them on form, each one of them covers one half of the shell window: import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Menu; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.MenuItem; import org.eclipse.swt.layout.FillLayout;...

Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead

android,mvvmcross,toolbar
I'm having this issue when I applied the toolbar into my app and it crashed when I try to run the app.I used all previous post but no luck. Here is my code : Style.xml <style name="ToolBarStyle" parent="@style/Theme.AppCompat.Light"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> I tried parent="@style/Theme.AppCompat.Light.NoActionBar" but not worked. Toolbar.xmal...

Android force ActionBar inside of Toolbar on Landscape

android,android-actionbar,toolbar,landscape
The example code found on https://github.com/chrisbanes/cheesesquare results in my tablet to look like this: However I want it to look like this : Relevant xml code: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.AppBarLayout android:id="@+id/appbar"...

Why TToolBar doesn't want to wrap?

delphi,toolbar,delphi-2009
I put a TToolBar on my form and add some TSpeedButton. I ensure myself that Wrapable is set to true and run the application. But when I shrink the form the buttons don't wrap on new line. What am I missing ? I am using Delphi 2009.

What is the best way to implement icon based custom toolbar with Xamarin?

android,mobile,xamarin,android-actionbar,toolbar
I would like to have a toolbar (actionbar) in my app which looks like the screenshot, basically 4 icons shown on top of the screen with no text: What is the best way to implement icon based custom toolbar with Xamarin? ActionBar with some special settings Custom toolbar layout consisting...

android toolbar not working properly

java,android,layout,toolbar
I've set up a toolbar in one of my application's activities, but it crashes everytime I try to go to said activity. Maybe I'm missing something? Can someone help me out with this? Haven't used toolbar before so still a little confused. Here's the code of activity: import android.content.Intent; import...

Controlling JavaFX ToolBar size when adding / removing items

javafx,resize,toolbar
I am using a BorderPane to place 4 toolbars at all the cardinal points i.e. top, left, right, bottom. When a toolbar expands to accept its 1st item, this growth does not revert when the toolbar becomes empty. I'd like it to shrink to its initial state when it nothing's...

OnClickListener not firing when Toolbar GONE

android,toolbar,android-toolbar
I have an activity containing a Toolbar and a Fragment containing a GridView. Here is the layout of the Activity : <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/root_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- The main content view --> <FrameLayout android:id="@+id/content_frame" android:layout_width="match_parent" android:layout_height="match_parent"/> <android.support.v7.widget.Toolbar android:id="@+id/home_toolbar"...

How to specify separate toolbar group for widget buttons?

widget,ckeditor,toolbar
By default CKEditor places widget buttons in the toolbar 'insert' group. I'd like to specify a custom group on the toolbar only for my widget buttons. How can I do that?

Add a UITableView Edit button to the toolbar in swift

ios,uitableview,swift,edit,toolbar
I have a UIControllerView which contains 2 tables, each having a separate controller. One of the table contains items that can be deleted. By default the edit button can be added to the Navigation Bar adding the below to the UITableViewController in the viewDidLoad(): self.navigationItem.leftBarButtonItem = self.editButtonItem() But I need...

What is the Android user base by API level

android,android-layout,android-actionbar,toolbar,android-viewgroup
My goal is to implement a floating element (maybe I should say 2 elements) at the top of the screen, in a "browse" feature which displays text via a ListView. The elements I wish to float at the top while the user scrolls through various items, are a title and...

android:fitsSystemWindows not working on Toolbar

android,toolbar,android-4.4-kitkat
I'm using android library Android-ObservableScrollView from ksoichiro. I use his sample Flexible Space with viewpager and i modify it. But there's some problem. You can see in my xml there is 2 android:fitsSystemWindows. One in LinearLayout, and the other in Toolbar. In LinearLayout working good. but in Toolbar is not...

Android - Center the title of the Toolbar [duplicate]

java,android,title,toolbar
This question already has an answer here: Android toolbar center title and custom font 5 answers i have a Toolbar in my app like that: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" android:background="#263355"...

Hide app title on support.v7.widget.toolbar

android,toolbar
I'm starting to develop a new app and I'm triying to give it a material design look. For this, I'm using the v7 support compatibility. In some activities of the app, I need the toolbar not to show the app title that, I don't know how, but it is showing...

Change text color in toolbar / action bar, android?

android,menu,android-actionbar,toolbar
I want to change the text color and the navigation icon color in the toolbar Change the text color of the action item "13311" And also of the drawer icon. The styles //activity theme <style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light"> <item name="android:windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="colorPrimary">@color/ColorPrimary</item> <item name="colorPrimaryDark">@color/ColorPrimaryDark</item> <item...

Toolbar title first letter other color

java,android,title,toolbar,textcolor
I want my toolbar to have a colored title. That's not the problem. But how can I achieve that the first letter of the tile e.g. is black and the rest white? Is this possible?

Hide toolbar on scroll when the using a recyclerview inside a Fragment instead of an Activity

android,scroll,toolbar,recyclerview
I'm trying to adapt the strategy for hiding / showing a toolbar (or any visual element) from the well explained and great article: http://mzgreen.github.io/2015/02/15/How-to-hideshow-Toolbar-when-list-is-scroling%28part1%29/ But in my case I'm using a Fragment to hold the recycleview instead of the activity. My problem is that the padding is not being applied...

How to create toolbar with left, center and right sections in javaFX?

java,javafx,alignment,toolbar
I'm trying to create a customized toolbar in javafx. This toolbar should be able to display controls in the center, in the left side and in the right side (three sections) of its surface. The problem is that I have no idea to achive this. I read many hints related...

Android Toolbar not showing

java,android,android-layout,toolbar
currently I am using Android's new toolbar (in appcompat). It works fine until I try the following method: toolbar.bringToFront(). When I call this, the toolbar disappears. My layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:orientation="vertical"...

NullPointerException after replaceing actionbar with toolbar

android,menu,nullpointerexception,toolbar
I'm using badge layout in one menu item here is some menuItems <item android:id="@+id/action_rdvmed" android:title="@string/rdv" android:icon="@drawable/ic_action_action_event" android:showAsAction="always" /> <item android:id="@+id/action_msg" android:title="@string/msg" android:actionLayout="@layout/badge_layout" <!--this one causes the problem--> android:showAsAction="always" /> <item android:id="@+id/action_actualiser" android:title="@string/actualiser" android:icon="@drawable/ic_action_refresh"...

How to center ImageView in a toolbar?

android,android-actionbar,imageview,center,toolbar
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 the center of the toolbar, without removing the up affordance icon?...