Attribute | Description |
---|---|
progress | Value represented by the seek bar. |
min | Minimum progress value of seek bar |
max | Minimum progress value of seek bar |
This section will be discussed on May 27.
android:icon="@drawable/icon_name" android:label="@string/app_name"
<?xml version="1.0" encoding="utf-8"?> <vector xmlns:android= "http://schemas.android.com/apk/res/android" android:width="108dp" android:height="108dp" android:viewportWidth="108" android:viewportHeight="108"> <path android:fillColor="#008577" android:pathData="M0,0h108v108h-108z" /> <path android:fillColor="#00000000" android:pathData="M9,0L9,108" android:strokeWidth="0.8" android:strokeColor="#33FFFFFF" /> <path android:fillColor="#00000000" android:pathData="M19,0L19,108" android:strokeWidth="0.8" android:strokeColor="#33FFFFFF" /> <!-- 31 paths are omitted. --> <path android:fillColor="#00000000" android:pathData="M79,19L79,89" android:strokeWidth="0.8" android:strokeColor="#33FFFFFF" /> </vector>
This section will be discussed on May 27.
android:theme="@style/AppTheme"
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> </resources>The meanings of these color titles:
<?xml version="1.0" encoding="UTF-8"?> <resources> <color name="colorPrimary">#00BCD4</color> <color name="colorPrimaryDark">#660F09</color> <color name="colorAccent">#D81B60</color> </resources>These colors can be customized as desired.
Theme.AppCompat.Light.DarkActionBarare
Theme.AppCompat Theme.AppCompat.Light Theme.AppCompat.Light.NoActionBar Theme.AppCompat.NoActionBar