mirror of https://github.com/FongMi/TV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
5.2 KiB
134 lines
5.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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"
|
|
android:keepScreenOn="true">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.fongmi.android.tv.ui.custom.CustomEditText
|
|
android:id="@+id/keyword"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:hint="@string/search_hint"
|
|
android:imeOptions="actionDone"
|
|
android:inputType="textCapCharacters|textAutoCorrect|textAutoComplete"
|
|
android:letterSpacing="0.05"
|
|
android:maxLength="50"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="24dp"
|
|
android:paddingEnd="24dp"
|
|
android:paddingBottom="12dp"
|
|
android:singleLine="true"
|
|
android:textColor="@color/white"
|
|
android:textColorHint="@color/white"
|
|
android:textSize="24sp" />
|
|
|
|
<androidx.leanback.widget.VerticalGridView
|
|
android:id="@+id/word"
|
|
android:layout_width="240dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/keyword"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingBottom="24dp"
|
|
app:focusOutEnd="true"
|
|
app:focusOutFront="true" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/keyboard"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/keyword"
|
|
android:layout_toEndOf="@+id/word"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:padding="12dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/keyboard"
|
|
android:layout_alignStart="@+id/keyboard"
|
|
android:layout_alignEnd="@+id/keyboard"
|
|
android:layout_marginTop="12dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/mic"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginEnd="16dp"
|
|
android:background="@drawable/selector_mic"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_mic" />
|
|
|
|
<TextView
|
|
android:id="@+id/search"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:background="@drawable/selector_item"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:text="@string/home_search"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/clear"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:background="@drawable/selector_item"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:text="@string/search_clear"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/remote"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/selector_item"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:text="@string/search_remote"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<com.fongmi.android.tv.ui.custom.ProgressLayout
|
|
android:id="@+id/progressLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone">
|
|
|
|
<androidx.leanback.widget.VerticalGridView
|
|
android:id="@+id/recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:padding="24dp"
|
|
app:focusOutEnd="true"
|
|
app:focusOutFront="true" />
|
|
|
|
</com.fongmi.android.tv.ui.custom.ProgressLayout>
|
|
</FrameLayout>
|
|
|
|
|