How to use RecyclerView with CardView using Fragment
20 هزار بار بازدید -
7 سال پیش
-
How to use RecyclerView with
How to use RecyclerView with CardView using Fragment ?
----------RecyclerView-------------
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.
--------CardView-------------
CardView extends the FrameLayout class and lets you show information inside cards that have a consistent look across the platform. CardView widgets can have shadows and rounded corners.
-----------Fragments---------------
A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity" that you can reuse in different activities).
--------------API Reference--------------------
RecyclerView :-
https://developer.android.com/referen...
-----------CardView--------------
https://developer.android.com/referen...
-----------Fragments-----------------
https://developer.android.com/guide/c...
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.
CardView extends the FrameLayout class and lets you show information inside cards that have a consistent look across the platform. CardView widgets can have shadows and rounded corners.
A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity" that you can reuse in different activities).
RecyclerView :-
https://developer.android.com/referen...
https://developer.android.com/referen...
https://developer.android.com/guide/c...
7 سال پیش
در تاریخ 1396/06/16 منتشر شده
است.
20,023
بـار بازدید شده