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

Commit a9f50e95 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add custom bubble clock face."

parents 8984ba6d 046ee9ce
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="200dp"
    android:width="200dp"
    android:viewportHeight="100"
    android:viewportWidth="100">
    <path
        android:fillColor="#000000"
        android:pathData="M50.082,14.199m-13.985,0a13.985,13.985 0,1 1,27.97 0a13.985,13.985 0,1 1,-27.97 0"/>
</vector>
+9 −0
Original line number Diff line number Diff line
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="200dp"
    android:width="200dp"
    android:viewportHeight="100"
    android:viewportWidth="100" >
    <path
        android:fillColor="#000000"
        android:pathData="M50.082,0.025L50.082,0.025A13.985,15.63 0,0 1,64.067 15.656L64.067,49.029A13.985,15.63 0,0 1,50.082 64.659L50.082,64.659A13.985,15.63 0,0 1,36.097 49.029L36.097,15.656A13.985,15.63 0,0 1,50.082 0.025z"/>
</vector>
+52 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2019 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<com.android.keyguard.clock.ClockLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
  >
  <TextClock
      android:id="@+id/digital_clock"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:letterSpacing="0.03"
      android:singleLine="true"
      style="@style/widget_big"
      android:format12Hour="@string/keyguard_widget_12_hours_format"
      android:format24Hour="@string/keyguard_widget_24_hours_format"
  />
  <com.android.keyguard.clock.ImageClock
      android:id="@+id/analog_clock"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
  >
    <ImageView
        android:id="@+id/minute_hand"
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:src="@drawable/bubble_minute_hand"
        android:tint="@color/bubbleMinuteHandColor"
    />
    <ImageView
        android:id="@+id/hour_hand"
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:src="@drawable/bubble_hour_hand"
        android:tint="@color/bubbleHourHandColor"
    />
  </com.android.keyguard.clock.ImageClock>
</com.android.keyguard.clock.ClockLayout>
+35 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2019 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:layout_alignParentTop="true">
  <TextClock
      android:id="@+id/lock_screen_clock"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:letterSpacing="0.03"
      android:singleLine="true"
      style="@style/widget_big"
      android:format12Hour="@string/keyguard_widget_12_hours_format"
      android:format24Hour="@string/keyguard_widget_24_hours_format" />
  />
</FrameLayout>
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2019 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<resources>
  <!-- Default color for hour hand of Bubble clock. -->
  <color name="bubbleHourHandColor">#C97343</color>
  <!-- Default color for minute hand of Bubble clock. -->
  <color name="bubbleMinuteHandColor">#F5C983</color>
</resources>
Loading