Share picture: if sharing a track, a share picture (PNG) is created in addition.

Fixes #363.
This commit is contained in:
Dennis Guse
2021-07-21 18:17:36 +02:00
parent 0ac34e0638
commit fc0cec6157
7 changed files with 231 additions and 26 deletions
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?><!--<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="SpUsage">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/splashscreen_background"
android:padding="40dp"
android:src="@drawable/ic_logo_color_24dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_gravity="top"
android:layout_margin="20dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:scaleType="fitStart"
android:src="@drawable/ic_logo_color_24dp"
android:textAlignment="center" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical|end"
android:text="@string/app_name"
android:layout_gravity="center"
android:textColor="@android:color/white"
app:autoSizeTextType="uniform" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_gravity="bottom">
<TextView
android:id="@+id/share_picture_category"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textColor="@android:color/white"
app:autoSizeTextType="uniform"
tools:text="CATEGORY" />
<TextView
android:id="@+id/share_picture_total_time"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textColor="@android:color/white"
app:autoSizeTextType="uniform"
tools:text="00:10:10" />
<TextView
android:id="@+id/share_picture_total_distance"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textColor="@android:color/white"
app:autoSizeTextType="uniform"
tools:text="135km" />
<TextView
android:id="@+id/share_picture_gain"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:textColor="@android:color/white"
app:autoSizeTextType="uniform"
tools:text="214m" />
</LinearLayout>
</FrameLayout>