android-icons

How to change the icon of an Android app in Eclipse?

喜夏-厌秋 提交于 2019-11-28 02:36:40
I am developing an app using Eclipse IDE Juno and Android SDK. How do I change my app's icon? Rob R. Go into your AndroidManifest.xml file Click on the Application Tab Find the Text Box Labelled "Icon" Then click the "Browse" button at the end of the text box Click the Button Labelled: "Create New Icon..." Create your icon Click Finish Click "Yes to All" if you already have the icon set to something else. Enjoy using a gui rather then messing with an image editor! Hope this helps! In your AndroidManifest.xml file <application android:name="ApplicationClass" android:icon="@drawable/ic_launcher"

Action bar icon size in Android 4.2

放肆的年华 提交于 2019-11-27 19:55:43
Has the action bar icon size changed in Android 4.2 ? I've had a 120x48px HDPI icon that was rendered perfectly in Android 4.1 and below. It still is. However, on any 4.2 device, it is squelched to fit as 48x48px from what I can see. Or something like that; it's definitely a square. Any ideas ? Thanks ! So, I found an answer, it's kinda hacky but works (TM): The general idea is to listen for the layout changes and apply new bounds to the drawables. This could look like this: public static void updateActionBar(final Activity activity) { if (Build.VERSION.SDK_INT >= 17) { try { final View

Android status bar expects icons of size 25x25dp while guidelines recommend 32x32dp. Who is wrong?

感情迁移 提交于 2019-11-27 18:09:08
According to android icon design guidelines ( here , see table #1), developer needs to provide status bar icons of next sizes: Status Bar 24 x 24 px (LDPI) 32 x 32 px (MDPI) 48 x 48 px (HDPI) While my measurements show that status bar always has 25 dp in height and expects icons of 25x25dp. This translates to these sizes: Status Bar 19 x 19 px (LDPI) 25 x 25 px (MDPI) 38 x 38 px (HDPI) Here is how I get those size: 25dp * 0.75 = 18.75 => 19px (LDPI) 25dp * 1 = 25 => 25px (MDPI) 25dp * 1.5 = 37.5 => 38px (HDPI) I have confirmed calculated sizes on several Android phones and on emulators. The

How to change color of CompoundDrawable on Button?

白昼怎懂夜的黑 提交于 2019-11-27 16:57:25
问题 I am trying to figure out how to change the color of icon which is in drawable left of button. Below is the XML code I am using : <Button android:layout_width="wrap_content" android:layout_height="20dp" android:layout_toRightOf="@+id/student_images" android:drawableLeft="@mipmap/ic_email_black_18dp" android:text=" myemail@gmail.com " android:layout_below="@+id/email" android:background="#00000000" android:layout_marginBottom="20dp" android:fontFamily="sans-serif" android:textColor="@color

How to provide different launcher icon per product flavour

随声附和 提交于 2019-11-27 14:27:32
问题 I have a project defined by build.gradle file buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.6' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jar') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['resources'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'

Toolbar icon tinting on Android

你。 提交于 2019-11-27 12:45:24
问题 I've noticed that using AppCompat themes, default toolbar icons get tinted by the attribute colorControlNormal in my style. <style name="MyTheme" parent="Theme.AppCompat"> <item name="colorControlNormal">@color/yellow</item> </style> As you can see above, however, it does not happen with all icons. I provided the "plus" sign, which I got from the official icons, and it does not get tinted (I used the "white" version of the png). From what I have understood from this question, system tints

Add Icons to SlidingTabLayout instead of Text

☆樱花仙子☆ 提交于 2019-11-27 12:26:29
I'm implementing a SlidingTabLayout in my android application. What my query is that I'd like to implement icons in my Sliding Tabs instead of texts for navigation. I searched heavily on the internet for any such tutorial or sample but found none. I also searched a previous question on stackoverflow: Over Here - SlidingTabLayout with Icons . It was slightly informative but didn't really help me out. To be clear. I require my tabs to consist of icons only . No text. As I am new to this whole setup, I'd appreciate if you'd post proper code with an explanation. Thank you for your time and effort!

What's the correct size icon for drawable-xxhdpi?

不羁的心 提交于 2019-11-27 10:05:55
As we know, the correct sized icon: * drawable-ldpi (120 dpi, Low density screen) - 36px x 36px * drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px * drawable-hdpi (240 dpi, High density screen) - 72px x 72px * drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px On Jelly Bean, drawable-xxhdpi can be supported. So what's the correct size icon? MDPI: 48x48 HDPI: 72x72 XHDPI: 96x96 XXHDPI: 144x144 XXXHDPI: 192x192 to create an icon for different densities, you should follow the 2:3:4:6:8 scaling ratio between the five primary densities (medium, high, x-high, xx-high, and

How to change the icon of an Android app in Eclipse?

柔情痞子 提交于 2019-11-27 04:56:05
问题 I am developing an app using Eclipse IDE Juno and Android SDK. How do I change my app's icon? 回答1: Go into your AndroidManifest.xml file Click on the Application Tab Find the Text Box Labelled "Icon" Then click the "Browse" button at the end of the text box Click the Button Labelled: "Create New Icon..." Create your icon Click Finish Click "Yes to All" if you already have the icon set to something else. Enjoy using a gui rather then messing with an image editor! Hope this helps! 回答2: In your

Action bar icon size in Android 4.2

谁都会走 提交于 2019-11-27 04:24:04
问题 Has the action bar icon size changed in Android 4.2 ? I've had a 120x48px HDPI icon that was rendered perfectly in Android 4.1 and below. It still is. However, on any 4.2 device, it is squelched to fit as 48x48px from what I can see. Or something like that; it's definitely a square. Any ideas ? Thanks ! 回答1: So, I found an answer, it's kinda hacky but works (TM): The general idea is to listen for the layout changes and apply new bounds to the drawables. This could look like this: public