wanjingy.github.io / hw9 / EventFinder / app / src / main / res / layout / fragment_artist.xml
fragment_artist.xml
Raw
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".details.ArtistFragment">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingVertical="10dp"
        android:paddingHorizontal="5dp">
        <androidx.cardview.widget.CardView
            android:id="@+id/noArtists"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:layout_marginHorizontal="10dp"
            app:cardBackgroundColor="@color/black"
            app:cardCornerRadius="10dp">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginVertical="10dp"
                android:text="Artist/Music data unavailable"
                android:textColor="@color/green"
                android:textStyle="bold" />
        </androidx.cardview.widget.CardView>
        <ProgressBar
            android:id="@+id/artistsProgressBar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:indeterminate="true"
            android:indeterminateTint="@color/green"
            />
        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/artistsListLayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scrollbars="vertical"
            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
            />
    </RelativeLayout>

</FrameLayout>