mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
161 lines
7.0 KiB
XML
161 lines
7.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2018 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.
|
|
-->
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/smartspace_content"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_gravity="center"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:animateLayoutChanges="true">
|
|
<com.google.android.apps.nexuslauncher.graphics.IcuDateTextView
|
|
android:id="@+id/time_above"
|
|
style="@style/SmartspaceTextHeadline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:background="@drawable/bg_smartspace"
|
|
android:clickable="true"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:scrollHorizontally="true"
|
|
android:textColor="?workspaceTextColor"
|
|
android:textSize="@dimen/smartspace_clock_above_size"
|
|
android:visibility="gone"
|
|
launcher:layout_constraintBottom_toTopOf="@+id/linearLayout"
|
|
launcher:layout_constraintEnd_toEndOf="parent"
|
|
launcher:layout_constraintHorizontal_bias="0.5"
|
|
launcher:layout_constraintStart_toStartOf="parent"
|
|
launcher:layout_constraintTop_toTopOf="parent"
|
|
tools:visibility="visible"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
launcher:layout_constraintBottom_toBottomOf="parent"
|
|
launcher:layout_constraintEnd_toEndOf="parent"
|
|
launcher:layout_constraintHorizontal_bias="0.0"
|
|
launcher:layout_constraintStart_toStartOf="parent"
|
|
launcher:layout_constraintTop_toBottomOf="@+id/time_above">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:orientation="horizontal">
|
|
<com.google.android.apps.nexuslauncher.graphics.IcuDateTextView
|
|
android:id="@+id/clock"
|
|
style="@style/SmartspaceTextHeadline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="4dp"
|
|
android:background="@drawable/bg_smartspace"
|
|
android:clickable="true"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:maxLines="1"
|
|
android:scrollHorizontally="true"
|
|
android:textColor="?workspaceTextColor"
|
|
android:textSize="@dimen/smartspace_title_size"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/title_weather_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingStart="4dp"
|
|
android:paddingEnd="10dp"
|
|
android:background="@drawable/bg_smartspace"
|
|
android:clickable="true"
|
|
android:clipChildren="false"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone"
|
|
tools:visiblity="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/title_weather_icon"
|
|
android:layout_width="@dimen/smartspace_title_weather_icon_size"
|
|
android:layout_height="@dimen/smartspace_title_weather_icon_size"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_gravity="center"
|
|
android:scaleType="fitXY"
|
|
tools:src="@drawable/weather_01"/>
|
|
|
|
<com.google.android.apps.nexuslauncher.graphics.DoubleShadowTextView
|
|
android:id="@+id/title_weather_text"
|
|
style="@style/SmartspaceTextHeadline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:drawablePadding="6dp"
|
|
android:textColor="?workspaceTextColor"
|
|
android:textSize="@dimen/smartspace_title_size"
|
|
tools:text="30°C"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/subtitle_line"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_gravity="center"
|
|
android:animateLayoutChanges="true"
|
|
android:clipChildren="false"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/subtitle_icon"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_weight="0.0"
|
|
android:layout_marginRight="6dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<com.google.android.apps.nexuslauncher.graphics.DoubleShadowTextView
|
|
android:id="@+id/subtitle_text"
|
|
style="@style/SmartspaceTextTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.0"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingTop="4dp"
|
|
android:paddingBottom="4dp"
|
|
android:drawablePadding="6dp"
|
|
android:includeFontPadding="false"
|
|
android:maxLines="1"
|
|
android:textColor="?workspaceTextColor"
|
|
android:textSize="16dp"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |