lun_launcher/app/src/main/res/layout/app_drawer.xml

143 lines
6.4 KiB
XML
Raw Normal View History

2024-08-12 17:02:52 +09:00
<?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"
2024-08-14 16:06:50 +09:00
2024-08-12 17:02:52 +09:00
android:layout_height="match_parent">
2024-08-14 16:06:50 +09:00
<ScrollView
app:layout_constraintTop_toBottomOf="@id/searchInput"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="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"/>
2024-08-14 17:40:21 +09:00
<rasel.lunar.launcher.view.CircleImageView
android:src="@drawable/translate"
style="@style/SearchIcons"
android:id="@+id/search_translate"/>
2024-08-14 16:06:50 +09:00
</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>
2024-08-12 17:02:52 +09:00
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/reset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rounded_bg"
android:padding="@dimen/eight"
android:layout_marginBottom="@dimen/four"
2024-08-14 16:06:50 +09:00
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
2024-08-12 17:02:52 +09:00
app:srcCompat="@drawable/ic_refresh" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/searchInput"
2024-08-13 18:22:27 +09:00
android:layout_width="0dp"
2024-08-12 17:02:52 +09:00
android:layout_height="wrap_content"
android:gravity="center"
android:imeOptions="actionSearch"
android:singleLine="true"
2024-08-13 18:22:27 +09:00
android:visibility="visible"
2024-08-14 16:06:50 +09:00
app:layout_constraintTop_toTopOf="parent"
2024-08-13 18:22:27 +09:00
app:layout_constraintLeft_toLeftOf="parent"
2024-08-14 16:06:50 +09:00
app:layout_constraintRight_toLeftOf="@id/reset"/>
2024-08-12 17:02:52 +09:00
</androidx.constraintlayout.widget.ConstraintLayout>