graphical-logo

Custom image instead of logo in ActionBar/ActionBarSherlock

旧城冷巷雨未停 提交于 2019-12-10 04:09:59
问题 How can I change the default logo icon of an ActionBar to be a custom image? Similar as how it works on Whatsapp? 回答1: The ActionBar uses the android:logo attribute of your manifest, if one is provided. That lets you use separate drawable resources for the icon (Launcher) and the logo (ActionBar, among other things). So you should add this tag into manifest like .. <application android:logo="@drawable/custom_image" Update : You can use ActionBar.setLogo() for runtime. Two versions are there

Android Action Bar not showing on displayOptions - useLogo

大憨熊 提交于 2019-12-06 11:03:34
问题 I have an actionBarStyle that I have implemented in my app for my ActionBar . Here is the xml code below: <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="MyActionBarTheme" parent="@android:style/Theme.Holo"> <item name="android:windowActionBarOverlay">true</item> <item name="android:actionBarStyle">@style/MyCustomActionBar</item> </style> <style name="MyCustomActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="android:background">@android

Plone 4.2 - how can I change the logo in a diazo theme?

放肆的年华 提交于 2019-12-06 07:20:23
I have just installed a theme in Plone called beyondskins.responsive. Now I want to change the logo so that it uses the logo for my site and not the default Plone logo. I've spent an hour googling this problem and I have not found a solution. One of the places I looked was here: http://pypi.python.org/pypi/plone.app.theming#modifying-the-theme This site tells me "You can modify a theme by clicking Modify theme underneath a theme in the Themes tab of the Theming control panel." However, I don't know how to find the "Theming control panel" that they are speaking of. When I go to "Site Setup"

Twitter Bootstrap - centering brand logo in navbar

无人久伴 提交于 2019-12-05 03:10:28
问题 I tryed centering the .brand logo with: .brand { margin-left: auto; margin-right: auto; } this is my top navbar layout: http://jsfiddle.net/J4zkJ/3/ but it seems it doesn't works. I searched on stack before to post this answer and the code i used above, is taken from an answered question. Any idea how to center .brand ? NB: i can't use position:absolute and fixed , and i would like to do this responsively ( responsive ) also i tryed this: .brand { margin:0 auto !important; padding:0 auto

How to set space on left&right of the logo in the actionBar ?

自闭症网瘾萝莉.ら 提交于 2019-12-04 20:03:22
Background I want to show a bitmap on the left side of the title of the activity, in the actionbar (toolbar, to be exact), so I used this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setLogo(R.mipmap.ic_launcher); ... The problem Thing is, the logo seems to have too much margin on its left, while the title text is very near the logo itself, so it looks like this: This is not symmetrical at all.

Android Action Bar not showing on displayOptions - useLogo

感情迁移 提交于 2019-12-04 18:01:29
I have an actionBarStyle that I have implemented in my app for my ActionBar . Here is the xml code below: <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="MyActionBarTheme" parent="@android:style/Theme.Holo"> <item name="android:windowActionBarOverlay">true</item> <item name="android:actionBarStyle">@style/MyCustomActionBar</item> </style> <style name="MyCustomActionBar" parent="@android:style/Widget.Holo.ActionBar"> <item name="android:background">@android:color/transparent</item> <item name="android:backgroundSplit">@android:color/transparent</item> <item

PwExpChk.vbs can I add a company logo?

吃可爱长大的小学妹 提交于 2019-12-02 11:09:06
The script I want to use in my environment is stated below, it is a .vbs script. I was wondering if it is possible to add a company logo to the pop-up box? If it is possible how would I do it? Also added is a picture (screen shot) of the results of the script as is... The script works great, I just need to know about the logo part. Due note that the logo will be a simple .jpg file and I am hoping I can add the company logo above the popup box instead of imbedded, something like: Company logo msgbox Results of the script '========================================== ' Check for password expiring

How to set ActionBar logo to Text (TextView)?

泪湿孤枕 提交于 2019-11-30 22:13:59
I've been trying to make the ActionBar logo, or the Up button, a text instead of an image. actionbar.setLogo(); accepts only a drawable resource. Inflating a layout with a TextView didn't do the trick. Basically, what I'm trying to accomplish is this: The first one is from the new DeskClock app from Android 4.2 and the second is from the Contacts app. I checked the code in GitHub but I couldn't find anything. Here is an implementation of @CommonsWare's option #1, works perfectly. TextView upTextView = (TextView) getLayoutInflater().inflate( R.layout.up_text, null); upTextView.setText("CITIES")

How to set ActionBar logo to Text (TextView)?

▼魔方 西西 提交于 2019-11-30 17:40:31
问题 I've been trying to make the ActionBar logo, or the Up button, a text instead of an image. actionbar.setLogo(); accepts only a drawable resource. Inflating a layout with a TextView didn't do the trick. Basically, what I'm trying to accomplish is this: The first one is from the new DeskClock app from Android 4.2 and the second is from the Contacts app. I checked the code in GitHub but I couldn't find anything. 回答1: Here is an implementation of @CommonsWare's option #1, works perfectly.

Actionbar Logo size?

拥有回忆 提交于 2019-11-29 20:18:31
In the Google I/O 2012 Android App an actionbar logo is used instead of the normal app icon. In the open source project I could find the image which is 340x72 and present only in this dimension. I searched if there is some specified size for using a logo in the actionbar, but I did not find anything. Do you know something about this? I looked into the resources of the YouTube app, since that seems to be the only official Google app (besides I/O) that uses an action bar logo at the moment. It contains three drawables for the logo: drawable- mdpi /ic_logo_wide.png (75 x 32 px) drawable- hdpi /ic