mirror of https://github.com/FongMi/TV.git
parent
e684258b23
commit
5172ce9754
@ -0,0 +1,24 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:color="?attr/colorControlHighlight"> |
||||
<item android:id="@android:id/mask"> |
||||
<shape android:shape="rectangle"> |
||||
<corners android:radius="28dp" /> |
||||
<solid android:color="@color/white_10" /> |
||||
</shape> |
||||
</item> |
||||
<item> |
||||
<shape android:shape="rectangle"> |
||||
<corners android:radius="28dp" /> |
||||
<stroke |
||||
android:width="1dp" |
||||
android:color="?attr/colorOutline" /> |
||||
<padding |
||||
android:bottom="8dp" |
||||
android:left="12dp" |
||||
android:right="12dp" |
||||
android:top="8dp" /> |
||||
</shape> |
||||
</item> |
||||
</ripple> |
||||
|
||||
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:shape="rectangle"> |
||||
|
||||
<size android:width="2dp" /> |
||||
|
||||
<solid android:color="@color/control" /> |
||||
|
||||
</shape> |
||||
@ -1,9 +1,68 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<com.fongmi.android.tv.ui.custom.CustomRecyclerView xmlns:android="http://schemas.android.com/apk/res/android" |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
android:id="@+id/recycler" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:padding="24dp" |
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
||||
app:maxHeight="376dp" /> |
||||
android:orientation="vertical"> |
||||
|
||||
<LinearLayout |
||||
android:id="@+id/searchInput" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal" |
||||
android:layout_marginBottom="13dp"> |
||||
|
||||
|
||||
<LinearLayout |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:layout_weight="1" |
||||
android:padding="10dp" |
||||
android:background="@drawable/search_item_round" |
||||
android:orientation="horizontal" |
||||
android:visibility="visible"> |
||||
|
||||
<EditText |
||||
android:id="@+id/keyword" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center_vertical" |
||||
android:background="@null" |
||||
android:hint="@string/search_keyword" |
||||
android:imeOptions="actionDone" |
||||
android:inputType="textCapWords|textAutoCorrect|textAutoComplete" |
||||
android:letterSpacing="0.02" |
||||
android:maxLength="255" |
||||
android:singleLine="true" |
||||
android:gravity="center_horizontal" |
||||
android:layout_marginEnd="4dp" |
||||
android:textColor="@color/control" |
||||
android:textCursorDrawable="@drawable/site_cursor" |
||||
android:textSize="14sp" |
||||
tools:ignore="NestedWeights" |
||||
tools:text="狂飆" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
<ImageView |
||||
android:id="@+id/search" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center_vertical" |
||||
android:layout_marginStart="16dp" |
||||
android:background="?attr/selectableItemBackgroundBorderless" |
||||
android:scaleType="fitCenter" |
||||
android:src="@drawable/ic_site_search" /> |
||||
|
||||
</LinearLayout> |
||||
|
||||
<com.fongmi.android.tv.ui.custom.CustomRecyclerView |
||||
android:id="@+id/recycler" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
||||
app:maxHeight="380dp" /> |
||||
</LinearLayout> |
||||
Loading…
Reference in new issue