优化:发送通道必填字段校验与界面优化
parent
336df5008d
commit
affac39bed
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
|
||||
</vector>
|
@ -1,39 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
<RelativeLayout 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:orientation="vertical">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:background="@color/colorPrimary"
|
||||
android:onClick="addSender"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/ic_add"
|
||||
app:elevation="8dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/help_tip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/sender_tips"
|
||||
android:textColor="@color/colorPrimary" />
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list_view_sender"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="5dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/help_tip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/sender_tips"
|
||||
android:textColor="@color/colorPrimary" />
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@color/colorPrimary"
|
||||
android:onClick="addSender"
|
||||
android:padding="0dp"
|
||||
android:text="@string/new_sender"
|
||||
tools:ignore="UsingOnClickInXml" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/ItemTextView"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dip"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:text="@string/add_sender_title"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/MemuGridView"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginTop="20dp"
|
||||
android:columnWidth="90dp"
|
||||
android:gravity="center"
|
||||
android:horizontalSpacing="10dp"
|
||||
android:numColumns="auto_fit"
|
||||
android:stretchMode="columnWidth"
|
||||
android:verticalSpacing="10dp"></GridView>
|
||||
</LinearLayout>
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ItemImageView"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/ItemTextView"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dip"
|
||||
android:gravity="center"
|
||||
android:maxEms="6"
|
||||
android:maxLines="1"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="add_sender_menu">
|
||||
<item>DingTalk Bot</item>
|
||||
<item>Email</item>
|
||||
<item>Bark</item>
|
||||
<item>Webhook</item>
|
||||
<item>WeCom Group Bot</item>
|
||||
<item>WeCom</item>
|
||||
<item>ServerChan·Turbo</item>
|
||||
<item>Telegram Bot</item>
|
||||
<item>SMS</item>
|
||||
<item>FeiShu Bot</item>
|
||||
<item>PushPlus</item>
|
||||
<item>Gotify</item>
|
||||
</string-array>
|
||||
</resources>
|
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="add_sender_menu">
|
||||
<item>钉钉机器人</item>
|
||||
<item>邮箱</item>
|
||||
<item>Bark</item>
|
||||
<item>Webhook</item>
|
||||
<item>企业微信群机器人</item>
|
||||
<item>企业微信应用消息</item>
|
||||
<item>Server酱·Turbo版</item>
|
||||
<item>Telegram机器人</item>
|
||||
<item>其他手机短信</item>
|
||||
<item>飞书机器人</item>
|
||||
<item>PushPlus</item>
|
||||
<item>Gotify</item>
|
||||
</string-array>
|
||||
</resources>
|
Binary file not shown.
Before Width: | Height: | Size: 153 KiB |
Binary file not shown.
After Width: | Height: | Size: 215 KiB |
Loading…
Reference in New Issue