Tag Archives: image

3,541 views

How to create icon for Android apps

First cteate big icon 512×512 px formtat .PGN in graphics editor as Photoshop, Gimp, Piant.NET and save image. If you create new project via Eclipse and choice your 512×512 image for ic_launcher. Eclipse will make all icons from this image … Continue reading

Posted in Android Examples Code, Bitmap, drawing | Tagged , | Comments Off on How to create icon for Android apps
14,477 views

Resize ImageView Image in View Android Example

How to resize an image in ImageView Android source code. Resize imageview layout and image will resize too: public void resizeImageView(int width, int height) { final ImageView picture1 = (ImageView)findViewById(R.id.imageView1); LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(width, height); picture1.setLayoutParams(layoutParams); }

Posted in Android Examples Code, Bitmap, drawing | Tagged , , | Comments Off on Resize ImageView Image in View Android Example
8,202 views

ImageView Android example

ImageView basic Android sample. ImagView using image formats like this PNG, JPG, GIF and etc. Images is stored in res/drawable folder. Application’s icons in: drawable-hdpi drawable-ldpi drawable-mdpi main.xml Put into res/drawable this image:   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" … Continue reading

Posted in Android Software Download | Tagged , | Comments Off on ImageView Android example
4,412 views

Download file from URL

Download image file from URL to ImageView Java Android source example code. Context context = thisClass.this; Drawable image = ImageOperations(context, "http://android.okhelp.cz/images/adictionary/ad_4.png" ,"image.jpg"); ImageView imgView; imgView = (ImageView)findViewById(R.id.idImageView); imgView.setImageDrawable(image);   private Drawable ImageOperations(Context ctx, String url, String saveFilename) { try { … Continue reading

Posted in Android Examples Code, Bitmap, drawing | Tagged , , , , , , , , | Comments Off on Download file from URL