image

Android ImageView ScaleType Example

Android ImageView ScaleType is to used set options for scaling the bounds of an image to the bounds of this view.
ImageView ScaleType is used when we get image from online and show it to user in proper size using scaleType fit_XY or some other type.

Default View:

Android Set Image as Wallpaper

Going to see about how to set a image as wallpaper in 2 line of code in android.

Android Image Rotate Example

In android, we can rotate the image using matrix post rotate.
Example for Android Image Rotate :-

[sourcecode language="xml"]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="#ffffff"
android:gravity="center">
<ImageView android:id="@+id/ImageView01"
android:layout_width="

Android Layout Background Image

Now we are going to see about android layout background image. Also you can check our previous post about the android layout background color.

In android, we can set a image to layout as background by using background property in layout.

Android Button Drawable

In Android, by using Android button drawable we can set text position to be below, top, right or left of the button.

Android Widgets Button Image

Android Button Background Image Example:-

We can set the Background image for a button by using the button property 'android:background'.

Syndicate content