app icon
@@ -34,7 +34,7 @@ android {
|
||||
debug {
|
||||
matchingFallbacks.add("release")
|
||||
isMinifyEnabled = false
|
||||
isDebuggable = true
|
||||
isDebuggable = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 55 KiB |
@@ -27,6 +27,7 @@ import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.derivedStateOf
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.livedata.observeAsState
|
||||
import androidx.compose.runtime.mutableFloatStateOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
@@ -48,7 +49,7 @@ fun TrackControlComposable(
|
||||
val book by viewModel.book.observeAsState()
|
||||
val chapters = book?.chapters ?: emptyList()
|
||||
|
||||
var sliderPosition by remember { mutableStateOf(0f) }
|
||||
var sliderPosition by remember { mutableFloatStateOf(0f) }
|
||||
var isDragging by remember { mutableStateOf(false) }
|
||||
val duration = book?.chapters?.get(currentTrackIndex)?.duration?.toFloat() ?: 0f
|
||||
|
||||
|
||||
@@ -2,29 +2,208 @@
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="85.84757"
|
||||
android:endY="92.4963"
|
||||
android:startX="42.9492"
|
||||
android:startY="49.59793"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
android:viewportWidth="1000"
|
||||
android:viewportHeight="1000">
|
||||
<group android:scaleX="0.81277776"
|
||||
android:scaleY="0.81277776"
|
||||
android:translateX="93.611115"
|
||||
android:translateY="93.611115">
|
||||
<path
|
||||
android:pathData="M0,0h1000v1000h-1000z"
|
||||
android:fillColor="#d7d3cb"/>
|
||||
<path
|
||||
android:pathData="M654.3,311.7l241.7,258.7s-48.6,193.6 -172.2,269.7c-123.6,76.2 -72.5,-305.5 -72.5,-305.5l3,-222.9Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="768.5"
|
||||
android:startY="311.7"
|
||||
android:endX="768.5"
|
||||
android:endY="850.2"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFC9C1B7"/>
|
||||
<item android:offset="0.5" android:color="#FFCFC9C0"/>
|
||||
<item android:offset="1" android:color="#FFD2CDC5"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
||||
android:pathData="M204,517.6l164.4,184.1l91,-134.8l-108.5,-55.9l-146.9,6.6z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="250.6"
|
||||
android:startY="471"
|
||||
android:endX="424.8"
|
||||
android:endY="645.3"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFCBC4BB"/>
|
||||
<item android:offset="0.5" android:color="#FFD3CFC6"/>
|
||||
<item android:offset="1" android:color="#FFD7D3CB"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M369.5,263.6s-2.5,-85 0,-99.1 15.6,-16.3 27.6,-10.7 41.9,18.6 71.5,66.6c29.6,48 -99.1,43.2 -99.1,43.2Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="380.8"
|
||||
android:startY="151.3"
|
||||
android:endX="428.8"
|
||||
android:endY="264.5"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF130B05"/>
|
||||
<item android:offset="1" android:color="#FFBE4C17"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M516.5,606.2c0,41.1 -11.8,83.3 -55.7,118.6 -4.5,3.6 -8.6,7.6 -12.3,12 -31.9,37.6 -31.3,101.4 4.9,189.7 -13.2,-0.4 -25.5,-1.5 -36.7,-2.8 -43.9,-5.1 -71.5,-15 -71.5,-15 0,0 -20.2,-112.3 6.6,-182.8 26.8,-70.5 27,-80.2 26.2,-112.4s-9.4,-55.8 -40.1,-55.5c-15.6,0.2 -35.4,2.9 -60.4,-3.9 -19,-5.1 -39.5,-12.4 -55.7,-20.3 -14.3,-7 -25.3,-17.2 -28.8,-26.2 0,0 0.8,-0.4 2,-1.1 0.2,-0.1 0.4,-0.2 0.6,-0.4 0.2,-0.1 0.5,-0.3 0.7,-0.4 0.2,-0.1 0.5,-0.3 0.8,-0.4 0.9,-0.6 2,-1.2 3.1,-1.9 0.6,-0.4 1.3,-0.8 2,-1.3 1,-0.7 2.1,-1.4 3.2,-2.2 1.1,-0.8 2.2,-1.6 3.3,-2.5t0,0c0.7,-0.6 1.4,-1.2 2.2,-1.8 1.8,-1.6 3.5,-3.3 5.1,-5 0.9,-1.1 1.8,-2.2 2.5,-3.3 0.3,-0.4 0.5,-0.8 0.7,-1.1h0c9,-2.6 31.1,-8.7 44.3,-11.7 16.9,-3.8 55.9,-11 83.2,-10 27.3,1 56.2,5.6 103.7,39.8 47.5,34.2 66.1,60.8 66.1,101.9Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="354.8"
|
||||
android:startY="464.4"
|
||||
android:endX="354.8"
|
||||
android:endY="926.4"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFF3F8F2"/>
|
||||
<item android:offset="0.3" android:color="#FFE0E5E2"/>
|
||||
<item android:offset="0.7" android:color="#FFD4DAD7"/>
|
||||
<item android:offset="1" android:color="#FFD0D6D4"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M723.9,638.2c0.2,101.9 -0.1,201.9 -0.1,201.9 -24,18.5 -48.9,33.6 -73,45.4 -51.6,-68.8 -94.3,10.7 -147.5,-12.4 -59.4,-25.8 -52.7,-120.1 -55.1,-136 3.7,-4.3 8.1,-8.7 12.6,-12.3 43.9,-35.2 55.7,-77.4 55.7,-118.6s-18.6,-67.7 -66.1,-101.9c-47.5,-34.2 -76.3,-38.8 -103.7,-39.8 -27.3,-1 -66.4,6.1 -83.2,10 -13.2,3 -35.3,9.1 -44.3,11.7h0c7.5,-12.1 3.6,-21.4 -2,-24.6 -4.5,-2.6 -17.1,-6 -22.5,-6.9 0,0 55.9,-29.1 78.7,-65.2 8.5,-13.4 17.8,-32.2 25.7,-47.7 13.3,-26 28.2,-50.6 70.2,-83 0,-0 0,-0 0.1,-0 19.1,-14.8 41.7,-24.4 63.9,-30.1 6.2,-1.6 12.3,-2.9 18.3,-3.9 4.9,-0.8 9.7,-1.5 14.4,-2 1.3,-0.1 2.5,-0.3 3.7,-0.3 0.7,-0.1 1.4,-0.1 2.1,-0.2 4.1,-0.3 8,-0.5 11.9,-0.6 20.9,-0.6 38.3,1.4 48.2,3 5.8,0.9 9.1,1.7 9.1,1.7 0.1,0 0.2,0 0.2,0.1 105.8,30 161.4,150.1 174.2,209.6 0.3,1.5 0.7,3.1 1.1,5 1.7,8 3.9,19.8 5.2,33.8 0.2,2.5 0.4,5 0.6,7.6 2.5,40 1.5,98.6 1.6,155.9Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="344.8"
|
||||
android:startY="276.5"
|
||||
android:endX="743.8"
|
||||
android:endY="825.8"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFF47722"/>
|
||||
<item android:offset="1" android:color="#FF934715"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M219.2,486.1c-7.5,12.1 -26.1,21.5 -26.1,21.5 -7.6,-6.9 -13.7,-25.1 -11.2,-37.5 2.6,-12.4 12.8,-15.5 12.8,-15.5 5.4,0.9 18,4.3 22.5,6.9 5.6,3.2 9.6,12.5 2,24.6Z"
|
||||
android:fillColor="#19253b"/>
|
||||
<path
|
||||
android:pathData="M538.9,232.8s-50.4,-59.6 -65.9,-73.2c-15.5,-13.6 -35.5,-9.9 -38.9,6.8 -3.4,16.7 1.7,140.9 1.7,140.9l56.5,-25.5 46.6,-49Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="438.7"
|
||||
android:startY="155.4"
|
||||
android:endX="492.9"
|
||||
android:endY="283.1"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF130B05"/>
|
||||
<item android:offset="0.8" android:color="#FFD65F17"/>
|
||||
<item android:offset="1" android:color="#FFDD6218"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M452.9,177.8s-3.2,76.3 0,91.4c0,0 15.7,-7.7 21.6,-9.2 0,0 2,-60.4 -21.6,-82.2Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="438.3"
|
||||
android:startY="184"
|
||||
android:endX="471.1"
|
||||
android:endY="261.4"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF152034"/>
|
||||
<item android:offset="1" android:color="#FF152034"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M493.5,160h38c5.4,0 9.8,4.4 9.8,9.8v121.6h-57.5v-121.6c0,-5.4 4.4,-9.8 9.8,-9.8Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="512.5"
|
||||
android:startY="160"
|
||||
android:endX="512.5"
|
||||
android:endY="291.4"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF0061D1"/>
|
||||
<item android:offset="0.5" android:color="#FF0061D1"/>
|
||||
<item android:offset="0.7" android:color="#FF0060CF"/>
|
||||
<item android:offset="0.7" android:color="#FF015DC8"/>
|
||||
<item android:offset="0.8" android:color="#FF0358BB"/>
|
||||
<item android:offset="0.8" android:color="#FF0651AA"/>
|
||||
<item android:offset="0.9" android:color="#FF094893"/>
|
||||
<item android:offset="0.9" android:color="#FF0D3D78"/>
|
||||
<item android:offset="0.9" android:color="#FF133058"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M622.5,380.9c0,60.8 -49.3,110.1 -110.1,110.1 -15,0 -29.3,-3 -42.4,-8.5 -39.8,-16.6 -67.8,-55.9 -67.8,-101.7 0,-60.8 49.3,-110.1 110.1,-110.1 45.8,0 85.1,28 101.7,67.8 5.4,13.1 8.5,27.4 8.5,42.4Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="403.3"
|
||||
android:startY="396"
|
||||
android:endX="621.5"
|
||||
android:endY="365.8"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF19253B"/>
|
||||
<item android:offset="1" android:color="#FF080C14"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M512.4,294.4c-47.8,0 -86.5,38.7 -86.5,86.5s38.7,86.5 86.5,86.5c0.3,0 0.5,0 0.8,-0 47.2,-0.4 85.3,-38.5 85.7,-85.7 0,-0.3 0,-0.5 0,-0.8 0,-47.8 -38.7,-86.5 -86.5,-86.5ZM573,380.9c0,33.5 -27.1,60.6 -60.6,60.6 -16.7,0 -31.9,-6.8 -42.8,-17.8h-0c-11,-11 -17.8,-26.1 -17.8,-42.8 0,-33.5 27.1,-60.6 60.6,-60.6 16.7,0 31.9,6.8 42.8,17.8 11,11 17.8,26.1 17.8,42.8Z"
|
||||
android:fillColor="#0189ff"/>
|
||||
<path
|
||||
android:pathData="M573,380.9c0,33.5 -27.1,60.6 -60.6,60.6 -16.7,0 -31.9,-6.8 -42.8,-17.8h-0c-11,-11 -17.8,-26.1 -17.8,-42.8 0,-33.5 27.1,-60.6 60.6,-60.6 16.7,0 31.9,6.8 42.8,17.8 11,11 17.8,26.1 17.8,42.8Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="469.5"
|
||||
android:startY="338"
|
||||
android:endX="555.2"
|
||||
android:endY="423.7"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF0060CF"/>
|
||||
<item android:offset="1" android:color="#FF00459A"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M598.8,381.6c-0.4,47.2 -38.5,85.3 -85.7,85.7l-43.6,-43.6h0s0,-0 0,-0c11,11 26.1,17.8 42.8,17.8 33.5,0 60.6,-27.1 60.6,-60.6 0,-16.7 -6.8,-31.9 -17.8,-42.8l43.6,43.6Z"
|
||||
android:fillColor="#016bc9"/>
|
||||
<path
|
||||
android:pathData="M736,460.5l-144.1,144.1 -121.9,-122c13,5.4 27.4,8.5 42.4,8.5 60.8,0 110.1,-49.3 110.1,-110.1 0,-15 -3,-29.3 -8.5,-42.4l122,122Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:centerX="521.5"
|
||||
android:centerY="395.2"
|
||||
android:gradientRadius="178.6"
|
||||
android:type="radial">
|
||||
<item android:offset="0" android:color="#FF000000"/>
|
||||
<item android:offset="0.8" android:color="#00000000"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M651.4,885.2c-72.4,35.3 -142.9,43.1 -198,41.2 -36.2,-88.3 -36.8,-152.1 -4.9,-189.7 2.4,16 14.4,56.1 73.8,81.9 53.2,23.1 77.5,-2.2 129.1,66.6Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="416.7"
|
||||
android:startY="768.4"
|
||||
android:endX="592.4"
|
||||
android:endY="944.1"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFA34E16"/>
|
||||
<item android:offset="1" android:color="#FF844012"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M327.3,412.9c4.8,9.3 14.4,15 24.7,14.7 14.4,-0.5 21.9,-12.7 22.3,-13.5"
|
||||
android:strokeWidth="15"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#19253b"
|
||||
android:strokeLineCap="round"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 14 KiB |
4
app/src/main/res/values/ic_launcher_background.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#D7D3CB</color>
|
||||
</resources>
|
||||