Tag Archives: wrap_content

Custom SeekBar in Android With Labels in Bottom.

By | January 16, 2017

In this article I will be making a SeekBar as shown in the below screenshot. CustomSeekBar Class We will create a custom class for creating the custom Seekbar. I named it “CustomSeekBar.java” Usage Here is the layout. This is how you use it in your Activity. You are adding the CustomSeekbar to a LinearLayout. So… Read More »

Multiple Selection GridView in Android

By | April 27, 2013

This is a simple post that helps you to do multiple selection in a ListView. Check out previous posts for 3D animation in a Listview. At first we will see the XML layout file. This layout contains a gridview since we are dealing with it only. grid_1.xml Now the MainActivity that does all the work… Read More »

How to create a custom layout for your camera in Android?

By | July 10, 2013

Hello everyone, Today’s example shows how to create a custom layout for your camera preview, that is if you want a custom layout while your camera is opening. This example helps you to achieve this. First create a fresh project and name it CameraCustomLayout and copy this code to CameraCustomLayout.java file. After that create an… Read More »

How to use shapes in android? A simple example.

By | June 4, 2012

In android with shapes we can create beautiful layouts. Lets look at an example. Create an xml named “gradient.xml” in your drawable folder and copy this code into it. Now the main layout file main.xml The main java file. Done. You can now run the application.