Tag Archives: OnItemClickListener

Filtering a RecyclerView with Custom Objects.

By | February 12, 2017

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… Read More »

RecyclerView Simple Example in Android.

By | January 16, 2017

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… Read More »

Navigation Drawer Example in Android.

By | February 12, 2016

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… Read More »

How to create a Slide from Left animation while deleting a row from a ListView in Android?

By | September 13, 2012

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 »

Creating a custom Sliding GalleryView with Paging in android

By | June 17, 2012

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… Read More »

A Simple Layout with two listViews.

By | April 24, 2012

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.

Parsing an XML from Online in Android

By | April 21, 2012

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… Read More »

How to create a scrolling ListView in android?

By | June 4, 2012

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… Read More »