This commit is contained in:
lunaticbum
2024-08-14 16:06:50 +09:00
parent b8c08da378
commit 4e26fab27c
24 changed files with 1578 additions and 932 deletions
+110 -70
View File
@@ -3,43 +3,114 @@
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="match_parent">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/appsCount"
android:layout_width="0dp"
android:layout_height="0dp"
android:textColor="?attr/colorControlHighlight"
android:textSize="@dimen/appsCountText"
android:gravity="center"
<ScrollView
app:layout_constraintTop_toBottomOf="@id/searchInput"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/appsList"
android:layout_width="@dimen/zero"
android:layout_height="0dp"
android:background="@android:color/transparent"
android:fadingEdgeLength="@dimen/sixteen"
android:overScrollMode="never"
android:requiresFadingEdge="vertical"
android:scrollbars="none"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/searchInput"
app:layout_constraintEnd_toStartOf="@+id/search"
app:layout_constraintStart_toStartOf="parent" />
<!-- <rasel.lunar.launcher.apps.AlphabetScrollbar-->
<!-- android:id="@+id/alphabets"-->
<!-- android:layout_width="@dimen/zero"-->
<!-- android:visibility="gone"-->
<!-- android:layout_height="@dimen/zero"-->
<!-- android:layout_marginBottom="@dimen/four"-->
<!-- app:layout_constraintBottom_toTopOf="@+id/reset"-->
<!-- app:layout_constraintStart_toStartOf="@id/reset"-->
<!-- app:layout_constraintEnd_toEndOf="parent" />-->
android:layout_width="0dp"
android:layout_height="0dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:id="@+id/title_apps"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:text="앱 검색"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:id="@+id/appsCount"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:text="앱 검색"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<androidx.recyclerview.widget.RecyclerView
app:layout_constraintTop_toBottomOf="@id/title_apps"
android:id="@+id/appsList"
android:layout_width="match_parent"
android:layout_height="90dp"
android:background="@android:color/transparent"
android:overScrollMode="never"
android:requiresFadingEdge="horizontal"
android:scrollbars="none"
/>
<TextView
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:id="@+id/title_webs"
app:layout_constraintTop_toBottomOf="@id/appsList"
app:layout_constraintLeft_toLeftOf="parent"
android:text="빠른 검색"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<LinearLayout
android:id="@+id/quickSearch"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@id/title_webs"
android:layout_width="match_parent"
android:layout_height="50dp">
<rasel.lunar.launcher.view.CircleImageView
style="@style/SearchIcons"
android:src="@drawable/google"
android:id="@+id/search_google"/>
<rasel.lunar.launcher.view.CircleImageView
style="@style/SearchIcons"
android:src="@drawable/naver"
android:id="@+id/search_naver"/>
<rasel.lunar.launcher.view.CircleImageView
style="@style/SearchIcons"
android:src="@drawable/duckduckgo"
android:id="@+id/search_duckduckgo"/>
<rasel.lunar.launcher.view.CircleImageView
android:src="@drawable/namuwiki"
android:id="@+id/search_namuwiki"
style="@style/SearchIcons"/>
<rasel.lunar.launcher.view.CircleImageView
style="@style/SearchIcons"
android:src="@drawable/gmap"
android:id="@+id/search_googleMap"/>
<rasel.lunar.launcher.view.CircleImageView
style="@style/SearchIcons"
android:src="@drawable/navermap"
android:id="@+id/search_nmap"/>
<rasel.lunar.launcher.view.CircleImageView
android:src="@drawable/tmap"
style="@style/SearchIcons"
android:id="@+id/search_tmap"/>
</LinearLayout>
<TextView
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:id="@+id/title_contact"
app:layout_constraintTop_toBottomOf="@id/quickSearch"
app:layout_constraintLeft_toLeftOf="parent"
android:text="연락처"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<androidx.recyclerview.widget.RecyclerView
app:layout_constraintTop_toBottomOf="@id/title_contact"
android:id="@+id/contactList"
android:layout_width="match_parent"
android:layout_height="90dp"
android:background="@android:color/transparent"
android:overScrollMode="never"
android:requiresFadingEdge="horizontal"
android:scrollbars="none"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/reset"
@@ -48,42 +119,10 @@
android:background="@drawable/rounded_bg"
android:padding="@dimen/eight"
android:layout_marginBottom="@dimen/four"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@+id/moveUp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_refresh" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/moveUp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rounded_bg"
android:padding="@dimen/eight"
android:layout_marginBottom="@dimen/four"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@+id/moveDown"
app:srcCompat="@drawable/ic_up" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/moveDown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rounded_bg"
android:padding="@dimen/eight"
android:layout_marginBottom="@dimen/four"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@+id/search"
app:srcCompat="@drawable/ic_down" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rounded_bg"
android:padding="@dimen/eight"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:srcCompat="@drawable/ic_search" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/searchInput"
android:layout_width="0dp"
@@ -92,7 +131,8 @@
android:imeOptions="actionSearch"
android:singleLine="true"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
app:layout_constraintRight_toLeftOf="@id/reset"/>
</androidx.constraintlayout.widget.ConstraintLayout>
+10 -17
View File
@@ -1,39 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_width="150dp"
android:layout_height="45dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/apps_bg"
android:orientation="vertical">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/appIconTwo"
android:visibility="gone"
android:visibility="visible"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="@dimen/forty"
android:layout_height="@dimen/forty"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="@dimen/four" />
/>
<com.google.android.material.imageview.ShapeableImageView
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginBottom="@dimen/four"
android:visibility="visible"
android:id="@+id/appIcon"
android:layout_width="@dimen/forty"
android:layout_height="@dimen/forty" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/childTextview"
app:layout_constraintTop_toBottomOf="@id/appIconTwo"
app:layout_constraintLeft_toRightOf="@id/appIcon"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="5dp"
app:layout_constraintLeft_toRightOf="@id/appIconTwo"
app:layout_constraintRight_toRightOf="parent"
android:lines="2"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_marginBottom="@dimen/four"
android:layout_height="match_parent" />
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="150dp"
android:layout_height="40dp"
android:layout_margin="5dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/apps_bg"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name"
android:visibility="visible"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_gravity="center_horizontal"
/>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/number"
app:layout_constraintTop_toBottomOf="@id/name"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="0dp"
android:layout_marginBottom="@dimen/four"
android:layout_height="20dp" />
</androidx.constraintlayout.widget.ConstraintLayout>