...
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<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">
|
||||
|
||||
@@ -29,11 +30,13 @@
|
||||
android:textIsSelectable="false"
|
||||
android:textSize="@dimen/clockText"
|
||||
android:textStyle="bold"
|
||||
android:textLocale="en_US"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/batteryProgress"
|
||||
app:layout_constraintEnd_toEndOf="@+id/batteryProgress"
|
||||
app:layout_constraintStart_toStartOf="@+id/batteryProgress"
|
||||
app:layout_constraintTop_toTopOf="@+id/batteryProgress"
|
||||
app:layout_constraintVertical_bias="0.450" />
|
||||
app:layout_constraintVertical_bias="0.450"
|
||||
tools:ignore="UnusedAttribute" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/date"
|
||||
@@ -41,12 +44,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:textLocale="en_US"
|
||||
android:textIsSelectable="false"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/batteryProgress"
|
||||
app:layout_constraintEnd_toEndOf="@+id/batteryProgress"
|
||||
app:layout_constraintStart_toStartOf="@+id/batteryProgress"
|
||||
app:layout_constraintTop_toBottomOf="@+id/time"
|
||||
app:layout_constraintVertical_bias="0.075" />
|
||||
app:layout_constraintVertical_bias="0.075"
|
||||
tools:ignore="UnusedAttribute" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/weather"
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipToPadding="false"
|
||||
android:padding="@dimen/twelve"
|
||||
android:clickable="true"
|
||||
android:focusableInTouchMode="true">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/keyworkd"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_width="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="@dimen/zero"
|
||||
android:textSize="24dp"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/eight"
|
||||
android:inputType="textNoSuggestions"
|
||||
/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
style="@style/SearchMenus"
|
||||
android:id="@+id/quickSearch"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@id/keyworkd">
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
style="@style/SearchMenuItem"
|
||||
android:src="@drawable/google"
|
||||
android:id="@+id/search_google"/>
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
style="@style/SearchMenuItem"
|
||||
android:src="@drawable/naver"
|
||||
android:id="@+id/search_naver"/>
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
style="@style/SearchMenuItem"
|
||||
app:civ_label="DDuckGo"
|
||||
android:src="@drawable/duckduckgo"
|
||||
android:id="@+id/search_duckduckgo"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/quickSearch2"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@id/quickSearch"
|
||||
style="@style/SearchMenus">
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
android:src="@drawable/namuwiki"
|
||||
android:id="@+id/search_namuwiki"
|
||||
style="@style/SearchMenuItem"/>
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
style="@style/SearchMenuItem"
|
||||
android:src="@drawable/gmap"
|
||||
android:id="@+id/search_googleMap"/>
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
style="@style/SearchMenuItem"
|
||||
android:src="@drawable/navermap"
|
||||
android:id="@+id/search_nmap"/>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/quickSearch3"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@id/quickSearch2"
|
||||
style="@style/SearchMenus">
|
||||
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
style="@style/SearchMenuItem"
|
||||
android:src="@drawable/coupang"
|
||||
android:id="@+id/search_coupang"/>
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
android:src="@drawable/tmap"
|
||||
style="@style/SearchMenuItem"
|
||||
android:id="@+id/search_tmap"/>
|
||||
<rasel.lunar.launcher.view.CircleImageView
|
||||
android:src="@drawable/translate"
|
||||
style="@style/SearchMenuItem"
|
||||
android:id="@+id/search_translate"/>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -5,5 +5,6 @@
|
||||
<attr name="civ_border_color" format="color" />
|
||||
<attr name="civ_border_overlay" format="boolean" />
|
||||
<attr name="civ_circle_background_color" format="color" />
|
||||
<attr name="civ_label" format="string" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
@@ -34,4 +34,28 @@
|
||||
<item name="civ_border_color">#000000</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="SearchMenuItem">
|
||||
<item name="android:layout_margin">5dp</item>
|
||||
<item name="android:adjustViewBounds">true</item>
|
||||
<item name="android:scaleType">fitCenter</item>
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="civ_border_width">1dp</item>
|
||||
<item name="civ_border_color">#000000</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="SearchMenus">
|
||||
<item name="layout_constraintLeft_toLeftOf">parent</item>
|
||||
<item name="layout_constraintRight_toRightOf">parent</item>
|
||||
<item name="android:orientation">horizontal</item>
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">80dp</item>
|
||||
</style>
|
||||
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user