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.
 
 
 
 
 
FYReader/app/src/main/res/layout/item_replace_rule.xml

79 lines
2.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<com.mcxtzhang.swipemenulib.SwipeMenuLayout 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="50dp"
android:clickable="true"
android:paddingBottom="1dp"
app:ios="false"
app:leftSwipe="true"
app:swipeEnable="true"
android:focusable="true">
<RelativeLayout
android:id="@+id/rl_content"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/selectableItemBackground">
<TextView
android:id="@+id/tv_rule_summary"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toStartOf="@+id/iv_swipe_left"
android:textColor="@color/textPrimary"
android:maxLines="1"
android:ellipsize="end"
android:layout_alignParentStart="true"
android:gravity="center_vertical"
android:text="@string/summary" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_swipe_left"
android:layout_width="13dp"
android:layout_height="13dp"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
app:tint="@color/textAssist"
app:srcCompat="@drawable/ic_swipe_left"/>
</RelativeLayout>
<!-- 以下都是侧滑菜单的内容依序排列 -->
<!--<Button
android:id="@+id/bt_top"
android:layout_width="65dp"
android:layout_height="match_parent"
android:background="@color/md_purple_500"
android:text="@string/top"
android:textColor="@android:color/white"/>-->
<Button
android:id="@+id/bt_ban"
android:layout_width="65dp"
android:layout_height="match_parent"
android:background="@color/md_blue_500"
android:text="@string/ban"
android:textColor="@android:color/white"/>
<Button
android:id="@+id/bt_share"
android:layout_width="65dp"
android:layout_height="match_parent"
android:background="@color/md_yellow_800"
android:clickable="true"
android:text="@string/share"
android:textColor="@android:color/white"
android:focusable="true" />
<Button
android:id="@+id/btnDelete"
android:layout_width="65dp"
android:layout_height="match_parent"
android:background="@color/md_red_500"
android:text="@string/delete"
android:textColor="@android:color/white"/>
</com.mcxtzhang.swipemenulib.SwipeMenuLayout>