parent
39c583150c
commit
963caf0e5e
@ -0,0 +1,18 @@ |
||||
package com.github.tvbox.osc.ui.adapter; |
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter; |
||||
import com.chad.library.adapter.base.BaseViewHolder; |
||||
import com.github.tvbox.osc.R; |
||||
|
||||
import java.util.ArrayList; |
||||
|
||||
public class PinyinAdapter extends BaseQuickAdapter<String, BaseViewHolder> { |
||||
public PinyinAdapter() { |
||||
super(R.layout.item_search_word_layout_1, new ArrayList<>()); |
||||
} |
||||
|
||||
@Override |
||||
protected void convert(BaseViewHolder helper, String item) { |
||||
helper.setText(R.id.tvSearchWord, item); |
||||
} |
||||
} |
||||
@ -1,17 +1,19 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:focusable="true" |
||||
android:layout_marginBottom="13mm" |
||||
android:focusableInTouchMode="true"> |
||||
android:layout_width="match_parent" |
||||
android:layout_height="@dimen/vs_40" |
||||
android:layout_gravity="center" |
||||
android:layout_margin="@dimen/vs_4" |
||||
android:background="@drawable/search_focus" |
||||
android:focusable="true"> |
||||
|
||||
<TextView |
||||
android:id="@+id/keyName" |
||||
android:layout_width="48mm" |
||||
android:layout_height="35mm" |
||||
android:background="@drawable/keyboard_focus" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:layout_gravity="center" |
||||
android:gravity="center" |
||||
android:textAlignment="gravity" |
||||
android:textColor="@android:color/white" |
||||
android:textSize="22mm" /> |
||||
android:textSize="@dimen/ts_22" /> |
||||
</FrameLayout> |
||||
@ -0,0 +1,15 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/tvSearchWord" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="center_horizontal" |
||||
android:layout_margin="@dimen/vs_5" |
||||
android:background="@drawable/source_focus" |
||||
android:ellipsize="end" |
||||
android:focusable="true" |
||||
android:padding="@dimen/vs_10" |
||||
android:singleLine="true" |
||||
android:textAlignment="center" |
||||
android:textColor="@android:color/white" |
||||
android:textSize="@dimen/ts_20" /> |
||||
@ -1,48 +1,12 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:layout_width="428mm" |
||||
android:layout_height="match_parent" |
||||
android:paddingLeft="60mm"> |
||||
|
||||
<LinearLayout |
||||
android:layout_width="322mm" |
||||
android:layout_height="47mm" |
||||
android:background="@drawable/search_box" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal"> |
||||
|
||||
<ImageView |
||||
android:layout_width="29mm" |
||||
android:layout_height="29mm" |
||||
android:layout_marginLeft="10mm" |
||||
android:src="@drawable/search_icon" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/search" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:layout_marginLeft="20mm" |
||||
android:layout_marginRight="10mm" |
||||
android:gravity="center_vertical" |
||||
android:hint="请输入" |
||||
android:maxLines="1" |
||||
android:textColor="@android:color/white" |
||||
android:textColorHint="#6CFFFFFF" |
||||
android:textSize="24mm" /> |
||||
</LinearLayout> |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginLeft="@dimen/vs_4_" |
||||
android:layout_marginRight="@dimen/vs_4_"> |
||||
|
||||
<androidx.recyclerview.widget.RecyclerView |
||||
android:id="@+id/mRecyclerView" |
||||
android:layout_width="342mm" |
||||
android:layout_height="394mm" |
||||
android:layout_marginTop="70mm" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/hint" |
||||
android:layout_width="322mm" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="464mm" |
||||
android:lineSpacingMultiplier="1.4" |
||||
android:textColor="@android:color/white" |
||||
android:textSize="18mm" /> |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" /> |
||||
</FrameLayout> |
||||
Loading…
Reference in new issue