icons

How to Change a Button's Icon Programmatically?

坚强是说给别人听的谎言 提交于 2019-12-18 04:32:39
问题 I already have the button: <Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:drawableLeft="@drawable/empty" android:id="@+id/buttonMyText" android:text=" myText" android:textSize="20px" android:gravity="left"> </Button> I have the "empty" icon show on the button when the program starts. What I want to do is change the button's icon automatically from my code (low, medium and high) based on user inputs I tried: Button myButton = bla... bla... bla... But I

Several problems with icons during Chrome Extension development

隐身守侯 提交于 2019-12-18 04:21:58
问题 It's very strange. 1 problem If I add this icon declaration to my manifest: "icons": { "16": "images/icon16.png", "48": "images/icon48.png", "128": "images/icon128.png" }, Then, when I add Extension through "Load unpacked extensions ... " it doesn't show logo But if you try to delete it, it does show AND! If I delete "48" line from manifect, it starts showing it right away. Maybe it's because I use Chrome Beta (Version 28.0.1500.20 beta) or maybe because I do something wrong. Seconds problem

google chrome extension canvas icon

我们两清 提交于 2019-12-18 04:20:54
问题 I am trying to set the extension icon to a canvas image. I can't seem to get it to set. I just want to get the basics working and expand from there. I can set the icon with an image in the file structure but I want to be able to dynamically update the text later. I tried a few ways to get chrome.browserAction.setIcon to set to no avail. I hope it is not something simple I am missing. Thanks //chrome.browserAction.setIcon({imageData: draw()}); draw(); function draw() { var canvas = document

Get the unicode icon value from a custom font

独自空忆成欢 提交于 2019-12-18 04:17:22
问题 I need to write a CSS for an icon font build using the site flaticon. I develop using a MAC with 10.10 and can't find any way to retrieve a single character Unicode value that I need to insert inside my CSS .font-icon-pencil:before { content: "\e038"; } How can I read the contents of a font file, to get the icon codes within that custom-made font? 回答1: On MacOS Sierra I'm able to get a unicode value of icon in Font Book (default app). Install the font. Open the user installed font in Font

Save Icon File To Hard Drive

会有一股神秘感。 提交于 2019-12-18 03:35:11
问题 I know that this must be incredibly easy - It's unbelievable how long I have searched for an answer to this question based on how simple it is in VB6. I simply want to extract an Icon from an EXE File using Icon.ExtractAssociatedIcon, and then save this icon file to my hard drive. So, here is what I have, and I will also show you what I have tried so you don't think I'm being lazy. OpenFileDialog ofd = new OpenFileDialog(); ofd.ShowDialog(); string s = Environment.GetFolderPath(Environment

Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels [duplicate]

半世苍凉 提交于 2019-12-18 01:32:54
问题 This question already has answers here : 'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format' (16 answers) Closed 5 years ago . I was trying to update my app in Appstore and I have started to receive this failure message. I checked over the internet for any solution, but none of them work. I have not changed my icons so this failure should not appear at all. I have checked the plist file, but always the

Embed icon in python script

最后都变了- 提交于 2019-12-18 00:49:23
问题 Does anybody know a way to embed an icon in a Python script such that when I create my standalone executable (using pyinstaller) I don't need to include the .ico file? I know this is possible with py2exe, but in my case I have to use Pyinstaller, as I was not successful using the former. I am using Tkinter. I know about iconbitmap(iconName.ico) but that doesn't work if I wanna make a onefile executable. 回答1: Actually the function iconbitmap can only receive a filename as argument, so there

Add Context Menu Icon in android

两盒软妹~` 提交于 2019-12-17 23:27:41
问题 I have a Listview with a ContextMenu, but when I setIcon for ContextMenu look like it doesn't work public void onCreateContextMenu(ContextMenu menu , View v, ContextMenuInfo menuInfo){ super.onCreateContextMenu(menu, v, menuInfo); menu.add(0, DELETE_ID, 0, R.string.context_menu_favorite) .setIcon(android.R.drawable.btn_star); } 回答1: Context menus do not support icons. Note: Context menu items do not support icons or shortcut keys. 回答2: This library allows you to have a context menu

Set same icon for all my Forms

安稳与你 提交于 2019-12-17 23:09:38
问题 Is there any way to set the same icon to all my forms without having to change one by one? Something like when you setup GlobalAssemblyInfo for all your projects inside your solution. 回答1: One option would be to inherit from a common base-Form that sets the Icon in the constructor (presumably from a resx). Another option might be PostSharp - it seems like it should be possible to do this (set .Icon) via AOP; not trivial, though. Finally, you could use a simple utility method (perhaps an

Android App Development: Two icons getting created and I only need one

与世无争的帅哥 提交于 2019-12-17 22:44:34
问题 I am writing an Android App that has one main activity and one subactivity. When I install the app on my phone to test it out, I get two icons instead of one. The first icon is for the main activity and the second is for the subactivity. I don't want/need an icon for the subactivity. Does anyone know how to turn this off in my app code, so that only the icon for the main activity is installed? Any information you can provide is greatly appreciated! Thanks, MobiKnow 回答1: Does your application