toolbar

Toolbar don´t work with pre-lollipops devices using appcompat v7

*爱你&永不变心* 提交于 2019-12-05 11:22:42
I'm doing a simple code for a toolbar and menu drawer, using material appcompatv7. Everything works perfectly on the Nexus 5 with lollipop , but in a pre-lollipop (4.1 or 4.4) device crashes. The problem comes in defining the style. I put my code if anyone can tell me where the fault is. This is my main activity: import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.widget.Toolbar; import android.content.res.Configuration; import android.os.Bundle; import android.view

Android : Navigation button show wrong side when layout direction is RTL

不羁的心 提交于 2019-12-05 11:08:10
I asked this question before ( here ) but nobody answered so I ask It a little bit simpler. The problem is when I change the layout direction to RTL (in xml file : android:layoutDirection="rtl" or programmatically : if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1){ getWindows().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL); } doesn't matter) the navigation icon remain LTR How can I fix this issue? To be more specific the arrow should point at right! In the Activity Class --> Add these lines : onCreate(){ ActionBar ab = getSupportActionBar(); // Enable the Up

How enable debugging toolbar in prod environment of a Symfony2 project?

∥☆過路亽.° 提交于 2019-12-05 10:40:31
I have an existing project and just would like to know which files and what should I change to make visible the debug toolbar in the prod environment You should change in the AppKernel.php file in order to enable the bundle in the prod environment also and change the route moving from the routing_dev.yml to the routing.yml the bundle definition route. Then add the configuration in the config.yml also. As Example: AppKernel.php // Move this outside the if statement $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();

richtextbox advanced editing

五迷三道 提交于 2019-12-05 07:18:45
I am wanting to use advanced editing features with a RichTextBox i am using. For example, bold, italic, underline, font color.... I was wondering how i would get a toolbar that would show up at the top of the RichTextBox with those features? And i was wondering if there was anything that offered this functionality built in, or am i going to have to create all of it myself? I was thinking that the richtextbox would come with that toolbar by default, but it doesnt seem too. I actually found what i wanted. Here are my results: This one offers bullets and more stuff. I chose this one, because it

It's possible to add imageview in a toolbar?

五迷三道 提交于 2019-12-05 06:05:43
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 Imageview s 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 and I want that, if you press the Imageview in the Toolbar , you go in a new Fragment and not in a new Activity . So how could I do these two things? Thank you for the answers. Elltz i guess you know how to add your imageView s to your ToolBar if not check this .. After that get a reference to your ToolBar use findViewById

Collapsing toolbar with image, tabs and FAB

感情迁移 提交于 2019-12-05 05:46:53
问题 I'm having difficulties trying to implement the toolbar as in images below: However, I've failed to add the Floating Action Button like shown on image. I'm using Googles design support library. Any ideas? My current XML code: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"

How to customize the Eclipse toolbars (Kepler or in general)

元气小坏坏 提交于 2019-12-05 04:58:15
I've been trying to customize the toolbars in Eclipse (Kepler, JavaEE) for quite some time now. After finally getting the toolbar configured the way I want in a given perspective (say, the main JavaEE perspective), when I switch to a different perspective (say, the Debug perspective) and then switch back, it's completely messed up. Additionally, if at that point, I re-open the dialog to re-configure the toolbar again, I find that it's no longer in sync with the current state of the toolbar. I've also tried saving my configurations as a custom perspective, with no effect (still does the same

How to change toolbar color

可紊 提交于 2019-12-05 02:53:44
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 ... The Manifest <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/Theme.Design"> The style.xml file <resources> <style name="Theme.Design" parent="Base.Theme.Design"> </style> <style name="Base.Theme.Design" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/red</item> <item name=

Changing the height of UIToolbar in iOS 7

一笑奈何 提交于 2019-12-05 02:01:06
I am trying to change the height of my UIToolbar in a new iOS 7 project but I am not able to. I am using a UINavigationController to manage a couple of UIViewController. I tried setting the frame for the toolbar via the navigation controller but alas, the toolbar property is read-only. I looked at " Is there a way to change the height of a UIToolbar? " but that did not work. I tried subclassing UIToolbar, forcing a custom height and setting the right class in the Storyboard but that did not work neither, height keeps on being 44px. I thought about auto-layout could not set any constraint on

How to get a WPF Toolbar to bind to a collection in my VM without using expander

只谈情不闲聊 提交于 2019-12-05 00:39:30
问题 I have a WPF window that has a ToolBar . I have a collection of objects in my VM that I'm binding to. They appear as buttons but they always get pushed to the expanded drop down part of the ToolBar . How do I make those buttons appear in the standard part of the ToolBar ? I have the following XAML: <ToolBarTray Grid.Row="1"> <ToolBar ItemsSource="{Binding Path=MyList}" > <ToolBar.ItemTemplate> <DataTemplate > <Button ToolTip="{Binding ButtonName}" Command="{Binding Path=ButtonCommand}" >