toolbar

How do I remove a custom toolbar from an Excel workbook?

放肆的年华 提交于 2019-11-29 11:41:46
I'm using Excel 2007, and I have an Excel workbook with a custom toolbar attached. Every time I open the workbook, the toolbar appears on the ribbon under "Add-ins". I can right-click on the toolbar and choose Delete Custom Toolbar and that removes it. But when I re-open the workbook, it re-appears. How do I remove it for good? The toolbar is not created by VBA. It was attached to the workbook in an earlier version of Excel using the steps outlined in http://office.microsoft.com/en-us/excel/HP051986401033.aspx . While the proper solution is detaching the toolbar from the workbook, I'm not sure

Is toolbar's logo icon clickable?

霸气de小男生 提交于 2019-11-29 10:41:47
i have used toolbar so now i want to apply click event over logo icon how can i get this event? here is some coding stuff that i have done Toolbar toolbar = null; toolbar = (Toolbar) findViewById(R.id.actionToolbar); setSupportActionBar(toolbar); setTitle(null); toolbar.setNavigationIcon(R.drawable.back); toolbar.setNavigationContentDescription("BACK"); toolbar.setLogo(R.drawable.ic_launcher); toolbar.setLogoDescription("LOGO"); toolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(MainActivity.this, "Nav", Toast.LENGTH_SHORT)

Android RecyclerView below Toolbar

别说谁变了你拦得住时间么 提交于 2019-11-29 10:39:06
问题 I have a custom RecyclerView and a toolbar which hide when scrolling down and appears when scrolling up. I have a problem about the position of RecyclerView, it is below the Toolbar, I use the behaviour but it seems not working. My xml: <?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:id="@+id/coordinatorLayout" android:layout_width=

android5.0+(Toolbar)

梦想的初衷 提交于 2019-11-29 10:13:21
Toolbar Toolbar 是什么?大概说一下它的官方介绍。Toolbar是应用的内容的标准工具栏,可以说是Actionbar的升级版,两者不是独立关系,要使用Toolbar还是得跟ActionBar扯上关系的。相比Actionbar Toolbar最明显的一点就是变得很自由,可随处放置,因为它是作为一个ViewGroup来定义使用的,所以单纯使用ActionBar已经稍显过时了,它的一些方法已被标注过时。 那么它怎么使用呢,首先我们一样要用到v7的支持包,然后定义程序的主题样式,在style里得先把Actionbar去掉,有点像欲想练功,必先自宫的感觉啊。如下: /res/values/styles.xml <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- toolbar(actionbar)颜色 --> <item name="colorPrimary">#4876FF</item> <!-- 状态栏颜色 --> <item name="colorPrimaryDark">#3A5FCD</item> <!-- 窗口的背景颜色 -->

【Android】Toolbar

本秂侑毒 提交于 2019-11-29 10:13:05
#Toolbar ##简述 Toolbar 在v7.21+包中,是一个用来替代ActionBar的组件,可以说是ActionBar的升级版本。Toolbar与ActionBar比较有几个特点: ActionBar属于Window的装饰组件,一个activity中只能有一个ActionBar,但是Toolbar属于View级别,可以有任意多个 ActionBar定制困难,Toolbar可以看作一个ViewGroup,可以自由搭配 Toolbar的几个组成与ActionBar差不多,顺序是: 导航按钮 logo 标题 自定义组件 action menu(类似菜单) ##使用 ###替换ActionBar 如果使用的是兼容包,那么依旧必须继承ActionBarActivity,唯一的要点:主题中需要去掉ActionBar。 <style name="V7.Toolbar" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="windowActionBar">false</item> </style> 或者 <style name="V7.Toolbar" parent="Theme.AppCompat.Light.NoActionBar"> </style> 代码中用Toolbar替换掉ActionBar即可

SearchView like Google Play Video App

陌路散爱 提交于 2019-11-29 03:57:44
I'm trying to implement search interface in actionbar like in Google Play Video App ( https://play.google.com/store/apps/details?id=com.google.android.videos ). I think it is SearchView widget but don't understand how do same customization: add up button inside it, set background, and expand the full width of actionbar sosite @Quiny898 create a nice lib, have a look: https://github.com/Quinny898/PersistentSearch Use a standalone Toolbar and set it with an elevation, then inflate your menu in it. You can add this item to your menu: <item android:id="@+id/menu_search" android:title="@string

how to pin title in Toolbar inside CollapsingToolbarLayout

不打扰是莪最后的温柔 提交于 2019-11-29 03:46:41
Here is my layout: <android.support.design.widget.AppBarLayout <android.support.design.widget.CollapsingToolbarLayout ... <android.support.v7.widget.Toolbar ... /> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> I want title stays in Toolbar, not in CollapsingToolbarLayout. So I changed my code from: mCollapsingToolbar = ... mCollapsingToolbar.setTitle(title); to: mTitleBar = ... setSupportActionBar(mTitleBar); getSupportActionBar().setTitle(title); But the title is not visible. My device is Nexus 6 5.1.0 Thanks in advance. Update 1: I

地图控件:overview、scale、toolbar

空扰寡人 提交于 2019-11-29 02:31:15
地图常用控件: 1、AMap.MapType:地图类型切换插件,用来切换固定的几个常用图层 2、AMap.OverView:地图鹰眼插件,默认在地图右下角显示缩略图 3、AMap.Scale:地图比例尺插件 4、AMap.ToolBar:地图工具条插件,可以用来控制地图的缩放和平移 地图插件添加:map.addControl( new AMap.插件名() ) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.11&key=9de88a718781910c9a1c81230827d1ce&plugin=AMap.Scale,AMap.OverView,,AMap.ToolBar,AMap.Autocomplete"></script> <title>地图控件:overview、scale、toolbar</title> <style> *{ padding: 0; margin: 0; } #container{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; } #panel{ position:

How to resolve position:fixed for a bottom toolbar on iOS (iPhone/iPad)

你。 提交于 2019-11-29 00:30:49
问题 I have a bar that is fixed to the bottom of every page on my website by using position:fixed. The problem is that on devices like iPhone or iPad this property is not respected. I tried to use javascript to detec the screen height, scroll position, and this works perfectly on the iPad: $( window ).scroll( function ( ) { $( "#bar" ).css( "top", ( $( window ).height() + $( document ).scrollTop() - 90 ) +"px" ); } ); As you can see I'm using jQuery. The problem is that this code does not quite

Android : Change entire app layout directions programmatically

筅森魡賤 提交于 2019-11-29 00:01:31
问题 How can I change entire app layout direction to RTL? I am writing an app that user must select it's language in first launch and the layout should change based on user selection to RTL or remains LTR. I used to add android:supportsRtl="true" to the AndroidManifest and android:layoutDirection="rtl" for each layout but this approach have some problems like below : One problem is when I change the direction to RTL the ActionBar home icon or navigation button (when home as up is enabled) remains