Outil : https://romannurik.github.io/AndroidAssetStudio/index.html
Pour créer et redimentionner des icones et autre : http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html
For those of you who want to resize the GIF simply find the line where it says Canvas.drawBitmap(b, 0, 0, new Paint());
then add the following line above that Bitmap b=Bitmap.createScaledBitmap(bmb, 400, 400, false); 400 and 400 are the scaled size.
c.drawColor (Color.BLACK);
Paint paint = new Paint();
paint.setColor(Color.YELLOW);
paint.setTextSize(100);
c.drawText(« FIN », 100, 100, paint);
Pour les dessins d’icônes : http://developer.android.com/design/style/iconography.html et http://androiddrawableexplorer.appspot.com/
http://www.designshock.com/the-most-complete-android-style-icon-set-15000-icons/
You can use simple color resources, specified usually inside res/values/colors.xml
.
<color name="red">#ffff0000</color>
and use this via android:background="@color/red"
. This color can be used anywhere else too, e.g. as a text color. Reference it in XML the same way, or get it in code viagetResources().getColor(R.color.red)
.
Pour supprimer l’affichage d’un bouton : button.setVisibility(View.GONE);
You can also use any drawable resource as a background, useandroid:background="@drawable/mydrawable"
for this (that means 9patch drawables, normal bitmaps, shape drawables, ..).
Exemple de fichier colors.xml :
<resources> <color name="red">#FF0000</color> <color name="white">#FFFFFF</color> <color name="black">#000000</color> </resources>
Autres outils :
http://www.android4devs.com/2014/07/5-tools-every-android-developer-must.html
Votre commentaire