Added Stat activity, helpers and cleanup
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
android:viewportHeight="1600" >
|
||||
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillColor="@color/white"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="m800,1200q-83,0 -156,-31.5Q571,1137 517,1083 463,1029 431.5,956 400,883 400,800 400,717 431.5,644 463,571 517,517 571,463 644,431.5 717,400 800,400q83,0 156,31.5 73,31.5 127,85.5 54,54 85.5,127 31.5,73 31.5,156 0,83 -31.5,156 -31.5,73 -85.5,127 -54,54 -127,85.5 -73,31.5 -156,31.5zM800,1120q134,0 227,-93 93,-93 93,-227 0,-7 -0.5,-14.5 -0.5,-7.5 -0.5,-12.5 -5,29 -27,48 -22,19 -52,19L960,840Q927,840 903.5,816.5 880,793 880,760L880,720L720,720v-80q0,-33 23.5,-56.5Q767,560 800,560h40v0q0,-23 12.5,-40.5Q865,502 883,491q-20,-5 -40.5,-8 -20.5,-3 -42.5,-3 -134,0 -227,93 -93,93 -93,227 0,0 0,0 0,0 0,0h200q66,0 113,47 47,47 47,113v40L720,1000v110q20,5 39.5,7.5 19.5,2.5 40.5,2.5z"
|
||||
android:strokeWidth="1"
|
||||
|
@ -4,10 +4,10 @@ android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960">
|
||||
<path
|
||||
android:fillColor="?attr/colorOnBackground"
|
||||
android:fillColor="@color/white"
|
||||
android:pathData="M80,160Q80,127 103.5,103.5Q127,80 160,80L800,80Q833,80 856.5,103.5Q880,127 880,160L880,640Q880,673 856.5,696.5Q833,720 800,720L240,720L80,880ZM206,640L800,640Q800,640 800,640Q800,640 800,640L800,160Q800,160 800,160Q800,160 800,160L160,160Q160,160 160,160Q160,160 160,160L160,685L206,640ZM160,640L160,640L160,160Q160,160 160,160Q160,160 160,160L160,160Q160,160 160,160Q160,160 160,160L160,640Q160,640 160,640Q160,640 160,640L160,640Z" />
|
||||
|
||||
<path
|
||||
android:fillColor="?attr/colorPrimary"
|
||||
android:fillColor="@color/blue"
|
||||
android:pathData="M480,280Q497,280 508.5,268.5Q520,257 520,240Q520,223 508.5,211.5Q497,200 480,200Q463,200 451.5,211.5Q440,223 440,240Q440,257 451.5,268.5Q463,280 480,280ZM440,600L520,600L520,360L440,360L440,600ZM80,880L80,160" />
|
||||
</vector>
|
||||
|
@ -4,6 +4,6 @@
|
||||
android:viewportWidth="320"
|
||||
android:viewportHeight="512">
|
||||
<path
|
||||
android:fillColor="?attr/colorOnBackground"
|
||||
android:fillColor="@color/white"
|
||||
android:pathData="M310.6,233.4c12.5,12.5 12.5,32.8 0,45.3l-192,192c-12.5,12.5 -32.8,12.5 -45.3,0s-12.5,-32.8 0,-45.3L242.7,256 73.4,86.6c-12.5,-12.5 -12.5,-32.8 0,-45.3s32.8,-12.5 45.3,0l192,192z"/>
|
||||
</vector>
|
||||
|
@ -5,6 +5,6 @@
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960">
|
||||
<path
|
||||
android:fillColor="#FF0187FF"
|
||||
android:fillColor="@color/darkgray"
|
||||
android:pathData="M0,0h960v960h-960z" />
|
||||
</vector>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:theme="@style/Theme.Beendroid"
|
||||
android:layout_width="match_parent"
|
||||
|
13
app/src/main/res/layout/activity_stat.xml
Normal file
13
app/src/main/res/layout/activity_stat.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:theme="@style/Theme.Beendroid"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.github.mikephil.charting.charts.PieChart
|
||||
android:id="@+id/chart"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
@ -14,7 +14,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/action_stats"
|
||||
android:title="@string/action_stat"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
|
@ -1,13 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="purple_200">#FFBB86FC</color>
|
||||
<color name="purple_500">#FF6200EE</color>
|
||||
<color name="purple_700">#FF3700B3</color>
|
||||
<color name="teal_200">#FF03AFFF</color>
|
||||
<color name="teal_700">#FF0187FF</color>
|
||||
<color name="yellowish">#FFFFDD00</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="darkgray">#FF555555</color>
|
||||
<color name="lightgray">#FFBBBBBB</color>
|
||||
<color name="darkgray">#FF0C1D2E</color>
|
||||
<color name="lightgray">#FF93A9BE</color>
|
||||
<color name="blue">#FF3193F5</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
</resources>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<string name="app_name">BeenDroid</string>
|
||||
<string name="app_version">1.0</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="action_stats">Stats</string>
|
||||
<string name="action_stat">Stats</string>
|
||||
<string name="action_edit">Edit</string>
|
||||
<string name="welcome">Welcome!</string>
|
||||
<string name="change_lang">Change language</string>
|
||||
@ -13,6 +13,7 @@
|
||||
<string name="dark">Dark</string>
|
||||
<string name="licenses">Licenses</string>
|
||||
<string name="about">About</string>
|
||||
<string name="rate">%1$d/%2$d</string>
|
||||
<string name="beendroid_is_foss">BeenDroid is free and open source software, licensed under the GNU General Public License (version 3 or later)</string>
|
||||
<string name="beendroid_repo">Project repository: https://git.helcel.net/helcel/beendroid\n Feel free to report issues or contribute to the project.</string>
|
||||
<string name="foss_licenses">Free and open source dependencies and licenses</string>
|
||||
|
@ -1,11 +1,9 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<style name="Theme.Beendroid" parent="Theme.Material3.DayNight">
|
||||
<item name="colorPrimary">@color/teal_700</item>
|
||||
<item name="android:colorPrimary">@color/teal_700</item>
|
||||
<item name="colorPrimary">@color/blue</item>
|
||||
<item name="android:colorPrimary">?attr/colorPrimary</item>
|
||||
<item name="android:panelColorBackground">@color/lightgray</item>
|
||||
<item name="android:statusBarColor">?attr/colorPrimary</item>
|
||||
<item name="colorAccent">?attr/colorPrimary</item>
|
||||
|
||||
|
||||
<item name="checkboxStyle">@style/Widget.App.CheckBox</item>
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user