This demo will show you how you can filter a RecyclerView with your Custom Objects. If you are new to RecyclerView, then please go through this post to get a glance. Check out the Demo Video ( 7 seconds) Here I am using a CustomClass called “ListItem” which has three members. ListItem MainActivity We have added around 10000… Read More »
The RecyclerView widget is a more advanced and flexible version of ListView. This widget is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited number of views. Use the RecyclerView widget when you have data collections whose elements change at runtime based on user action or network events. You can… Read More »
Navigation Drawer The navigation drawer is a panel that transitions in from the left edge of the screen and displays the app’s main navigation options. Displaying the navigation drawer Creating a Navigation Drawer The user can bring the navigation drawer onto the screen by swiping from the left edge of the screen or by touching the application icon… Read More »
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 the main.xml main.xml… Read More »
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 »
Here is a simple example to show two listviews horizintally in android. here is the java code that sets up the list. Here is the main.xml file. Here is the layout for each row in the list . Here is the complete source code for this example.
In the previous example I showed how to parse an xml that is stored in a file in res/xml folder. In this post I will show you how to parse an xml that is stored in a server in an xml file. Here I am using an xml that is stored in here Here is the java code… Read More »
ListView is like a tableView in iPhone or iOS . In this example i will show you how to add a String Array in to the ListView and also make the listView Scrollable. First the xml file . Here the line android:scrollbars=”vertical” will make the scrolling vertically Now the java file The screen will be like this Here… Read More »