Fri Nov 30 11:02:44 PST 2018


Image



Hi guys, It's been a longtime, herewith I came up with a RecyclerView example, I hope you enjoy this blog too.



 RecyclerView is just an advance for ListView. Hereafter you can use RecyclerView instead of ListView. RecyclerView can do all works performed by ListView. And also RecyclerView is more flexible with large data set. In this blog you can learn how to create a simple RecyclerView and also adapter for this RecyclerView. You can create RecyclerView by using appcompat-v7 support jar.



Code:




MainActivity.java



import android.support.annotation.Nullable; import android.support.v7.app.ActionBarActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v4.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import java.util.List; public class?



Comments

Popular posts from this blog

termux vnc viewer setup

../Settings.jpg

me.html