diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-02-23 04:04:16 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-02-23 04:04:16 +0000 |
commit | b1db59fda2031cc43da6663144998f457ffc4f97 (patch) | |
tree | 6d5058cc345b0e6ed2955677a6d696bc4aa8b2a2 /app/src/main/res/layout | |
parent | 3fa6969b750cb0effa7b134e8b7a198f36692637 (diff) | |
download | infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.tar infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.tar.gz infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.tar.bz2 infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.tar.lz infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.tar.xz infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.tar.zst infinity-for-reddit-b1db59fda2031cc43da6663144998f457ffc4f97.zip |
Add a feature: Search for users. Change some names of interfaces and methods.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/fragment_user_listing.xml | 47 | ||||
-rw-r--r-- | app/src/main/res/layout/item_user_listing.xml | 48 |
2 files changed, 95 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_user_listing.xml b/app/src/main/res/layout/fragment_user_listing.xml new file mode 100644 index 00000000..b69ed7ae --- /dev/null +++ b/app/src/main/res/layout/fragment_user_listing.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/coordinator_layout_user_listing_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" + tools:context=".UserListingFragment"> + + <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar + android:id="@+id/progress_bar_user_listing_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:layout_marginBottom="16dp" + app:mlpb_progress_stoke_width="3dp" + app:mlpb_progress_color="@color/colorAccent" + android:layout_gravity="center_horizontal"/> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_user_listing_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <LinearLayout + android:id="@+id/fetch_user_listing_info_linear_layout_user_listing_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical" + android:visibility="gone"> + + <ImageView + android:id="@+id/fetch_user_listing_info_image_view_user_listing_fragment" + android:layout_width="150dp" + android:layout_height="wrap_content" /> + + <TextView + android:id="@+id/fetch_user_listing_info_text_view_user_listing_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:gravity="center" /> + + </LinearLayout> + +</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_user_listing.xml b/app/src/main/res/layout/item_user_listing.xml new file mode 100644 index 00000000..24ba6102 --- /dev/null +++ b/app/src/main/res/layout/item_user_listing.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/constraint_layout_item_user_listing" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <pl.droidsonroids.gif.GifImageView + android:id="@+id/user_icon_gif_image_view_item_user_listing" + android:layout_width="36dp" + android:layout_height="36dp" + android:layout_gravity="center_vertical" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent"/> + + <TextView + android:id="@+id/user_name_text_view_item_user_listing" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginStart="32dp" + android:textColor="@android:color/black" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toEndOf="@+id/user_icon_gif_image_view_item_user_listing" + app:layout_constraintTop_toTopOf="parent" /> + + <ImageView + android:id="@+id/subscribe_image_view_item_user_listing" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + + android:src="@drawable/baseline_add_white_24" + android:tint="@color/colorPrimary" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" + android:visibility="gone"/> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |