Initial
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M0,0h108v108h-108z"/>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M54,54m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M54,54l0,-30"/>
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M54,54l20,20"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-40,0a40,40 0 1,1 80,0a40,40 0 1,1 -80,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:fillColor="#FF0000"
|
||||
android:pathData="M50,50m-10,0a10,10 0 1,1 20,0a10,10 0 1,1 -20,0"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
android:background="@color/black">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/clockLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.4">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/digit1"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="180dp"
|
||||
android:src="@drawable/num_1"
|
||||
tools:src="@drawable/num_1" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/digit2"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="180dp"
|
||||
android:src="@drawable/num_2"
|
||||
tools:src="@drawable/num_2" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/colon"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="180dp"
|
||||
android:src="@drawable/num_colon"
|
||||
tools:src="@drawable/num_colon"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/digit3"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="180dp"
|
||||
android:src="@drawable/num_0"
|
||||
tools:src="@drawable/num_0" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/digit4"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="180dp"
|
||||
android:src="@drawable/num_1"
|
||||
tools:src="@drawable/num_1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dateTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:text="Dec 25"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="32sp"
|
||||
android:alpha="0.8"
|
||||
app:layout_constraintEnd_toEndOf="@+id/clockLayout"
|
||||
app:layout_constraintStart_toStartOf="@+id/clockLayout"
|
||||
app:layout_constraintTop_toBottomOf="@+id/clockLayout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/weatherTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:textSize="24sp"
|
||||
android:textColor="@color/white"
|
||||
android:alpha="0.7"
|
||||
android:text="@string/weather_loading"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/dateTextView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
15
app/build/intermediates/packaged_res/debug/values/values.xml
Normal file
15
app/build/intermediates/packaged_res/debug/values/values.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="background_color">#000000</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="red_clock">#FF4444</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<string name="app_name">Daydream Clock</string>
|
||||
<string name="weather_loading">Loading...</string>
|
||||
<style name="Theme.DaydreamClock" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||
<item name="colorPrimary">@color/black</item>
|
||||
<item name="colorPrimaryVariant">@color/black</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -0,0 +1,2 @@
|
||||
<dream xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:settingsActivity="com.example.daydreamclock/.MainActivity" />
|
||||
Reference in New Issue
Block a user