mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Further simplified customGlideRequests, adding placeholder, error and fallback colors
This commit is contained in:
parent
f5a3ba49cc
commit
40cfbef4d7
7 changed files with 65 additions and 59 deletions
|
|
@ -20,7 +20,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="9"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
|
|
@ -39,5 +39,5 @@
|
|||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="8"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
android:layout_marginTop="22dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="2"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
@ -53,19 +53,19 @@
|
|||
android:layout_width="172dp"
|
||||
android:layout_height="172dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="124dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="112dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
@ -78,19 +78,19 @@
|
|||
android:layout_width="172dp"
|
||||
android:layout_height="172dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="124dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="112dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
@ -102,19 +102,19 @@
|
|||
android:layout_width="172dp"
|
||||
android:layout_height="172dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="124dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="112dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="196dp"
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="196dp"
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="196dp"
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="196dp"
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="196dp"
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="196dp"
|
||||
|
|
@ -105,6 +105,6 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="8"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
android:layout_marginTop="22dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="2"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
android:layout_height="52dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="2dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_1"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_1"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_title_placeholder_1" />
|
||||
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
android:layout_height="18dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
android:layout_height="52dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="2dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -110,7 +110,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_2"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_2"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_title_placeholder_2" />
|
||||
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
android:layout_height="18dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
@ -150,7 +150,7 @@
|
|||
android:layout_height="52dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="2dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_3"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
@ -172,7 +172,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_3"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_title_placeholder_3" />
|
||||
|
||||
|
|
@ -181,7 +181,7 @@
|
|||
android:layout_height="18dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
@ -202,7 +202,7 @@
|
|||
android:layout_height="52dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="2dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -214,7 +214,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_4"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
@ -224,7 +224,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_4"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_title_placeholder_4" />
|
||||
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
android:layout_height="18dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
@ -254,7 +254,7 @@
|
|||
android:layout_height="52dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="2dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -266,7 +266,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_5"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
@ -276,7 +276,7 @@
|
|||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_placeholder_5"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_title_placeholder_5" />
|
||||
|
||||
|
|
@ -285,7 +285,7 @@
|
|||
android:layout_height="18dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:background="?attr/colorSurface"
|
||||
android:gravity="center_vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="172dp"
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="172dp"
|
||||
|
|
@ -43,6 +43,6 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/colorSurfaceContainer" />
|
||||
android:background="?attr/colorSurface" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue