!7 修改了页面细节和添加了友盟检测bug

Merge pull request !7 from Amdi/master
This commit is contained in:
肖岩 2021-06-03 18:08:08 +08:00 committed by Gitee
commit 7b77c7874a
22 changed files with 136 additions and 55 deletions

View File

@ -31,5 +31,15 @@
<option name="name" value="maven" /> <option name="name" value="maven" />
<option name="url" value="https://jitpack.io" /> <option name="url" value="https://jitpack.io" />
</remote-repository> </remote-repository>
<remote-repository>
<option name="id" value="maven3" />
<option name="name" value="maven3" />
<option name="url" value="https://repo1.maven.org/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://maven.aliyun.com/repository/apache-snapshots" />
</remote-repository>
</component> </component>
</project> </project>

2
.idea/misc.xml generated
View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@ -3,10 +3,10 @@ apply plugin: 'com.android.application'
android { android {
compileSdkVersion 30 compileSdkVersion 30
buildToolsVersion "30.0.3" buildToolsVersion "30.0.3"
// ndkVersion '23.0.7123448' ndkVersion '23.0.7123448'
defaultConfig { defaultConfig {
applicationId "com.example.myapplication" applicationId "com.navinfo.outdoor"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 30 targetSdkVersion 30
versionCode 1 versionCode 1
@ -26,7 +26,21 @@ android {
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
} }
//efs {
// //使
// isAutoTrack = true
// //Application的类名称Application
// applicationName = "UserApplication"
// //Activity的类名称Activity的类名按如下格式填写
// activityList = [
// "MainActivity",
// "WebActivity",
// "LoginActivity",
// "ImageShowActivity",
// "HomeActivity"
// //......
// ]
//}
dependencies { dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"]) implementation fileTree(dir: "libs", include: ["*.jar"])
@ -39,6 +53,9 @@ dependencies {
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.umeng.umsdk:common:9.3.8'
implementation 'com.umeng.umsdk:asms:1.2.2'
implementation 'com.umeng.umsdk:apm:1.2.0'
// //

View File

@ -1,26 +1,35 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.navinfo.outdoor"> package="com.navinfo.outdoor">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CAMERA" />
<!-- <uses-sdk android:minSdkVersion="8"></uses-sdk>-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<application <application
android:name="com.navinfo.outdoor.api.UserApplication"
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:name="com.navinfo.outdoor.api.UserApplication"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme.NoActionBar"> android:theme="@style/AppTheme.NoActionBar">
<meta-data <meta-data
android:name="design_width_in_dp" android:name="design_width_in_dp"
android:value="480"/> android:value="480" />
<meta-data <meta-data
android:name="design_height_in_dp" android:name="design_height_in_dp"
android:value="800"/> android:value="800" />
<activity android:name="com.navinfo.outdoor.activity.MainActivity"> <activity android:name="com.navinfo.outdoor.activity.MainActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View File

@ -24,6 +24,8 @@ public class MainActivity extends BaseActivity {
@Override @Override
protected void initData() { protected void initData() {
super.initData(); super.initData();
new CountDownTimer(3000, 1000) { new CountDownTimer(3000, 1000) {
@Override @Override
public void onTick(long l) { public void onTick(long l) {

View File

@ -9,6 +9,8 @@ import com.lzy.okgo.cookie.CookieJarImpl;
import com.lzy.okgo.cookie.store.DBCookieStore; import com.lzy.okgo.cookie.store.DBCookieStore;
import com.lzy.okgo.interceptor.HttpLoggingInterceptor; import com.lzy.okgo.interceptor.HttpLoggingInterceptor;
import com.lzy.okgo.model.HttpHeaders; import com.lzy.okgo.model.HttpHeaders;
import com.umeng.commonsdk.UMConfigure;
import com.umeng.umcrash.UMCrash;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.logging.Level; import java.util.logging.Level;
@ -23,6 +25,15 @@ public class UserApplication extends Application {
public void onCreate() { public void onCreate() {
super.onCreate(); super.onCreate();
userApplication=this; userApplication=this;
UMConfigure.init(this, "60b885bd6c421a3d97db55e6", "navinfo", UMConfigure.DEVICE_TYPE_PHONE, "");
/**
*设置组件化的Log开关
*参数: boolean 默认为false如需查看LOG设置为true
*/
UMConfigure.setLogEnabled(true);
String e ="测试自定义异常代码是否运行!!!!!!";
UMCrash.generateCustomLog(e,"UmengException");
initOkGo(); initOkGo();
} }
@ -66,6 +77,8 @@ public class UserApplication extends Application {
.addCommonHeaders(headers) .addCommonHeaders(headers)
//全局统一超时重连次数默认为三次那么最差的情况会请求4次(一次原始请求三次重连请求)不需要可以设置为0; //全局统一超时重连次数默认为三次那么最差的情况会请求4次(一次原始请求三次重连请求)不需要可以设置为0;
.setRetryCount(0); .setRetryCount(0);
} }
} }

View File

@ -117,4 +117,5 @@ public abstract class BaseActivity extends AppCompatActivity {
} }
} }
} }

View File

@ -20,6 +20,7 @@ import com.navinfo.outdoor.http.HttpInterface;
import com.navinfo.outdoor.http.OkGoBuilder; import com.navinfo.outdoor.http.OkGoBuilder;
import com.jcodecraeer.xrecyclerview.ProgressStyle; import com.jcodecraeer.xrecyclerview.ProgressStyle;
import com.jcodecraeer.xrecyclerview.XRecyclerView; import com.jcodecraeer.xrecyclerview.XRecyclerView;
import com.umeng.umcrash.UMCrash;
import org.json.JSONObject; import org.json.JSONObject;
@ -108,6 +109,11 @@ public class CapacityEvaluationFragment extends BaseFragment implements View.OnC
dismissLoadingDialog(); dismissLoadingDialog();
Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_SHORT).show();
Log.d("TAG", "onError: " + e.getMessage()); Log.d("TAG", "onError: " + e.getMessage());
/**
* 友盟+
* 返回自定义报错信息
*/
UMCrash.generateCustomLog("网络请求报错-位置CapacityEvaluationFragment"+e.getMessage(),"UmengException");
} }
}).build(); }).build();
} }

View File

@ -20,6 +20,7 @@ import com.navinfo.outdoor.bean.TaskExplainInfo;
import com.navinfo.outdoor.http.Callback; import com.navinfo.outdoor.http.Callback;
import com.navinfo.outdoor.http.HttpInterface; import com.navinfo.outdoor.http.HttpInterface;
import com.navinfo.outdoor.http.OkGoBuilder; import com.navinfo.outdoor.http.OkGoBuilder;
import com.umeng.umcrash.UMCrash;
import org.json.JSONObject; import org.json.JSONObject;
@ -74,6 +75,8 @@ public class IssueFragment extends BaseFragment implements View.OnClickListener
@Override @Override
protected void initView() { protected void initView() {
super.initView(); super.initView();
ivIssueFinish =findViewById(R.id.iv_issue_finish); ivIssueFinish =findViewById(R.id.iv_issue_finish);
mainIssueRecycler =findViewById(R.id.main_issue_recycler); mainIssueRecycler =findViewById(R.id.main_issue_recycler);
ivIssueFinish.setOnClickListener(this::onClick); ivIssueFinish.setOnClickListener(this::onClick);

View File

@ -17,7 +17,7 @@ import static android.app.Activity.RESULT_OK;
/** /**
* 实名认证 * 实名认证
*/ */
public class UserAttestationFragment extends BaseFragment implements View.OnClickListener{ public class UserAttestationFragment extends BaseFragment implements View.OnClickListener {
private ImageView ivAttestation2; private ImageView ivAttestation2;
private ImageView ivAttestation1; private ImageView ivAttestation1;
@ -46,30 +46,31 @@ public class UserAttestationFragment extends BaseFragment implements View.OnClic
@Override @Override
public void onClick(View v) { public void onClick(View v) {
switch (v.getId()){ switch (v.getId()) {
case R.id.iv_attestation: case R.id.iv_attestation:
getActivity().finish(); getActivity().finish();
break; break;
case R.id.iv_attestation1: case R.id.iv_attestation1:
Intent ivAttestation1 = new Intent("android.media.action.IMAGE_CAPTURE"); Intent ivAttestation1 = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(ivAttestation1,100); startActivityForResult(ivAttestation1, 100);
break; break;
case R.id.iv_attestation2: case R.id.iv_attestation2:
Intent ivAttestation2 = new Intent("android.media.action.IMAGE_CAPTURE"); Intent ivAttestation2 = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(ivAttestation2,200); startActivityForResult(ivAttestation2, 200);
break; break;
} }
} }
@Override @Override
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
if (requestCode==100&&resultCode==RESULT_OK){ if (requestCode == 100 && resultCode == RESULT_OK) {
Bundle extras=data.getExtras();//从Intent中获取附加值 Bundle extras = data.getExtras();//从Intent中获取附加值
Bitmap bitmap=(Bitmap) extras.get("data");//从附加值中获取返回的图像 Bitmap bitmap = (Bitmap) extras.get("data");//从附加值中获取返回的图像
ivAttestation1.setImageBitmap(bitmap);//显示图像 ivAttestation1.setImageBitmap(bitmap);//显示图像
}else if (requestCode==200&&resultCode==RESULT_OK){ } else if (requestCode == 200 && resultCode == RESULT_OK) {
Bundle extras=data.getExtras();//从Intent中获取附加值 Bundle extras = data.getExtras();//从Intent中获取附加值
Bitmap bitmap=(Bitmap) extras.get("data");//从附加值中获取返回的图像 Bitmap bitmap = (Bitmap) extras.get("data");//从附加值中获取返回的图像
ivAttestation2.setImageBitmap(bitmap);//显示图像 ivAttestation2.setImageBitmap(bitmap);//显示图像
} }
} }

View File

@ -6,6 +6,7 @@ import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.HttpParams; import com.lzy.okgo.model.HttpParams;
import com.lzy.okgo.model.Response; import com.lzy.okgo.model.Response;
import com.lzy.okgo.request.PostRequest; import com.lzy.okgo.request.PostRequest;
import com.umeng.umcrash.UMCrash;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
@ -195,6 +196,11 @@ public class OkGoBuilder<T> {
if (throwable != null) { if (throwable != null) {
throwable.printStackTrace(); throwable.printStackTrace();
callback.onError(throwable, 2); callback.onError(throwable, 2);
/**
* 友盟+
* 使用自定义错误查看时请在错误列表页面选择自定义异常
*/
UMCrash.generateCustomLog("网络请求报错-位置OKGOBuilder"+throwable,"UmengException");
} }
} }
}); });

View File

@ -1,5 +1,5 @@
<vector android:alpha="0.91" android:height="20dp" <vector android:alpha="0.91" android:height="20dp"
android:tint="#919191" android:viewportHeight="24" android:tint="#919191" android:viewportHeight="22"
android:viewportWidth="24" android:width="20dp" xmlns:android="http://schemas.android.com/apk/res/android"> android:viewportWidth="24" android:width="20dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M5.88,4.12L13.76,12l-7.88,7.88L8,22l10,-10L8,2z"/> <path android:fillColor="@android:color/white" android:pathData="M5.88,4.12L13.76,12l-7.88,7.88L8,22l10,-10L8,2z"/>
</vector> </vector>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="2dp"/>
<size android:width="200dp" android:height="50dp"/>
<stroke android:color="#F3E7C5" android:width="1dp"/>
</shape>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<size android:width="3dp" android:height="6dp"/> <size android:width="1.5dp" android:height="3dp"/>
<solid android:color="@color/colorBack" /> <solid android:color="@color/colorBack" />
</shape> </shape>

View File

@ -45,7 +45,7 @@
android:layout_width="300dp" android:layout_width="300dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:hint="ID/手机号" android:hint=" ID/手机号"
android:paddingBottom="20dp" android:paddingBottom="20dp"
android:textColorHint="@color/colorTransparent" android:textColorHint="@color/colorTransparent"
android:textCursorDrawable="@drawable/text_color" android:textCursorDrawable="@drawable/text_color"
@ -69,7 +69,7 @@
android:layout_width="300dp" android:layout_width="300dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:hint="请输入密码" android:hint=" 请输入密码"
android:paddingBottom="15dp" android:paddingBottom="15dp"
android:textColorHint="@color/colorTransparent" android:textColorHint="@color/colorTransparent"
android:textCursorDrawable="@drawable/text_color" android:textCursorDrawable="@drawable/text_color"

View File

@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="15dp" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"> android:background="?android:attr/selectableItemBackground"
android:orientation="vertical"
android:paddingTop="15dp">
<TextView <TextView
android:id="@+id/tv_issue_title" android:id="@+id/tv_issue_title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="30dp"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:background="?android:attr/selectableItemBackground" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:textSize="16sp" /> android:textSize="16sp" />
</LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,15 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout 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_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout <LinearLayout
android:id="@+id/rl_map_download" android:id="@+id/rl_map_download"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="#1BA5F1" android:background="#1BA5F1"
android:paddingTop="@dimen/top_pind_sp"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingTop="@dimen/top_pind_sp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
@ -20,13 +21,12 @@
android:layout_height="45dp" android:layout_height="45dp"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:src="@drawable/icon_arrow" android:src="@drawable/icon_arrow" />
/>
<TextView <TextView
android:id="@+id/tv_download" android:id="@+id/tv_download"
android:layout_width="wrap_content"
style="@style/text_style_toolbar_title" style="@style/text_style_toolbar_title"
android:layout_width="match_parent"
android:layout_toRightOf="@id/iv_find_task" android:layout_toRightOf="@id/iv_find_task"
android:text="下载离线地图" /> android:text="下载离线地图" />
</LinearLayout> </LinearLayout>
@ -65,6 +65,6 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout2" /> app:layout_constraintTop_toBottomOf="@+id/linearLayout2"/>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -159,7 +159,7 @@
android:drawableRight="@drawable/ic_baseline_arrow_forward" android:drawableRight="@drawable/ic_baseline_arrow_forward"
android:gravity="center" android:gravity="center"
android:text="LV.1" android:text="LV.1"
android:textSize="18sp" /> android:textSize="16sp" />
</RelativeLayout> </RelativeLayout>
<View <View
@ -182,15 +182,16 @@
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
style="@style/main_text_style" /> style="@style/main_text_style" />
<TextView <TextView
android:layout_width="60dp" android:layout_width="45dp"
android:layout_height="30dp" android:layout_height="20dp"
android:text="new" android:text="new"
android:gravity="center" android:gravity="center_horizontal"
android:layout_centerVertical="true" android:layout_centerVertical="true"
style="@style/main_outLogin_style" style="@style/main_outLogin_style"
android:layout_toLeftOf="@id/image_view" android:layout_toLeftOf="@id/image_view"
/> />
<ImageView <ImageView
android:id="@+id/image_view" android:id="@+id/image_view"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@ -17,8 +17,9 @@
<ImageView <ImageView
android:id="@+id/iv_attestation" android:id="@+id/iv_attestation"
android:layout_width="wrap_content" android:layout_width="50dp"
android:layout_height="45dp" android:layout_height="50dp"
android:padding="15dp"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:src="@drawable/ic_baseline_arrow" /> android:src="@drawable/ic_baseline_arrow" />

View File

@ -17,12 +17,12 @@
<ImageView <ImageView
android:id="@+id/iv_user" android:id="@+id/iv_user"
android:layout_width="wrap_content" android:layout_width="50dp"
android:layout_height="45dp" android:layout_height="50dp"
android:padding="15dp"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:src="@drawable/icon_arrow" android:src="@drawable/icon_arrow" />
/>
<TextView <TextView
android:id="@+id/tv_user" android:id="@+id/tv_user"
@ -74,18 +74,17 @@
style="@style/user_style" style="@style/user_style"
android:layout_width="70dp" android:layout_width="70dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:text="去认证" android:text="去认证"
android:textColor="#fff" /> android:textColor="#fff" />
</RelativeLayout> </RelativeLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:background="#F1F0F0" /> android:background="#F1F0F0" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
@ -112,12 +111,10 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
/> />
</RelativeLayout> </RelativeLayout>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:background="#F1F0F0" /> android:background="#F1F0F0" />
<RelativeLayout <RelativeLayout
android:id="@+id/rl_region" android:id="@+id/rl_region"
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -47,7 +47,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="200dp" android:layout_height="200dp"
android:layout_margin="20dp" android:layout_margin="20dp"
android:background="#fff" android:background="@mipmap/white_bg"
app:layout_constraintEnd_toEndOf="@+id/linear_hint" app:layout_constraintEnd_toEndOf="@+id/linear_hint"
app:layout_constraintStart_toStartOf="@+id/linear_hint" app:layout_constraintStart_toStartOf="@+id/linear_hint"
app:layout_constraintTop_toBottomOf="@+id/rl_withdraw"> app:layout_constraintTop_toBottomOf="@+id/rl_withdraw">

View File

@ -4,13 +4,17 @@ buildscript {
google() google()
jcenter() jcenter()
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url 'https://repo1.maven.org/maven2/' }
} }
dependencies { dependencies {
classpath "com.android.tools.build:gradle:4.0.0" classpath "com.android.tools.build:gradle:4.0.0"
}
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
}
} }
allprojects { allprojects {
@ -19,6 +23,7 @@ allprojects {
jcenter() jcenter()
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url 'https://repo1.maven.org/maven2/' }
} }
} }