mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-01 11:08:43 +02:00
Change ConstraintLayout for LinearLayout and adapt style to MD3
This commit is contained in:
parent
dac66f7302
commit
75043ca479
|
@ -26,14 +26,15 @@
|
|||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/item_card"
|
||||
style="@style/Widget.Material3.CardView.Elevated"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
app:cardBackgroundColor="#00000000"
|
||||
app:cardCornerRadius="@dimen/cornerRadiusMedium"
|
||||
app:cardElevation="4dp"
|
||||
app:layout_constraintEnd_toEndOf="@id/guidelineIconText"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:shapeAppearance="?attr/shapeAppearanceCornerLarge">
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/game_icon"
|
||||
|
@ -44,90 +45,79 @@
|
|||
tools:src="@drawable/default_icon" />
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/game_info"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:maxWidth="360dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/guidelineGameInfoShaders"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toTopOf="@+id/shader_info"
|
||||
app:layout_constraintEnd_toEndOf="@id/guidelineTextEdge"
|
||||
app:layout_constraintStart_toEndOf="@id/guidelineIconText"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/game_title"
|
||||
style="?attr/textAppearanceTitleMedium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:textColor="@android:color/background_light"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="The Legend of Zelda: Breath of the Wild" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/game_version"
|
||||
style="?attr/textAppearanceBodyMedium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
||||
android:textColor="@android:color/background_light"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintStart_toStartOf="@id/game_title"
|
||||
app:layout_constraintTop_toBottomOf="@id/game_title"
|
||||
tools:text="1.0.0" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/shader_info"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/guidelineIconText"
|
||||
app:layout_constraintTop_toTopOf="@id/guidelineGameInfoShaders">
|
||||
app:layout_constraintTop_toBottomOf="@+id/game_info">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/shaders_compiling"
|
||||
style="?attr/textAppearanceBodyMedium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/compiling_cached_shaders"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:textColor="@android:color/background_light"
|
||||
android:textSize="18sp"
|
||||
android:textSize="17sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progress_bar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:scaleY="2.5"
|
||||
app:layout_constraintEnd_toEndOf="@+id/shaders_compiling"
|
||||
app:layout_constraintStart_toStartOf="@id/shaders_compiling"
|
||||
app:layout_constraintTop_toBottomOf="@id/shaders_compiling"
|
||||
app:trackCornerRadius="16dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/progress"
|
||||
style="?attr/textAppearanceBodyMedium"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||
android:textColor="@android:color/background_light"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintStart_toStartOf="@id/progress_bar"
|
||||
app:layout_constraintTop_toBottomOf="@id/progress_bar"
|
||||
tools:text="735/1337 (55%)" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guidelineIconText"
|
||||
|
@ -143,11 +133,5 @@
|
|||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_percent="0.8" />
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guidelineGameInfoShaders"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintGuide_percent="0.51" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
||||
|
|
Loading…
Reference in New Issue
Block a user