更多的电池模式与带箭头的标题 #185
This commit is contained in:
10 files changed
+231
-88
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M175.38,680Q135.64,680 107.82,652.18Q80,624.36 80,584.62L80,375.38Q80,335.64 107.82,307.82Q135.64,280 175.38,280L700,280Q739.74,280 767.56,307.82Q795.38,335.64 795.38,375.38L795.38,584.62Q795.38,624.36 767.56,652.18Q739.74,680 700,680L175.38,680ZM175.38,640L700,640Q723.54,640 739.46,624.08Q755.38,608.15 755.38,584.62L755.38,375.38Q755.38,351.85 739.46,335.92Q723.54,320 700,320L175.38,320Q151.85,320 135.92,335.92Q120,351.85 120,375.38L120,584.62Q120,608.15 135.92,624.08Q151.85,640 175.38,640ZM835.38,564.62L835.38,396.15L847.69,396.15Q861.42,396.15 870.71,405.44Q880,414.73 880,428.46L880,532.31Q880,546.04 870.71,555.33Q861.42,564.62 847.69,564.62L835.38,564.62ZM120,640Q120,640 120,624.08Q120,608.15 120,584.62L120,375.38Q120,351.85 120,335.92Q120,320 120,320L120,320Q120,320 120,335.92Q120,351.85 120,375.38L120,584.62Q120,608.15 120,624.08Q120,640 120,640Z"/>
|
||||
</vector>
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/arrow_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="12dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_arrow_right"
|
||||
android:rotation="180"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/battery_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:includeFontPadding="false"
|
||||
android:textSize="11sp"
|
||||
android:text="@string/text"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toEndOf="@id/arrow_icon"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/battery_text_inner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="2.4dp"
|
||||
android:layout_marginBottom="0.8dp"
|
||||
android:textSize="7sp"
|
||||
android:text="@string/text"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="@id/battery_icon"
|
||||
app:layout_constraintEnd_toEndOf="@id/battery_icon"
|
||||
app:layout_constraintTop_toTopOf="@id/battery_icon"
|
||||
app:layout_constraintBottom_toBottomOf="@id/battery_icon"
|
||||
tools:ignore="SmallSp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/battery_icon"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/ic_battery"
|
||||
app:layout_constraintStart_toEndOf="@id/battery_text"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/battery_fill"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="8dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="4.2dp"
|
||||
app:strokeWidth="0dp"
|
||||
app:cardCornerRadius="1dp"
|
||||
app:cardBackgroundColor="?attr/colorControlNormal"
|
||||
app:layout_constraintStart_toStartOf="@id/battery_icon"
|
||||
app:layout_constraintTop_toTopOf="@id/battery_icon"
|
||||
app:layout_constraintBottom_toBottomOf="@id/battery_icon"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -51,8 +51,11 @@
|
||||
<item>無</item>
|
||||
<item>書名</item>
|
||||
<item>標題</item>
|
||||
<item>標題+箭頭</item>
|
||||
<item>時間</item>
|
||||
<item>電量</item>
|
||||
<item>電量內顯</item>
|
||||
<item>僅電量圖標</item>
|
||||
<item>電量%</item>
|
||||
<item>頁數</item>
|
||||
<item>進度(%)</item>
|
||||
|
||||
@@ -88,8 +88,11 @@
|
||||
<item>無</item>
|
||||
<item>書名</item>
|
||||
<item>標題</item>
|
||||
<item>標題+箭頭</item>
|
||||
<item>時間</item>
|
||||
<item>電量</item>
|
||||
<item>電量內顯</item>
|
||||
<item>僅電量圖標</item>
|
||||
<item>電量%</item>
|
||||
<item>頁數</item>
|
||||
<item>進度(%)</item>
|
||||
|
||||
@@ -75,8 +75,11 @@
|
||||
<item>无</item>
|
||||
<item>书名</item>
|
||||
<item>标题</item>
|
||||
<item>带箭头的标题</item>
|
||||
<item>时间</item>
|
||||
<item>电量</item>
|
||||
<item>电量内显</item>
|
||||
<item>仅电量图标</item>
|
||||
<item>电量%</item>
|
||||
<item>页数</item>
|
||||
<item>进度(%)</item>
|
||||
|
||||
@@ -142,8 +142,11 @@
|
||||
<item>Blank</item>
|
||||
<item>Book name</item>
|
||||
<item>Title</item>
|
||||
<item>Title With Arrow</item>
|
||||
<item>Time</item>
|
||||
<item>Battery</item>
|
||||
<item>Battery Inside</item>
|
||||
<item>Battery Only Icon</item>
|
||||
<item>Battery%</item>
|
||||
<item>Pages</item>
|
||||
<item>Progress(%)</item>
|
||||
|
||||
Reference in new issue
Block a user