feat:【光环助手V5.15.0】登录相关优化 https://git.shanqu.cc/pm/halo/halo-app-issues/-/issues/2049
This commit is contained in:
@ -223,7 +223,7 @@ public class EntranceConsts {
|
||||
public static final String KEY_SUB_CATEGORY_ID = "sub_category_id";
|
||||
public static final String KEY_IS_QA_FEEDBACK = "is_qa_feedback";
|
||||
public static final String KEY_IS_CLICK_RECEIVE_BTN = "is_click_receive_btn";
|
||||
public static final String KEY_SHOW_QUICK_LOGIN = "show_quick_login";
|
||||
public static final String KEY_FROM_QUICK_LOGIN = "show_quick_login";
|
||||
public static final String KEY_VIDEO_LIST = "video_list";
|
||||
public static final String KEY_CHOOSE_FORUM_TYPE = "choose_forum_type";
|
||||
public static final String KEY_CHOOSE_MAX_COUNT = "choose_max_count";
|
||||
|
||||
@ -85,8 +85,8 @@ public class NetworkUtils {
|
||||
* 判断是否打开数据流量(一键登录必须要打开流量才能获取到手机号码)
|
||||
*
|
||||
* AuthnHelper的getNetworkType方法用于获取用户当前的网络环境和运营商,返回的是JSONObject,其中
|
||||
* operatorType字段获取网络运营商: 0.未知 1.移动流量 2.联通流量 3.电信流量,
|
||||
* networkType字段获取网络状态:0.未知;1.流量 2.wifi;3.数据流量+wifi
|
||||
* operatortype字段获取网络运营商: 0.未知 1.移动流量 2.联通流量 3.电信流量,
|
||||
* networktype字段获取网络状态:0.未知;1.流量 2.wifi;3.数据流量+wifi
|
||||
*/
|
||||
public static boolean isOpenMobileData(Context context){
|
||||
IQuickLoginProvider quickLoginHelper = (IQuickLoginProvider) ARouter.getInstance().build(RouteConsts.provider.quickLogin).navigation();
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="16dp"
|
||||
android:height="16dp"
|
||||
android:viewportWidth="16"
|
||||
android:viewportHeight="16">
|
||||
<path
|
||||
android:pathData="M8,8m-7.25,0a7.25,7.25 0,1 1,14.5 0a7.25,7.25 0,1 1,-14.5 0"
|
||||
android:strokeWidth="1.5"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#14FFFFFF"/>
|
||||
</vector>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="@color/background" />
|
||||
</shape>
|
||||
9
module_common/src/main/res/drawable/button_blue_oval.xml
Normal file
9
module_common/src/main/res/drawable/button_blue_oval.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android = "http://schemas.android.com/apk/res/android"
|
||||
android:shape = "rectangle" >
|
||||
|
||||
<solid android:color = "@color/theme" />
|
||||
|
||||
<corners android:radius = "999dp" />
|
||||
|
||||
</shape >
|
||||
11
module_common/src/main/res/drawable/ic_selector_default.xml
Normal file
11
module_common/src/main/res/drawable/ic_selector_default.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="16dp"
|
||||
android:height="16dp"
|
||||
android:viewportWidth="16"
|
||||
android:viewportHeight="16">
|
||||
<path
|
||||
android:pathData="M8,8m-7.25,0a7.25,7.25 0,1 1,14.5 0a7.25,7.25 0,1 1,-14.5 0"
|
||||
android:strokeWidth="1.5"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#EEEEEE"/>
|
||||
</vector>
|
||||
95
module_common/src/main/res/drawable/ic_selector_selected.xml
Normal file
95
module_common/src/main/res/drawable/ic_selector_selected.xml
Normal file
@ -0,0 +1,95 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="16dp"
|
||||
android:height="16dp"
|
||||
android:viewportWidth="16"
|
||||
android:viewportHeight="16">
|
||||
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M8,8m-8,0a8,8 0,1 1,16 0a8,8 0,1 1,-16 0"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="16"
|
||||
android:endY="8"
|
||||
android:startX="-0"
|
||||
android:startY="8"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#FF4BC7FF"
|
||||
android:offset="0" />
|
||||
<item
|
||||
android:color="#FF2496FF"
|
||||
android:offset="1" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M4,8l3,3l5,-5"
|
||||
android:strokeWidth="1.5"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M8,8m-8,0a8,8 0,1 1,16 0a8,8 0,1 1,-16 0"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="16"
|
||||
android:endY="8"
|
||||
android:startX="-0"
|
||||
android:startY="8"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#FF4BC7FF"
|
||||
android:offset="0" />
|
||||
<item
|
||||
android:color="#FF2496FF"
|
||||
android:offset="1" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M4,8l3,3l5,-5"
|
||||
android:strokeWidth="1.5"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M8,8m-8,0a8,8 0,1 1,16 0a8,8 0,1 1,-16 0"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="16"
|
||||
android:endY="8"
|
||||
android:startX="-0"
|
||||
android:startY="8"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#FF4BC7FF"
|
||||
android:offset="0" />
|
||||
<item
|
||||
android:color="#FF2496FF"
|
||||
android:offset="1" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M4,8l3,3l5,-5"
|
||||
android:strokeWidth="1.5"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round" />
|
||||
</vector>
|
||||
Reference in New Issue
Block a user