ng-repeat. Example Now we will do a filter Search Filter In the above example if we want to search by country we will modify the code like below will search in country fields of the employees only and the boolean value from the checkbox will look for the exact match from the checkbox. Complete Example
Transparency in a background of a View in android can be achieved in two ways. 1. By providing a transparent image. 2. By providing an XML that has as shape with end, starting and middle color. This is a sample XML that creates a transparency. bg_gradiant.xml Note : By Simply providing a color doesn’t creates… Read More »
This sample application does that. First create an xml for your notification. custom_notification.xml Now the java code.
Hello all…… I have written a lost of posts on Listviews. You can see that by just searching Listviews in my site. Today I will show you how to create a slide out animation while we delete a row from a ListView. So this is the xml that contains the ListView. Let it be in… Read More »
Hello all………. We have seen many posts about ListViews like creating a listview, adding data to it, customizing a listview etc. Take a look at some of these examples 1. Single Selection ListView in android 2. Flitering a ListView using an input from an EditText in Android. 3. How to create a custom ListView in… Read More »
Hello all….. In today’s post I will show you how to create a single selection list in android. Here is the main.xml Now this line in the java file creates the single choice. setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_single_choice, android.R.id.text1, names)); Now this is the full java code
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.
Merging layout is an excellent feature in android. Separate xml can be included in a single xml. For this first i create a main.xml file In the bottom you can see that i have included a xml file named footer2button.xml The Merged layout will be like this