Merge pull request #10667 from t895/landscape-card
Android: Fix game card in landscape
This commit is contained in:
commit
0f2540a0d1
|
@ -12,24 +12,20 @@
|
||||||
android:paddingStart="4dp"
|
android:paddingStart="4dp"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingEnd="4dp"
|
android:paddingEnd="4dp"
|
||||||
android:transitionName="card_game"
|
android:transitionName="card_game">
|
||||||
tools:layout_width="160dp">
|
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
android:id="@+id/card_game_art"
|
android:id="@+id/card_game_art"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="115dp"
|
||||||
android:layout_height="159dp"
|
android:layout_height="161dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
app:cardCornerRadius="4dp"
|
app:cardCornerRadius="4dp">
|
||||||
tools:layout_width="140dp">
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image_game_screen"
|
android:id="@+id/image_game_screen"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"/>
|
||||||
tools:scaleType="centerCrop"
|
|
||||||
tools:src="@drawable/placeholder_screenshot" />
|
|
||||||
</androidx.cardview.widget.CardView>
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
Loading…
Reference in New Issue