aboutsummaryrefslogblamecommitdiff
path: root/app/src/main/res/layout/item_trending_search.xml
blob: d7c6a6a68e0314c235c68bb2bc2036a2564f05ea (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                                                             
                                                       
                                  


                                     
                               

                                                






























                                                                                   
                                                                                     














                                                                            
                                                       






                                                              

                                                                       
                            

                                              

                                                    

                                                   
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_marginTop="8dp"
    android:layout_marginBottom="8dp"
    android:layout_marginStart="16dp"
    android:layout_marginEnd="16dp"
    app:cardCornerRadius="16dp"
    app:cardElevation="2dp"
    style="?attr/materialCardViewElevatedStyle">

    <RelativeLayout
        android:id="@+id/image_wrapper_relative_layout_item_trending_search"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:visibility="gone">

        <ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView
            android:id="@+id/image_view_item_trending_search"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true"
            android:scaleType="fitStart" />

        <ProgressBar
            android:id="@+id/progress_bar_item_trending_search"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true" />

        <RelativeLayout
            android:id="@+id/load_image_error_relative_layout_item_trending_search"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_centerInParent="true"
            android:visibility="gone">

            <TextView
                android:id="@+id/load_image_error_text_view_item_trending_search"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:drawableTop="@drawable/ic_error_outline_black_day_night_24dp"
                android:layout_gravity="center"
                android:gravity="center"
                android:text="@string/error_loading_image_tap_to_retry"
                android:textSize="?attr/font_default"
                android:fontFamily="?attr/font_family" />

        </RelativeLayout>

    </RelativeLayout>

    <ImageView
        android:id="@+id/image_view_no_preview_gallery_item_trending_search"
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:scaleType="center"
        android:src="@drawable/ic_image_day_night_24dp"
        android:visibility="gone" />

    <TextView
        android:id="@+id/title_text_view_item_trending_search"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:padding="16dp"
        android:background="@drawable/trending_search_title_background"
        android:maxLines="2"
        android:textColor="#FFFFFF"
        android:textSize="?attr/title_font_20"
        android:fontFamily="?attr/title_font_family"
        android:textStyle="bold" />

</com.google.android.material.card.MaterialCardView>