You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
193 lines
6.8 KiB
XML
193 lines
6.8 KiB
XML
<?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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical"
|
|
tools:context=".ui.activity.AuthSuccessActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<Button
|
|
android:id="@+id/btn_file"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:text="@string/file_test" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_udp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:text="@string/udp_test" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_log"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:text="@string/log_test" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_modify_psw"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:text="@string/modify_psw" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginTop="20dp"
|
|
android:gravity="right"
|
|
android:orientation="vertical">
|
|
|
|
<Button
|
|
android:id="@+id/btn_start_tunnel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:text="@string/start_tunnel" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_stop_tunnel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:text="@string/stop_tunnel" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_master_slave"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:text="@string/master_slave" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_atrust_auth"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="42dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:text="@string/atrust_auth" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btn_logout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:background="@android:color/transparent"
|
|
android:onClick="onClick"
|
|
android:text="注销VPN"
|
|
android:textColor="@android:color/holo_blue_dark"
|
|
android:textSize="20sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
tools:layout_editor_absoluteX="8dp"
|
|
tools:layout_editor_absoluteY="0dp">
|
|
|
|
<EditText
|
|
android:id="@+id/et_url"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.7"
|
|
android:hint="内网资源地址"
|
|
android:inputType="textUri" />
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/autoComTextView_url"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.7"
|
|
android:hint="外网资源地址"
|
|
android:inputType="textUri"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_test_res"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="onClick"
|
|
android:text="测试"
|
|
android:textSize="18sp" />
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/web_view_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/svpn_resource_tabheader"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="20dp"
|
|
android:paddingTop="0dp"
|
|
android:paddingRight="20dp"
|
|
android:paddingBottom="0dp">
|
|
|
|
<RadioButton
|
|
android:id="@+id/svpn_intraResource_tabheader"
|
|
style="@style/VPNSourceButtonIndicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:checked="true"
|
|
android:text="@string/str_intranet_resource" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/svpn_extraResource_tabheader"
|
|
style="@style/VPNSourceButtonIndicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/str_extranet_resource" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/svpn_proxyDomain_tabheader"
|
|
style="@style/VPNSourceButtonIndicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/str_proxy_domain" />
|
|
</RadioGroup>
|
|
|
|
</LinearLayout> |