toolbar

Toolbar title textsize decreases on orientation change

﹥>﹥吖頭↗ 提交于 2019-12-10 14:44:54
问题 The Toolbar title textsize gets decreased when I change orientation from portrait to landscape and gets reset when I change back to portrait. The activity in which this happens extends ActionBarActivity which uses getSupportActionBar() . 回答1: Use the below solution: <android.support.v7.widget.Toolbar android:id="@+id/main_toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:titleTextAppearance="@style/ToolbarTitle

WPF ToolBar Separator shrinks to nothing when inside a StackPanel

孤街浪徒 提交于 2019-12-10 13:09:33
问题 Given the very simple wpf app <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="800"> <Grid> <ToolBar Height="50" > <MenuItem Header="Test1" /> <MenuItem Header="Test2" /> <StackPanel Orientation="Horizontal"> <Separator /> <MenuItem Header="Test3" /> <MenuItem Header="Test4" /> <MenuItem Header="Test5" /> </StackPanel> </ToolBar> </Grid> </Window> The Separator

TypeError : r.getClientRects is not a function

对着背影说爱祢 提交于 2019-12-10 12:59:20
问题 I am trying to create a custom toolbar in KendoUI grid following this link:http://demos.telerik.com/kendo-ui/grid/toolbar-template but getting stuck with an error. This is what I am trying to do in my code: <div id="example"> <script type="text/x-kendo-template" id="template"> <div class="toolbar"> <label class="category-label" for="category">Show products by category:</label> <input type="search" id="category" style="width: 150px" /> </div> </script> <div id="grid"></div> <script> $(document

Android material design replicate toolbar breadcrumbs example

怎甘沉沦 提交于 2019-12-10 12:47:15
问题 I'm trying to replicate the breadcrumbs example: I've gotten as far as adding TextViews to the Toolbar but can't fully replicate the font/size/color of the Toolbar's style and can't get the breadcrumbs to float off the screen to the left. 回答1: You will need to create your own Breadcrumb View and add it in your Toolbar. Maybe based on the now deprecated FragmentBreadCrumbs view. To get the breadcrumbs to float off the screen you can use negative margin. 来源: https://stackoverflow.com/questions

android/view/view$on unhandled keyevent listener error

人走茶凉 提交于 2019-12-10 11:35:12
问题 When i create a new layout in Android Studio , I can't put anything on it literally (with root element android.support.v7.widget.Toolbar , by going layout->new->ressourse file) I can't even change the background color! it shows me "android/view/view$on unhandled keyevent listener" the error is on the photo number 2 回答1: I don't see anything underlined. Try the following Install the missing plattforms like Android Studio suggests in your screenshot from the comments Be sure to add

Adding an icon to a ToolButton in Gtk 3

有些话、适合烂在心里 提交于 2019-12-10 10:59:54
问题 Is there a way to add an icon to a Gtk.ToolButton (Gtk3 using PyGi for Python) to add to the GTK+3 toolbar ? Below is my code: self.addfile = Gtk.ToolButton() self.addfile.set_label("Add File") self.addfileimg = Gtk.Image() self.addfileimg.show() self.addfileimg.set_from_file(self.get_resource("img/file.png")) self.addfile.set_icon_widget(self.addfileimg) self.addfile.connect("clicked", self.on_open_file) Note: The get_resource() method digs into the local working folder for the resource path

Ask Toolbar preventing Bootstrap Modal to show

℡╲_俬逩灬. 提交于 2019-12-10 09:31:27
问题 I am facing a bit problem with a project which uses bootstrap 2.3.2 framework. Users who has ask toolbar are unable to see bootstrap modal completely as in below given screenshot: Steps to replicate the issue. Install ask toolbar for Google chrome {if not installed) or if installed and disabled, enable it. Go to Getbootstrap documentation website and click on Launch demo modal button to open the modal. The modal will display as shown in the screenshot. Google Chrome is injecting an iframe

matplotlib navtoolbar doesn't realize in wx 2.9 (Mac OS X)

孤街醉人 提交于 2019-12-10 09:23:54
问题 The following piece of code produces a matplotlib NavToolbar2 at the top of a frame as expected when run on wxPython 2.8.x, Python 2.5.4/2.6, Matplotlib 0.99.x. However, I've recently moved to Python 2.7, and wxPython 2.9.1 in an attempt to support OS X in 64-bit. It's under this environment that the code below produces an empty toolbar: I noticed when building matplotlib that it said something about not needing WxAgg for wx 2.9 and up, might this be the problem? All I've tried so far is to

Changing the height of UIToolbar in iOS 7

梦想与她 提交于 2019-12-10 02:35:01
问题 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

How to center ImageView in a toolbar?

狂风中的少年 提交于 2019-12-10 00:55:24
问题 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? This is my toolbar tag <android.support.v7.widget.Toolbar 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="wrap