mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-06 14:11:29 +08:00
Added TimeScreen
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".tools.TimeScreenActivity">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
109
app/src/main/res/layout/activity_tool_time_screen.xml
Normal file
109
app/src/main/res/layout/activity_tool_time_screen.xml
Normal file
@@ -0,0 +1,109 @@
|
||||
<?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:id="@+id/constraint_layout_time_screen"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/app_show_background_theme"
|
||||
tools:context=".tools.timescreen.MainActivity">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_view_mode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:contentDescription="@string/tool_time_change_mode"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/animation_light_to_dark_mode"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linear_layout_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextSwitcher
|
||||
android:id="@+id/text_switcher_hour_ten"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:inAnimation="@anim/text_from_top_in"
|
||||
android:outAnimation="@anim/text_to_down_out" />
|
||||
|
||||
<TextSwitcher
|
||||
android:id="@+id/text_switcher_hour_one"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:inAnimation="@anim/text_from_top_in"
|
||||
android:outAnimation="@anim/text_to_down_out" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_view_colon_hour_minute"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/tool_time_screen_colon"
|
||||
android:textColor="?attr/app_show_text_theme"
|
||||
android:textSize="100sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextSwitcher
|
||||
android:id="@+id/text_switcher_minute_ten"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:inAnimation="@anim/text_from_top_in"
|
||||
android:outAnimation="@anim/text_to_down_out" />
|
||||
|
||||
<TextSwitcher
|
||||
android:id="@+id/text_switcher_minute_one"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:inAnimation="@anim/text_from_top_in"
|
||||
android:outAnimation="@anim/text_to_down_out" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_view_colon_minute_second"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/tool_time_screen_colon"
|
||||
android:textColor="?attr/app_show_text_theme"
|
||||
android:textSize="100sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextSwitcher
|
||||
android:id="@+id/text_switcher_second_ten"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:inAnimation="@anim/text_from_top_in"
|
||||
android:outAnimation="@anim/text_to_down_out" />
|
||||
|
||||
<TextSwitcher
|
||||
android:id="@+id/text_switcher_second_one"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:inAnimation="@anim/text_from_top_in"
|
||||
android:outAnimation="@anim/text_to_down_out" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_view_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:textColor="?attr/app_show_second_text_theme"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_layout_time" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -3,16 +3,15 @@
|
||||
android:id="@+id/fold_layout_head_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fold_layout_icon"
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:gravity="center"
|
||||
android:textAlignment="center"
|
||||
android:textColor="?attr/app_theme"
|
||||
@@ -22,7 +21,7 @@
|
||||
android:id="@+id/fold_layout_text_view"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="6"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="?attr/app_text_theme"
|
||||
android:textSize="18sp"
|
||||
@@ -30,8 +29,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fold_layout_arrow_icon"
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginHorizontal="10dp"
|
||||
android:contentDescription="@string/arrow_icon" />
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user