icons

Access file type icons Mac OSX

a 夏天 提交于 2019-12-24 04:25:05
问题 I am trying to find a way to access the Mac OSX system icons. Does anyone know their default location on a Mac? Or know of a way using Java to have them returned? There is a method of using JFileChooser for Mac to retrieve an Icon for a file, but the file has to exist on the file system (in my app the file could be streaming from a server so short of creating a dummy file on the system with that extension it wont work). I can access them on Windows in the following way using SWT (but this

Show folder icon in a listview

爷,独闯天下 提交于 2019-12-24 01:09:46
问题 I've managed to display icons for files in a listview using a shell32 extraction, but when do it with folders, the icon doesn't seem to show. how could It be? This is my Shell Extraction code: ' declare the Win32 API function SHGetFileInfo' Public Declare Auto Function SHGetFileInfo Lib "shell32.dll" (ByVal pszPath As String, ByVal dwFileAttributes As Integer, ByRef psfi As SHFILEINFO, ByVal cbFileInfo As Integer, ByVal uFlags As Integer) As IntPtr ' declare some constants that SHGetFileInfo

Overlay a play icon on top of thumbnail with css

瘦欲@ 提交于 2019-12-24 00:56:42
问题 I trying to overlay a play icon on top of thumbnail with css, but not successful. <ul class="thumb-grid"> <li class="play-icon"><img src="image.url"/></li> </ul> You can see the icon when hovering but can't get the icon to go on top of the thumbnail. Does anyone know how? Here is the Fiddle 回答1: Use a pseudo element and change the position style. To preserve your hovering effect you can attach the :hover selector to the list item and target the img inside: html, body { margin: 0; padding: 0;

Android Studio Launcher icon is black

喜欢而已 提交于 2019-12-23 23:59:00
问题 I made an image in photoshop for my application, but when I go to add a new Image Asset , the icon is black. Here is an example In the previous version from Android Studio launcher icons had the real color. Is it a bug? 回答1: It could be the format of the image, have you looked at the Android Api and made sure it meets the specs? 来源: https://stackoverflow.com/questions/37822615/android-studio-launcher-icon-is-black

Two shortcut with Two Icons for the same App

回眸只為那壹抹淺笑 提交于 2019-12-23 23:43:28
问题 So , i want to have an additional Shortcut with another Icon for the same App , this additional Shortcut , Visible in App Drawer , should launch a Simple Activity/Service , it is Possible , If yes How ? If Possible , Programmaticly , Does its matter with < application > Tag ? , Thanks 回答1: Of course you can have two or more launcher activities in your application. Just set an intent filter with launch attributes. <activity android:name=".SecondActivity" android:icon="@drawable/ic_second

Setting Wix icon when advertise is set to no

别等时光非礼了梦想. 提交于 2019-12-23 23:09:39
问题 Seems like I'm forever asking questions about Wix. This should be the last, and it's just a polishing one. I'm wanting my associated files to have an icon to go with them, but in my ProgId element, the advertise is not specified which I assume defaults to no. Therefore in the wix documentation, it states: For an advertised ProgId, the Id of an Icon element. For a non-advertised ProgId, this is the Id of a file containing an icon resource. I'm not understanding how this works at all. Do I set

JTree nodes won't get visually selected

馋奶兔 提交于 2019-12-23 19:24:21
问题 Somehow I am not able to enable a "select highlight" for my JTree nodes. I am working with a custom cell renderer in my project (which most likely causes this problem). This is the full renderer class code: protected class ProfessionTreeCellRenderer extends DefaultTreeCellRenderer { private final JLabel label; public ProfessionTreeCellRenderer() { label = new JLabel(); setBackgroundSelectionColor(Color.BLUE); setOpaque(true); } @Override public Component getTreeCellRendererComponent(JTree

how to disable notification small icon?

∥☆過路亽.° 提交于 2019-12-23 17:31:46
问题 How to disable or hide notification small icon ? I know it is mandatory but I want to hide or remove small icon and just show large icon. Notification.Builder builder = new Notification.Builder(FcmIntentService.this).setSmallIcon(R.drawable.notification_small_icon_transparent); NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(11, builder.build()); i want something like this google plus notification: 回答1:

How can I check the status bar colour in Android?

爷,独闯天下 提交于 2019-12-23 16:27:18
问题 How can I check the status bar colour in Android? Why do I need to check this? I have created my status bar icons as per the design guidelines however on some devices (Samsung Galaxy S) the status bar is black and it is running Android 2.1. The recommendations for the status bar icons look great on Android 2.3 (Nexus S) and within the emulator (earlier Android 2.1) with the default light grey status bar. However the black icons that are recommended for pre-2.3 don't look clear on the Samsung

Android: How can I change icons size in Action Bar Tabs?

五迷三道 提交于 2019-12-23 16:14:16
问题 I created an Action Bar Tabs activity for my project. I used 3 tabs and I added some icons. But the icons are shown in a small size, even if I downloaded them in 48dp. My code is: <android.support.design.widget.TabLayout android:id="@+id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" /> final private int[] tabIcons = { R.drawable.ic_photo_library, R.drawable.ic_chat, R.drawable.ic_people }; private void setupTabsIcons() { tabLayout.getTabAt(0).setIcon(tabIcons