Added initial "ShareLocation" UI

Added the UI and some base logic for the share location logic, which
still needs to be enhanced with actual GPS and database logic.
This commit is contained in:
Alexander Dörflinger
2025-03-19 09:37:22 +01:00
parent b20bb86be3
commit 47149307fe
14 changed files with 376 additions and 53 deletions

View File

@@ -1,45 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape>
<solid android:color="@color/md_theme_inverseOnSurface_highContrast" />
<item android:state_pressed="true">
<shape>
<solid android:color="@color/md_theme_inverseOnSurface_highContrast" />
<stroke
android:width="3dp"
android:color="@color/md_theme_outline_highContrast" />
<stroke
android:width="3dp"
android:color="@color/md_theme_outline_highContrast" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<corners
android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />
</shape>
</item>
<item android:state_pressed="false">
<shape>
<solid android:color="@color/md_theme_inverseOnSurface_mediumContrast" />
<corners
android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />
</shape>
</item>
<item android:state_pressed="false">
<shape>
<solid android:color="@color/md_theme_inverseOnSurface_mediumContrast" />
<stroke
android:width="3dp"
android:color="@color/md_theme_outline_mediumContrast" />
<stroke
android:width="3dp"
android:color="@color/md_theme_outline_mediumContrast" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<corners
android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />
</shape>
</item>
</selector>
<corners
android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />
</shape>
</item>
</selector>

View File

@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="800dp"
android:height="800dp"
android:viewportWidth="100"
android:viewportHeight="100">
<path
android:pathData="M49.8,23.59c-7.83,0 -15.6,3.37 -14.78,10.1l2,14.62c0.35,2.57 2.09,6.69 4.69,6.69h0.19l2.13,24.53c0.09,1.1 0.89,2 2,2h8c1.11,0 1.91,-0.9 2,-2L58.14,55h0.19c2.6,0 4.34,-4.11 4.69,-6.69l2,-14.62c0.52,-6.73 -7.38,-10.1 -15.22,-10.1z"
android:fillColor="#000000"/>
<path
android:pathData="M50.02,50.91l-0.05,0.13c0.02,-0.04 0.03,-0.08 0.04,-0.12l0,-0.01z"
android:fillColor="#000000"/>
<path
android:pathData="M50,10.5m-10.5,0a10.5,10.5 0,1 1,21 0a10.5,10.5 0,1 1,-21 0"
android:fillColor="#000000"/>
<path
android:pathData="M60.92,69.09c-0.09,0.97 -0.17,1.94 -0.26,2.91C69.61,73.27 76.25,76.14 77,79.69c1.12,5.28 -16.14,7.65 -27.26,7.54c-11.12,-0.11 -28.06,-2.26 -26.58,-7.54c0.97,-3.46 7.51,-6.27 16.23,-7.58c-0.09,-0.98 -0.19,-1.95 -0.27,-2.92c-11.21,1.24 -20.54,4.28 -24.27,8.25H2.23L0,82.05h13.17c1.02,5.44 12.43,10.14 28.73,11.32L41.34,100h16.14l-0.16,-6.63c16.39,-1.19 28.12,-5.88 29.51,-11.32H100l-1.91,-4.62H85.47c-3.54,-4.07 -13.05,-7.16 -24.55,-8.33z"
android:fillColor="#000000"/>
</vector>

View File

@@ -0,0 +1,41 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="800dp"
android:height="800dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="M366.3,744.8h524.5l-21.2,-303.6c-0,0 -401.1,-0.1 -503.2,303.6z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M943.3,744.8v159.8h-863.2v-159.8h800.1z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M240.8,499.8c57,0 103.2,46.2 103.2,103.1s-46.2,103.2 -103.2,103.2 -103.1,-46.2 -103.1,-103.2 46.2,-103.1 103.1,-103.1z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M80.1,986.7a22.4,22.4 0,0 1,-22.4 -22.4v-529.2a22.4,22.4 0,1 1,44.8 0v529.2a22.4,22.4 0,0 1,-22.4 22.4zM943.3,986.7a22.4,22.4 0,0 1,-22.4 -22.4v-305.4a22.4,22.4 0,1 1,44.8 0v305.4c0,12.4 -10,22.4 -22.4,22.4z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M943.3,767.1h-863.2a22.4,22.4 0,1 1,0 -44.8h863.2a22.4,22.4 0,1 1,0 44.8z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M240.8,728.5c-69.2,0 -125.5,-56.3 -125.5,-125.5 0,-69.2 56.3,-125.5 125.5,-125.5 69.2,0 125.5,56.3 125.5,125.5 0,69.2 -56.3,125.5 -125.5,125.5zM240.8,522.2c-44.5,0 -80.8,36.2 -80.8,80.8 0,44.5 36.2,80.8 80.8,80.8 44.5,0 80.8,-36.2 80.8,-80.8 0,-44.5 -36.2,-80.8 -80.8,-80.8zM371.9,766.8a22.4,22.4 0,0 1,-22.4 -22.4c0,-82.6 58.1,-166.2 159.4,-229.4 102.4,-63.8 234.2,-99 371.3,-99a22.4,22.4 0,1 1,0 44.8c-128.8,0 -252.2,32.7 -347.6,92.2 -87.9,54.8 -138.3,124.6 -138.3,191.4a22.4,22.4 0,0 1,-22.4 22.4z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="M880.2,767.1a22.4,22.4 0,0 1,-22.4 -22.4v-306.4a22.4,22.4 0,1 1,44.8 0v306.4a22.4,22.4 0,0 1,-22.4 22.4zM477.7,429.5h-167.8a22.4,22.4 0,0 1,-12.3 -41.1l105.6,-69.6H309.8a22.4,22.4 0,1 1,0 -44.8h167.8a22.4,22.4 0,0 1,12.3 41.1l-105.6,69.6h93.2a22.4,22.4 0,1 1,0 44.8zM636.6,205.7h-103a22.4,22.4 0,0 1,-12.3 -41.1l40.7,-26.8h-28.4a22.4,22.4 0,1 1,0 -44.8h103a22.4,22.4 0,0 1,12.3 41.1l-40.7,26.8h28.4a22.4,22.4 0,1 1,0 44.8zM868.4,136.5h-87a22.4,22.4 0,0 1,-12.3 -41.1l24.7,-16.3h-12.4a22.4,22.4 0,1 1,0 -44.8h87a22.4,22.4 0,0 1,12.3 41.1l-24.7,16.3h12.4a22.4,22.4 0,1 1,0 44.8zM943.3,927h-863.2a22.4,22.4 0,1 1,0 -44.8h863.2a22.4,22.4 0,1 1,0 44.8z"
android:strokeWidth="0.01024"
android:fillColor="#000000"
android:strokeColor="#000000"/>
</vector>

View File

@@ -1,10 +0,0 @@
<vector android:height="200dp" android:viewportHeight="1024"
android:viewportWidth="1024" android:width="200dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#5FCEFF" android:pathData="M366.3,744.8h524.5l-21.2,-303.6c-0,0 -401.1,-0.1 -503.2,303.6z"/>
<path android:fillColor="#8B87C1" android:pathData="M943.3,744.8v159.8h-863.2v-159.8h800.1z"/>
<path android:fillColor="#FFB578" android:pathData="M240.8,499.8c57,0 103.2,46.2 103.2,103.1s-46.2,103.2 -103.2,103.2 -103.1,-46.2 -103.1,-103.2 46.2,-103.1 103.1,-103.1z"/>
<path android:fillColor="#4F46A3" android:pathData="M80.1,986.7a22.4,22.4 0,0 1,-22.4 -22.4v-529.2a22.4,22.4 0,1 1,44.8 0v529.2a22.4,22.4 0,0 1,-22.4 22.4zM943.3,986.7a22.4,22.4 0,0 1,-22.4 -22.4v-305.4a22.4,22.4 0,1 1,44.8 0v305.4c0,12.4 -10,22.4 -22.4,22.4z"/>
<path android:fillColor="#4F46A3" android:pathData="M943.3,767.1h-863.2a22.4,22.4 0,1 1,0 -44.8h863.2a22.4,22.4 0,1 1,0 44.8z"/>
<path android:fillColor="#4F46A3" android:pathData="M240.8,728.5c-69.2,0 -125.5,-56.3 -125.5,-125.5 0,-69.2 56.3,-125.5 125.5,-125.5 69.2,0 125.5,56.3 125.5,125.5 0,69.2 -56.3,125.5 -125.5,125.5zM240.8,522.2c-44.5,0 -80.8,36.2 -80.8,80.8 0,44.5 36.2,80.8 80.8,80.8 44.5,0 80.8,-36.2 80.8,-80.8 0,-44.5 -36.2,-80.8 -80.8,-80.8zM371.9,766.8a22.4,22.4 0,0 1,-22.4 -22.4c0,-82.6 58.1,-166.2 159.4,-229.4 102.4,-63.8 234.2,-99 371.3,-99a22.4,22.4 0,1 1,0 44.8c-128.8,0 -252.2,32.7 -347.6,92.2 -87.9,54.8 -138.3,124.6 -138.3,191.4a22.4,22.4 0,0 1,-22.4 22.4z"/>
<path android:fillColor="#4F46A3" android:pathData="M880.2,767.1a22.4,22.4 0,0 1,-22.4 -22.4v-306.4a22.4,22.4 0,1 1,44.8 0v306.4a22.4,22.4 0,0 1,-22.4 22.4zM477.7,429.5h-167.8a22.4,22.4 0,0 1,-12.3 -41.1l105.6,-69.6H309.8a22.4,22.4 0,1 1,0 -44.8h167.8a22.4,22.4 0,0 1,12.3 41.1l-105.6,69.6h93.2a22.4,22.4 0,1 1,0 44.8zM636.6,205.7h-103a22.4,22.4 0,0 1,-12.3 -41.1l40.7,-26.8h-28.4a22.4,22.4 0,1 1,0 -44.8h103a22.4,22.4 0,0 1,12.3 41.1l-40.7,26.8h28.4a22.4,22.4 0,1 1,0 44.8zM868.4,136.5h-87a22.4,22.4 0,0 1,-12.3 -41.1l24.7,-16.3h-12.4a22.4,22.4 0,1 1,0 -44.8h87a22.4,22.4 0,0 1,12.3 41.1l-24.7,16.3h12.4a22.4,22.4 0,1 1,0 44.8zM943.3,927h-863.2a22.4,22.4 0,1 1,0 -44.8h863.2a22.4,22.4 0,1 1,0 44.8z"/>
</vector>