Skip to content

Commit

Permalink
Add loading indicator to home item
Browse files Browse the repository at this point in the history
  • Loading branch information
Natanel-Shitrit committed Sep 30, 2023
1 parent 26a62f4 commit 7458c26
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/phone/src/main/res/layout/home_episode_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Findroid.Image" />

<com.google.android.material.progressindicator.CircularProgressIndicator
android:id="@+id/loading_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:progress="0"
android:progressTint="?attr/colorOnSecondary"
app:layout_constraintBottom_toBottomOf="@id/episode_image"
app:layout_constraintEnd_toEndOf="@id/episode_image"
app:layout_constraintStart_toStartOf="@id/episode_image"
app:layout_constraintTop_toTopOf="@id/episode_image"
android:indeterminate="true"
android:visibility="invisible"
app:indicatorSize="45dp"
app:trackCornerRadius="2dp" />

<TextView
android:id="@+id/primary_name"
android:layout_width="0dp"
Expand Down

0 comments on commit 7458c26

Please sign in to comment.