Fix placeholder margin and padding

This commit is contained in:
CappielloAntonio 2021-09-14 14:47:57 +02:00
parent 8c9af4ef42
commit 973e1768af
4 changed files with 28 additions and 34 deletions

2
.idea/misc.xml generated
View file

@ -99,7 +99,7 @@
<entry key="app/src/main/res/layout/item_library_similar_artist.xml" value="0.3229166666666667" />
<entry key="app/src/main/res/layout/item_login_server.xml" value="0.25" />
<entry key="app/src/main/res/layout/item_placehoder_discovery.xml" value="0.3229166666666667" />
<entry key="app/src/main/res/layout/item_placeholder_album.xml" value="0.1" />
<entry key="app/src/main/res/layout/item_placeholder_album.xml" value="0.8" />
<entry key="app/src/main/res/layout/item_placeholder_genre.xml" value="0.1" />
<entry key="app/src/main/res/layout/item_placeholder_horizontal.xml" value="0.3229166666666667" />
<entry key="app/src/main/res/layout/item_placeholder_year.xml" value="0.3229166666666667" />

View file

@ -39,14 +39,13 @@
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingEnd="8dp"
android:orientation="vertical">
@ -97,7 +96,6 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="8dp"
android:orientation="vertical">
<ImageView

View file

@ -24,97 +24,94 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="16dp"
android:layout_marginTop="8dp"
android:paddingEnd="16dp">
android:orientation="horizontal">
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginStart="16dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingEnd="16dp">
android:orientation="horizontal">
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginStart="16dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingEnd="16dp">
android:orientation="horizontal">
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginStart="16dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
<ImageView
android:layout_width="196dp"
android:layout_height="54dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>
android:layout_marginBottom="8dp"
android:background="@color/placeholderColor" />
</LinearLayout>
</LinearLayout>

View file

@ -18,15 +18,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="16dp"
android:layout_marginTop="8dp"
android:paddingEnd="16dp">
android:layout_marginTop="8dp">
<ImageView
android:layout_width="172dp"
android:layout_height="72dp"
android:layout_gravity="center"
android:background="@color/placeholderColor"
android:layout_marginStart="16dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="8dp"/>