Tag Archives: ImageView
Simple Image Scaling Demo in Android
Simplest Lazy Loading ListView Example in Android with data populated from a MySQL database using php.
Hello all… You may have seen many implementations of Lazy Loading ListView. Today I will show you my method to create Lazy Loading ListViews. I dont know whether it can be any more simple than this. In this I am using AsyncTask to download each image. So we will start. Here we have 6 classes. 1. MainPage –… Read More »
How will you create a custom Notification in Android with a custom Layout?
Creating a custom Sliding GalleryView with Paging in android
This is a simple example showing A sliding Gallery in android. This example shows a sliding gallery with a paging Control and a changing page text which also indicate the page change. Create a new project named “SlidingGallery” and copy this code into “SlidingGalleryDemo.java“. My Activity name is “SlidingGalleryDemo.java” here. Now create a new class and name it… Read More »
Select an Image from gallery in ANDROID and show in an ImageView.
Hi all In this tutorial I will show you how to get an image from your phone gallery and show it in an imageview.Here we use intents to open up the image gallery and get the image URI. Demo Watch Video Tutorial Steps : Ask storage permission from the user if the app runs on… Read More »
Custom Alert in android.
We can create any type of alert in android. Today I will show a simple example showing how to create a custom alert in android. i.e you can provide any layout to your alert dialog. Now we will start. First create an xml for your alert dialog. Here I am creating an xml that contains a textView, an… Read More »
Image transition animation in Android
Hello all… I have shown a lot of examples of animations in android. Today I will show you how to show an image transition animation between two images. For that you have to create an xml named “expand_collapse.xml” inside the res/drawable folder. The contents of “expand_collapse.xml” are Now in the main.xml place an imageView to show the transition… Read More »
How to change the Opacity of an image in android?
Android frame Animation
A series of frames is drawn one after the other at regular intervals. For this create a xml which contains ImageView for showing the animation The main java file is Next the main part, an xml which holds each image and duration in which each image shows. The xml should be placed inside drawable folder When i click… Read More »
Android listView with icons
In this post, we will have a list whose rows are made up of image, Here we just supply data to the adapter and helping the adapter to create a View objects for each row The output will be For this first create a xml file to hold the listview The next objective is to create the xml… Read More »
Dynamically Load images in ANDROID? OR Load image in ANDROID using a string path.
With the following code you can load images in your drawable folder dynamically by giving the filename as a String. For that you have to use getResources().getIdentifier which has parameters as the “path”,”drawable” and the “package name”. This returns a unique resource ID which can be used to set the image for a ImageView using imageView.setImageResource(imgID);