This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <layout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <LinearLayout | |
| android:id="@+id/llHeader" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:background="@color/black" | |
| android:orientation="vertical"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <layout xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical"> | |
| <androidx.recyclerview.widget.RecyclerView | |
| android:id="@+id/myRecyclerView" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GenericAdapter myAdapter = new GenericAdapter<>(stringList, R.layout.row_list_child_item, | |
| new GenericRecyclerCallBack<RowListChildItemBinding, String>() { | |
| *//** | |
| * @param binding viewBinding of a row in a recycler view | |
| * @param item object of a row in a recycler view | |
| * @param allItem list of all items in a recycler view | |
| * @param itemPosition position of an item in a recycler view | |
| *//* | |
| @Override | |
| public void bindData(RowListChildItemBinding binding, String item, List<String> allItem, int itemPosition) { |