skip to Main Content

Android studio how to use one recycleview for more than one view?

I have a search fragment which allow users to search for both users and posts. Here is the XML: <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/search_bar" android:background="@drawable/white_rounded" android:hint="Search for users or recipes ..." android:drawableEnd="@drawable/ic_search" android:maxLines="1" android:inputType="textFilter" android:layout_margin="10dp" android:singleLine="true" android:lines="1" android:layout_marginStart="25dp" android:layout_marginLeft="10dp"/> <!-- android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"…

VIEW QUESTION
Back To Top
Search