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

44 lines
2.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<Button android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="16sp"
android:id="@+id/bt_sc_assets"
android:gravity="center"
android:layout_gravity="center"
android:padding="20dp"
android:text="@string/str_bt1"/>
<Button android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="16sp"
android:id="@+id/bt_sc_from_other"
android:gravity="center"
android:layout_gravity="center"
android:padding="20dp"
android:text="从相册选取"/>
</LinearLayout>
<TextView android:layout_width="match_parent" android:layout_height="wrap_content"
android:gravity="center"
android:id="@+id/tv_version"
android:textSize="15sp"
android:textColor="@color/blue"
android:padding="5dp"
android:text="版本号:"/>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="sfw:适宜在公共场所浏览,nsfw:不适宜在公共场所浏览,两者都是0-1中间的浮点型值,nsfw数值越大表示色情程度越高,sfw反之"
android:padding="15dp"
android:textSize="14sp"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>