UI adjust part 1
parent
44b71460ee
commit
f4c52654a7
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="?attr/m3ColorExploreButton" />
|
<item android:color="?attr/colorSurfaceContainerHigh" />
|
||||||
</selector>
|
</selector>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/white" />
|
<item android:color="@color/kotatsu_surfaceContainerHigh" />
|
||||||
</selector>
|
</selector>
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:alpha="0.7" android:color="?attr/m3ColorBottomMenuBackground" />
|
|
||||||
</selector>
|
|
||||||
@ -1,57 +1,50 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<com.google.android.material.card.MaterialCardView
|
<LinearLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clipChildren="false"
|
android:clipChildren="false"
|
||||||
app:cardCornerRadius="16dp"
|
android:orientation="vertical"
|
||||||
tools:layout_width="140dp">
|
tools:layout_width="140dp">
|
||||||
|
|
||||||
<LinearLayout
|
<FrameLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<org.koitharu.kotatsu.core.ui.widgets.CoverImageView
|
|
||||||
android:id="@+id/imageView_cover"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="?colorSurfaceContainer"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:scaleType="centerCrop"
|
|
||||||
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Kotatsu.Cover"
|
|
||||||
tools:ignore="ContentDescription"
|
|
||||||
tools:src="@tools:sample/backgrounds/scenic[5]" />
|
|
||||||
|
|
||||||
<org.koitharu.kotatsu.history.ui.util.ReadingProgressView
|
|
||||||
android:id="@+id/progressView"
|
|
||||||
android:layout_width="@dimen/card_indicator_size"
|
|
||||||
android:layout_height="@dimen/card_indicator_size"
|
|
||||||
android:layout_gravity="bottom|end"
|
|
||||||
android:layout_margin="@dimen/card_indicator_offset" />
|
|
||||||
|
|
||||||
</FrameLayout>
|
<org.koitharu.kotatsu.core.ui.widgets.CoverImageView
|
||||||
|
android:id="@+id/imageView_cover"
|
||||||
<TextView
|
|
||||||
android:id="@+id/textView_title"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:elegantTextHeight="false"
|
android:background="?colorSurfaceContainer"
|
||||||
android:ellipsize="end"
|
android:orientation="horizontal"
|
||||||
android:lines="2"
|
android:scaleType="centerCrop"
|
||||||
android:padding="8dp"
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Kotatsu.Cover"
|
||||||
android:textAppearance="?attr/textAppearanceTitleSmall"
|
tools:ignore="ContentDescription"
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
tools:src="@tools:sample/backgrounds/scenic[5]" />
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/thumbnail"
|
<org.koitharu.kotatsu.history.ui.util.ReadingProgressView
|
||||||
tools:text="@tools:sample/lorem" />
|
android:id="@+id/progressView"
|
||||||
|
android:layout_width="@dimen/card_indicator_size"
|
||||||
</LinearLayout>
|
android:layout_height="@dimen/card_indicator_size"
|
||||||
|
android:layout_gravity="bottom|end"
|
||||||
</com.google.android.material.card.MaterialCardView>
|
android:layout_margin="@dimen/card_indicator_offset" />
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView_title"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:elegantTextHeight="false"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:lines="2"
|
||||||
|
android:paddingVertical="4dp"
|
||||||
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
||||||
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/thumbnail"
|
||||||
|
tools:text="@tools:sample/lorem" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|||||||
Loading…
Reference in New Issue