icons

Changing options menu icon in actionbar depending on an open Fragment

不羁的心 提交于 2019-12-10 01:08:39
问题 I have this item in my options menu: <item android:id="@+id/opt_mnu_action" android:icon="@android:drawable/ic_dialog_info" android:orderInCategory="1" android:showAsAction="ifRoom" android:title="New"> </item> The menu itself created in main FragmentActivity. I want to change this item's icon programmatically depending on the open Fragment and, obviously, have different actions when the user hits this button. I tried several things to do that, but nothing worked. The last thing I tried was

clear icon cache in win 7 programmatically - execute ie4uinit.exe-ClearIconCache using C# or Visual Basic

假如想象 提交于 2019-12-09 19:29:36
问题 We changed the logo-icon of our WPF application, and then the icon of the main executable. On my PC with Win 7, there is a problem with the refresh of the icon cache: the desktop shortcut to the main executable, and the preview of the icon of the executable, in Windows Explorer still shows the old icon. Even restarting the system the problem persists. I found that running this command solves the problem: ie4uinit.exe-ClearIconCache My problem is that I can't run it from code. I made two

A Custom Tab bar with two images in each tab using react navigation?

不想你离开。 提交于 2019-12-09 17:38:56
问题 I am creating an app using React Native for ios. Instead of having an active tintColor I want to have two little triangles (another image/icon) which appears when you are on the selected tab. It is important that the center y axis of the triangles is = to the y axis of the bottom of the tabbar image and that the tab icon is in the center of the triangles as seen below. At the moment I have the tab bar, the icons and navigation working - I just don't know how to make the triangles appear: ICON

Setting Alternate App Icon returns error 3072: “The operation was cancelled” in iOS 10.3

南楼画角 提交于 2019-12-09 17:05:10
问题 I am trying to set the alternate icons for my app in iOS 10.3 , but every time I call the method Xcode returns: Error Domain=NSCocoaErrorDomain Code=3072 "The operation was cancelled." I am using @KlimczakM's answer from this post to set the icon (the specifyIcon method called below) but I am using my own method to load the preferred icon from settings: let iconSetting = userDefaults.string(forKey: "appIconSetting") print("The icon setting is: \(iconSetting ?? "error getting appIconSetting.")

cmake: set icon for a Mac OS X app

心不动则不痛 提交于 2019-12-09 16:21:52
问题 Installing a Mac OS X app using cmake environment, I want to set and install the icon in the process of installation. Therefore, I try to set set( MACOSX_BUNDLE_ICON_FILE ${CMAKE_CURRENT_SOURCE_DIR}/images/myAopImage.icns ) ADD_EXECUTABLE(MYAPP MACOSX_BUNDLE ${MACOSX_BUNDLE_ICON_FILE} ${allSources}) #(I could set it in the source directory to any other path) However, this does not work, it writes the complete path into the Info.plist, and installs nothing into the Resources directory (the

How to determine the size of an icon from a HICON?

谁都会走 提交于 2019-12-09 14:30:49
问题 I have an icon identified by an HICON handle that I want to draw centered on a custom control. How do I determine the size of the icon so that I can calculate the correct drawing position? 回答1: The Win32 GetIconInfo call will return, as part of its response, the icon's source bitmap. You can get the icon image size from this. Dim IconInf As IconInfo Dim BMInf As Bitmap If (GetIconInfo(hIcon, IconInf)) Then If (IconInf.hbmColor) Then ' Icon has colour plane If (GetObject(IconInf.hbmColor, Len

Favicon for all the pages in my website

南楼画角 提交于 2019-12-09 14:19:38
问题 I've learned that the way to add favicon for a web page is to have the following lines in the page. <link rel="SHORTCUT ICON" type="image/x-icon" href="http://mysite.com/faviconfilename.ico"/> <link rel="icon" type="image/x-icon" href="http://mysite.com/faviconfilename.ico" /> Should i add this code in each and every page my site has?? I use Apache - tomcat clustering to serve pages. Is there any other easy way to do this? 回答1: It is usually enough to place a file called "favicon.ico" in the

JavaFX native bundle icon OS X

大兔子大兔子 提交于 2019-12-09 13:36:40
问题 I'm trying to create a native OS X app bundle for a JavaFX app using IntelliJ IDEA 14. I have set up an "Artifact" with the native bundle option set to dmg. This does create a native bundle, but I cannot seem to find a way to change the application icon. How should I go about achieving this? I have tried placing it in the following directories based on other answers: src/main/deploy/packages/macosx/project_name.icns src/project_package_path/deploy/packages/project_name.icns I cannot seem to

Delphi - Populate an imagelist with icons at runtime 'destroys' transparency

回眸只為那壹抹淺笑 提交于 2019-12-09 12:36:24
问题 I've spended hours for this (simple) one and don't find a solution :/ I'm using D7 and the TImageList. The ImageList is assigned to a toolbar. When I populate the ImageList at designtime, the icons (with partial transparency) are looking fine. But I need to populate it at runtime, and when I do this the icons are looking pretty shitty - complete loose of the partial transparency. I just tried to load the icons from a .res file - with the same result. I've tried third party image lists also

“Prerendered Icon Flag: true” in submitted iPhone app binary details, but icon shown with glossy effect in store [closed]

萝らか妹 提交于 2019-12-09 11:40:52
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 8 years ago . "Icon already includes gloss effects" is set to YES in plist file. It worked for iPhone app 1.0 version. The same plist file without any modifications, 1