mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-01 03:32:17 +01:00
557bfea35c
This PR: - fixes some errors reported by `gradlew lint` and the Android Studio "Code Inspection" tool - adds a snapshot file `lint-baseline.xml` of the remaining lint errors and warnings to be used by the linter as baseline - adds a job for CI to run `gradlew lint` on every build Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3291 Reviewed-by: José Rebelo <joserebelo@noreply.codeberg.org> Co-authored-by: Arjan Schrijver <a_gadgetbridge@anymore.nl> Co-committed-by: Arjan Schrijver <a_gadgetbridge@anymore.nl>
78 lines
2.9 KiB
XML
78 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/streaks_dashboard"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:minWidth="1000dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/streaks_dashboard_inner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="1dp"
|
|
android:layout_marginEnd="1dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:maxLines="2"
|
|
android:scrollHorizontally="false"
|
|
android:text="@string/steps_streaks"
|
|
android:textAllCaps="true"
|
|
android:textSize="24sp"
|
|
android:textStyle="bold"
|
|
android:tooltipText="@string/steps_streaks_hint" />
|
|
|
|
<include
|
|
layout="@layout/steps_streak_current_line_layout"
|
|
android:visibility="gone" />
|
|
|
|
<include
|
|
layout="@layout/steps_streak_maximum_line_layout"
|
|
android:visibility="gone" />
|
|
|
|
<include
|
|
layout="@layout/steps_streak_total_line_layout"
|
|
android:visibility="gone" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="0dp"
|
|
android:layout_marginBottom="0dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_marginStart="35dp"
|
|
android:layout_marginTop="39dp"
|
|
app:srcCompat="@drawable/ic_events_gold" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/step_streak_dashboard_loading_circle"
|
|
android:layout_width="171dp"
|
|
android:layout_height="171dp"
|
|
android:indeterminate="true" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/step_streak_share_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentBottom="true"
|
|
app:srcCompat="@drawable/ic_share" />
|
|
</RelativeLayout>
|
|
</ScrollView> |