Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13fec091 authored by Michael W's avatar Michael W
Browse files

DeskClock: Moar Timers!

* Instead of using a ViewPager with fragments for each Timer,
  switch to using a Recyclerview
* We can fit more than one Timer on the screen that way
* Account for portrait and landscape by switching the scrolling direction
* Account for tablets by showing 2 (portrait) or 3 (landscape)
  timers next to each other before starting a new row

Change-Id: If8ee65d650e085e1ae99d55c9956768e178091af
parent 39849cc5
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2023 The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->

<ripple
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:color="?colorControlHighlight">

    <item>
        <shape android:shape="rectangle">
            <solid android:color="@color/system_neutral2_700" />
            <corners android:radius="512dp" />
        </shape>
    </item>
</ripple>
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2023 The LineageOS Project
     SPDX-License-Identifier: Apache-2.0
-->

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="oval">
            <size
                android:width="24dp"
                android:height="24dp" />
            <solid android:color="@color/system_neutral2_700" />
        </shape>
    </item>
    <item>
        <vector
            android:width="24dp"
            android:height="24dp"
            android:viewportWidth="24"
            android:viewportHeight="24">
            <path
                android:fillColor="#FFF"
                android:pathData="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" />
        </vector>
    </item>

</layer-list>
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@
<vector
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:name="play_pause"
    android:width="48dp"
    android:height="48dp"
    android:width="24dp"
    android:height="24dp"
    android:viewportHeight="48"
    android:viewportWidth="48">
    <group
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@
<vector
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:name="pause_play"
    android:width="48dp"
    android:height="48dp"
    android:width="24dp"
    android:height="24dp"
    android:viewportHeight="48"
    android:viewportWidth="48">
    <group
+15 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     SPDX-FileCopyrightText: 2023 The Android Open Source Project
     SPDX-License-Identifier: Apache-2.0
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:fillColor="#FFF"
        android:pathData="M12,18A6,6 0 0,1 6,12C6,11 6.25,10.03 6.7,9.2L5.24,7.74C4.46,8.97 4,10.43 4,12A8,8 0 0,0 12,20V23L16,19L12,15M12,4V1L8,5L12,9V6A6,6 0 0,1 18,12C18,13 17.75,13.97 17.3,14.8L18.76,16.26C19.54,15.03 20,13.57 20,12A8,8 0 0,0 12,4Z" />
</vector>
Loading