修改13日的bug
@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildToolsVersion '29.0.2'
|
buildToolsVersion '29.0.2'
|
||||||
// ndkVersion '23.0.7123448'
|
ndkVersion '23.0.7123448'
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.navinfo.outdoor"
|
applicationId "com.navinfo.outdoor"
|
||||||
|
@ -4,24 +4,20 @@
|
|||||||
package="com.navinfo.outdoor">
|
package="com.navinfo.outdoor">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||||
<uses-permission android:name="android.permission.READ_CALENDAR" />
|
<uses-permission android:name="android.permission.READ_CALENDAR" /> <!-- <uses-permission android:name="android.permission.WRITE_CALENDAR" /> -->
|
||||||
<!-- <uses-permission android:name="android.permission.WRITE_CALENDAR" />-->
|
|
||||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.READ_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.WRITE_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.CAMERA" /> <!-- <uses-sdk android:minSdkVersion="8"></uses-sdk> -->
|
<uses-permission android:name="android.permission.CAMERA" /> <!-- <uses-sdk android:minSdkVersion="8"></uses-sdk> -->
|
||||||
|
|
||||||
<!-- 在SDCard中创建与删除文件权限 -->
|
<!-- 在SDCard中创建与删除文件权限 -->
|
||||||
<uses-permission
|
<uses-permission
|
||||||
android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
|
android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
|
||||||
tools:ignore="ProtectedPermissions" />
|
tools:ignore="ProtectedPermissions" /> <!-- 安装APK权限 -->
|
||||||
<!-- 安装APK权限 -->
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> <!-- 友盟检测bug -->
|
||||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> -->
|
||||||
<!-- 友盟检测bug -->
|
<!-- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> -->
|
||||||
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />-->
|
<!-- <uses-permission android:name="android.permission.READ_PHONE_STATE" /> -->
|
||||||
<!-- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />-->
|
<!-- <uses-permission android:name="android.permission.INTERNET" /> -->
|
||||||
<!-- <uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
|
|
||||||
<!-- <uses-permission android:name="android.permission.INTERNET" /> -->
|
|
||||||
<!-- 腾讯地图 定位权限 -->
|
<!-- 腾讯地图 定位权限 -->
|
||||||
<!-- 通过GPS得到精确位置 -->
|
<!-- 通过GPS得到精确位置 -->
|
||||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- 通过网络得到粗略位置 -->
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- 通过网络得到粗略位置 -->
|
||||||
@ -44,25 +40,22 @@
|
|||||||
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:requestLegacyExternalStorage="true"
|
|
||||||
android:networkSecurityConfig="@xml/network_security_config"
|
|
||||||
android:largeHeap="true"
|
android:largeHeap="true"
|
||||||
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
|
android:requestLegacyExternalStorage="true"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.WhiteScreen">
|
android:theme="@style/Theme.WhiteScreen">
|
||||||
<activity android:name=".activity.PicturesActivity"
|
<activity android:name=".activity.StatementActivity"></activity>
|
||||||
>
|
<activity android:name=".activity.PicturesActivity"></activity>
|
||||||
|
|
||||||
</activity>
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.PictureActivity"
|
android:name=".activity.PictureActivity"
|
||||||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|navigation"
|
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|navigation"
|
||||||
android:launchMode="singleTop"></activity>
|
android:launchMode="singleTop" />
|
||||||
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="TencentMapSDK"
|
android:name="TencentMapSDK"
|
||||||
android:value="EWWBZ-2PB62-6JXUL-CEX7G-N7UE6-XRB4V" />
|
android:value="EWWBZ-2PB62-6JXUL-CEX7G-N7UE6-XRB4V" /> <!-- 今日头屏幕适配 -->
|
||||||
<!--今日头屏幕适配-->
|
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="design_width_in_dp"
|
android:name="design_width_in_dp"
|
||||||
android:value="360" />
|
android:value="360" />
|
||||||
@ -70,7 +63,8 @@
|
|||||||
android:name="design_height_in_dp"
|
android:name="design_height_in_dp"
|
||||||
android:value="640" />
|
android:value="640" />
|
||||||
|
|
||||||
<activity android:name=".activity.MainActivity"
|
<activity
|
||||||
|
android:name=".activity.MainActivity"
|
||||||
android:screenOrientation="portrait">
|
android:screenOrientation="portrait">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
@ -78,37 +72,37 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name=".activity.LoginActivity"
|
<activity
|
||||||
|
android:name=".activity.LoginActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:screenOrientation="portrait"/>
|
android:screenOrientation="portrait" /> <!-- |screenSize -->
|
||||||
<!--|screenSize-->
|
<activity
|
||||||
<activity android:name=".activity.HomeActivity"
|
android:name=".activity.HomeActivity"
|
||||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||||
android:screenOrientation="portrait"/>
|
android:screenOrientation="portrait" />
|
||||||
<activity android:name=".activity.WebActivity"
|
<activity
|
||||||
android:screenOrientation="portrait"/>
|
android:name=".activity.WebActivity"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.FragmentManagement"
|
android:name=".activity.FragmentManagement"
|
||||||
android:windowSoftInputMode="adjustPan"
|
android:screenOrientation="portrait"
|
||||||
android:screenOrientation="portrait"/>
|
android:windowSoftInputMode="adjustPan" />
|
||||||
<activity android:name=".activity.ImageShowActivity"
|
<activity
|
||||||
android:screenOrientation="portrait"/>
|
android:name=".activity.ImageShowActivity"
|
||||||
<activity android:name=".activity.UserActivity"
|
android:screenOrientation="portrait" />
|
||||||
android:screenOrientation="portrait"/>
|
<activity
|
||||||
|
android:name=".activity.UserActivity"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
android:authorities="com.navinfo.outdoor.fileprovider"
|
android:authorities="com.navinfo.outdoor.fileprovider"
|
||||||
android:grantUriPermissions="true"
|
android:exported="false"
|
||||||
android:exported="false">
|
android:grantUriPermissions="true">
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||||
android:resource="@xml/file_paths" />
|
android:resource="@xml/file_paths" />
|
||||||
</provider>
|
</provider>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
@ -42,6 +42,7 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
private Button btnLogin;
|
private Button btnLogin;
|
||||||
private SharedPreferences navInfo;
|
private SharedPreferences navInfo;
|
||||||
private SharedPreferences.Editor navInfoEditor;
|
private SharedPreferences.Editor navInfoEditor;
|
||||||
|
private TextView tvStatement;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStart() {
|
public void onStart() {
|
||||||
@ -51,6 +52,7 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayout() {
|
protected int getLayout() {
|
||||||
return R.layout.activity_login;
|
return R.layout.activity_login;
|
||||||
@ -64,12 +66,13 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onEvent(Message data) {
|
public void onEvent(Message data) {
|
||||||
if (data.what == Constant.REGISTER_WORD) {
|
if (data.what == Constant.REGISTER_WORD) {
|
||||||
if ((boolean)data.obj){
|
if ((boolean) data.obj) {
|
||||||
etLoginName.setText(Constant.USER_NAME);
|
etLoginName.setText(Constant.USER_NAME);
|
||||||
etLoginPaw.setText(Constant.PASS_WORD);
|
etLoginPaw.setText(Constant.PASS_WORD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
super.initView();
|
super.initView();
|
||||||
@ -77,19 +80,21 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
navInfo = getSharedPreferences("navInfo", Context.MODE_PRIVATE);
|
navInfo = getSharedPreferences("navInfo", Context.MODE_PRIVATE);
|
||||||
tvRegister = findViewById(R.id.tv_register);
|
tvRegister = findViewById(R.id.tv_register);
|
||||||
etLoginName = findViewById(R.id.et_login_name);
|
etLoginName = findViewById(R.id.et_login_name);
|
||||||
etLoginPaw = findViewById(R.id.et_login_paw);
|
etLoginPaw = findViewById(R.id.et_login_paw);
|
||||||
tvForgetPaw = findViewById(R.id.tv_forget_paw);
|
tvForgetPaw = findViewById(R.id.tv_forget_paw);
|
||||||
btnLogin = findViewById(R.id.btn_login);
|
btnLogin = findViewById(R.id.btn_login);
|
||||||
btnLogin.setOnClickListener(this::onClick);
|
btnLogin.setOnClickListener(this::onClick);
|
||||||
|
tvStatement = findViewById(R.id.tv_statement);
|
||||||
|
tvStatement.setOnClickListener(this::onClick);
|
||||||
tvRegister.setOnClickListener(this);
|
tvRegister.setOnClickListener(this);
|
||||||
tvForgetPaw.setOnClickListener(this);
|
tvForgetPaw.setOnClickListener(this);
|
||||||
String user_name = navInfo.getString("user_name", null);
|
String user_name = navInfo.getString("user_name", null);
|
||||||
if (user_name!=null&&!user_name.equals("")){
|
if (user_name != null && !user_name.equals("")) {
|
||||||
etLoginName.setText(user_name);
|
etLoginName.setText(user_name);
|
||||||
}
|
}
|
||||||
String pass_word = navInfo.getString("pass_word", null);
|
String pass_word = navInfo.getString("pass_word", null);
|
||||||
if (pass_word!=null&&!pass_word.equals("")){
|
if (pass_word != null && !pass_word.equals("")) {
|
||||||
etLoginPaw.setText(pass_word);
|
etLoginPaw.setText(pass_word);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,16 +113,20 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
break;
|
break;
|
||||||
case R.id.btn_login:
|
case R.id.btn_login:
|
||||||
String name = etLoginName.getText().toString().trim();
|
String name = etLoginName.getText().toString().trim();
|
||||||
if (name == null||name.equals("")) {
|
if (name == null || name.equals("")) {
|
||||||
Toast.makeText(this, "请输入账号", Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, "请输入账号", Toast.LENGTH_SHORT).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String paw = etLoginPaw.getText().toString().trim();
|
String paw = etLoginPaw.getText().toString().trim();
|
||||||
if (paw == null||paw.equals("")) {
|
if (paw == null || paw.equals("")) {
|
||||||
Toast.makeText(this, "请输入密码", Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, "请输入密码", Toast.LENGTH_SHORT).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
initLogIn(name,paw);
|
initLogIn(name, paw);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case R.id.tv_statement:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -125,11 +134,11 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
private void initLogIn(String name, String paw) {
|
private void initLogIn(String name, String paw) {
|
||||||
try {
|
try {
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("username",name);
|
httpParams.put("username", name);
|
||||||
long time=System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
httpParams.put("password",Base64.desEncrypt(time + Md5Util.toMD5(paw)));
|
httpParams.put("password", Base64.desEncrypt(time + Md5Util.toMD5(paw)));
|
||||||
httpParams.put("grant_type","password");
|
httpParams.put("grant_type", "password");
|
||||||
httpParams.put("datetime",time);
|
httpParams.put("datetime", time);
|
||||||
showLoadingDialog();
|
showLoadingDialog();
|
||||||
OkGoBuilder.getInstance().Builder(this)
|
OkGoBuilder.getInstance().Builder(this)
|
||||||
.url(HttpInterface.USER_LOGIN_OAUTH_TOKEN)
|
.url(HttpInterface.USER_LOGIN_OAUTH_TOKEN)
|
||||||
@ -140,31 +149,33 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
public void onSuccess(LoginOauthTokenBean response, int id) {
|
public void onSuccess(LoginOauthTokenBean response, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
|
|
||||||
if (response.getCode()==200){
|
if (response.getCode() == 200) {
|
||||||
LoginOauthTokenBean.BodyBean body = response.getBody();
|
LoginOauthTokenBean.BodyBean body = response.getBody();
|
||||||
navInfoEditor.putString("access_token",body.getAccess_token());
|
navInfoEditor.putString("access_token", body.getAccess_token());
|
||||||
navInfoEditor.putString("refresh_token",body.getRefresh_token());
|
navInfoEditor.putString("refresh_token", body.getRefresh_token());
|
||||||
navInfoEditor.putString("userId",body.getUserId());
|
navInfoEditor.putString("userId", body.getUserId());
|
||||||
navInfoEditor.commit();
|
navInfoEditor.commit();
|
||||||
if (body.getUserId()!=null&&!body.getUserId().equals("")){
|
if (body.getUserId() != null && !body.getUserId().equals("")) {
|
||||||
Constant.initRootFolder(body.getUserId());
|
Constant.initRootFolder(body.getUserId());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Constant.ACCESS_TOKEN=body.getAccess_token();
|
Constant.ACCESS_TOKEN = body.getAccess_token();
|
||||||
Constant.REFRESH_TOKEN=body.getRefresh_token();
|
Constant.REFRESH_TOKEN = body.getRefresh_token();
|
||||||
Constant.USERID=body.getUserId();
|
Constant.USERID = body.getUserId();
|
||||||
Constant.PASS_WORD=paw;
|
Constant.PASS_WORD = paw;
|
||||||
initGetUserInfo();//获取用户信息
|
initGetUserInfo();//获取用户信息
|
||||||
Toast.makeText(LoginActivity.this, "登录成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(LoginActivity.this, "登录成功", Toast.LENGTH_SHORT).show();
|
||||||
}else {
|
} else {
|
||||||
|
Toast.makeText(LoginActivity.this, response.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e, int id) {
|
public void onError(Throwable e, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
Toast.makeText(LoginActivity.this, e.getMessage()+"", Toast.LENGTH_SHORT).show();
|
Toast.makeText(LoginActivity.this, e.getMessage() + "", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -183,50 +194,50 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(UserDetailBean response, int id) {
|
public void onSuccess(UserDetailBean response, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
if (response.getCode()==200){
|
if (response.getCode() == 200) {
|
||||||
UserDetailBean.BodyBean body = response.getBody();
|
UserDetailBean.BodyBean body = response.getBody();
|
||||||
if (body!=null){
|
if (body != null) {
|
||||||
navInfoEditor.putString("username",body.getUsername());
|
navInfoEditor.putString("username", body.getUsername());
|
||||||
Constant.USER_NAME=body.getUsername();
|
Constant.USER_NAME = body.getUsername();
|
||||||
navInfoEditor.putString("mobile",body.getMobile());
|
navInfoEditor.putString("mobile", body.getMobile());
|
||||||
Constant.MOBILE=body.getMobile();
|
Constant.MOBILE = body.getMobile();
|
||||||
navInfoEditor.putInt("sex",body.getSex());//0:女 1:男
|
navInfoEditor.putInt("sex", body.getSex());//0:女 1:男
|
||||||
Constant.SEX=body.getSex();
|
Constant.SEX = body.getSex();
|
||||||
navInfoEditor.putString("qq",body.getQq());
|
navInfoEditor.putString("qq", body.getQq());
|
||||||
Constant.QQ=body.getQq();
|
Constant.QQ = body.getQq();
|
||||||
navInfoEditor.putString("wechat",body.getWechat());
|
navInfoEditor.putString("wechat", body.getWechat());
|
||||||
Constant.WECHAT=body.getWechat();
|
Constant.WECHAT = body.getWechat();
|
||||||
UserDetailBean.BodyBean.UserBankcardBean userBankcard = body.getUserBankcard();
|
UserDetailBean.BodyBean.UserBankcardBean userBankcard = body.getUserBankcard();
|
||||||
if (userBankcard!=null){//存储银行卡信息
|
if (userBankcard != null) {//存储银行卡信息
|
||||||
navInfoEditor.putString("bankAccount",userBankcard.getBankAccount());//银行卡编号
|
navInfoEditor.putString("bankAccount", userBankcard.getBankAccount());//银行卡编号
|
||||||
Constant.BANKACCOUNT=userBankcard.getBankAccount();
|
Constant.BANKACCOUNT = userBankcard.getBankAccount();
|
||||||
navInfoEditor.putString("idNumber",userBankcard.getIdNumber());//银行卡账号
|
navInfoEditor.putString("idNumber", userBankcard.getIdNumber());//银行卡账号
|
||||||
Constant.ID_NUMBER=userBankcard.getIdNumber();
|
Constant.ID_NUMBER = userBankcard.getIdNumber();
|
||||||
}
|
}
|
||||||
UserDetailBean.BodyBean.UserAuthBean userAuth = body.getUserAuth();
|
UserDetailBean.BodyBean.UserAuthBean userAuth = body.getUserAuth();
|
||||||
if (userAuth!=null){//存储身份证信息
|
if (userAuth != null) {//存储身份证信息
|
||||||
navInfoEditor.putString("name",userAuth.getName());//身份证姓名
|
navInfoEditor.putString("name", userAuth.getName());//身份证姓名
|
||||||
Constant.NAME=userAuth.getName();
|
Constant.NAME = userAuth.getName();
|
||||||
navInfoEditor.putString("idnum",userAuth.getIdnum());//身份证号码
|
navInfoEditor.putString("idnum", userAuth.getIdnum());//身份证号码
|
||||||
Constant.ID_NUM=userAuth.getIdnum();
|
Constant.ID_NUM = userAuth.getIdnum();
|
||||||
navInfoEditor.putInt("auditstatus",userAuth.getAuditstatus());//审核状态
|
navInfoEditor.putInt("auditstatus", userAuth.getAuditstatus());//审核状态
|
||||||
Constant.AUDITSTATUS=userAuth.getAuditstatus();
|
Constant.AUDITSTATUS = userAuth.getAuditstatus();
|
||||||
navInfoEditor.putString("auditmsg",userAuth.getAuditmsg());//审核信息
|
navInfoEditor.putString("auditmsg", userAuth.getAuditmsg());//审核信息
|
||||||
Constant.AUDITMSG=userAuth.getAuditmsg();
|
Constant.AUDITMSG = userAuth.getAuditmsg();
|
||||||
}
|
}
|
||||||
navInfoEditor.commit();
|
navInfoEditor.commit();
|
||||||
}
|
}
|
||||||
Intent intent = new Intent(LoginActivity.this, HomeActivity.class);
|
Intent intent = new Intent(LoginActivity.this, HomeActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
finish();
|
finish();
|
||||||
}else {
|
} else {
|
||||||
Toast.makeText(LoginActivity.this, response.getMessage(), Toast.LENGTH_SHORT).show();
|
Toast.makeText(LoginActivity.this, response.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e, int id) {
|
public void onError(Throwable e, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
Toast.makeText(LoginActivity.this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
Toast.makeText(LoginActivity.this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -238,6 +249,7 @@ public class LoginActivity extends BaseActivity implements View.OnClickListener
|
|||||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
if (EventBus.getDefault().isRegistered(this))//加上判断
|
if (EventBus.getDefault().isRegistered(this))//加上判断
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.navinfo.outdoor.activity;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import com.navinfo.outdoor.R;
|
||||||
|
|
||||||
|
public class StatementActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_statement);
|
||||||
|
}
|
||||||
|
}
|
@ -48,6 +48,7 @@ public class PoiTaskAdapter extends RecyclerView.Adapter<PoiTaskAdapter.ViewHold
|
|||||||
}else if (listBean.getAuditStatus() == -1){
|
}else if (listBean.getAuditStatus() == -1){
|
||||||
holder.tvAuditStatus.setText("待审核");
|
holder.tvAuditStatus.setText("待审核");
|
||||||
}
|
}
|
||||||
|
|
||||||
holder.tvMany.setText("¥0.0");
|
holder.tvMany.setText("¥0.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ public class CapacityEvaluationFragment extends BaseFragment implements View.OnC
|
|||||||
private ImageView ivEvaluationTaskFinish;
|
private ImageView ivEvaluationTaskFinish;
|
||||||
private XRecyclerView capacityEvaluationRecycler;
|
private XRecyclerView capacityEvaluationRecycler;
|
||||||
private CapacityEvaluationAdapter capacityEvaluationAdapter;
|
private CapacityEvaluationAdapter capacityEvaluationAdapter;
|
||||||
|
private int capacityPage = 1;
|
||||||
|
|
||||||
|
|
||||||
public static CapacityEvaluationFragment newInstance(Bundle bundle) {
|
public static CapacityEvaluationFragment newInstance(Bundle bundle) {
|
||||||
@ -61,8 +62,8 @@ public class CapacityEvaluationFragment extends BaseFragment implements View.OnC
|
|||||||
capacityEvaluationRecycler.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
capacityEvaluationRecycler.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
||||||
capacityEvaluationRecycler.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
capacityEvaluationRecycler.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
||||||
//取消上拉加载,刷新功能
|
//取消上拉加载,刷新功能
|
||||||
capacityEvaluationRecycler.setPullRefreshEnabled(false);
|
// capacityEvaluationRecycler.setPullRefreshEnabled(false);
|
||||||
capacityEvaluationRecycler.setLoadingMoreEnabled(false);
|
// capacityEvaluationRecycler.setLoadingMoreEnabled(false);
|
||||||
capacityEvaluationAdapter = new CapacityEvaluationAdapter(getActivity());
|
capacityEvaluationAdapter = new CapacityEvaluationAdapter(getActivity());
|
||||||
capacityEvaluationRecycler.setAdapter(capacityEvaluationAdapter);
|
capacityEvaluationRecycler.setAdapter(capacityEvaluationAdapter);
|
||||||
capacityEvaluationRecycler.getDefaultFootView().setNoMoreHint("加载成功");
|
capacityEvaluationRecycler.getDefaultFootView().setNoMoreHint("加载成功");
|
||||||
@ -97,8 +98,8 @@ public class CapacityEvaluationFragment extends BaseFragment implements View.OnC
|
|||||||
private void initNewWork() {
|
private void initNewWork() {
|
||||||
showLoadingDialog();
|
showLoadingDialog();
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("fid", "1");
|
httpParams.put("fid", "4");
|
||||||
httpParams.put("pageNum", "1");
|
httpParams.put("pageNum", capacityPage);
|
||||||
httpParams.put("pageSize", "10");
|
httpParams.put("pageSize", "10");
|
||||||
OkGoBuilder.getInstance()
|
OkGoBuilder.getInstance()
|
||||||
.Builder(getActivity())
|
.Builder(getActivity())
|
||||||
@ -111,6 +112,7 @@ public class CapacityEvaluationFragment extends BaseFragment implements View.OnC
|
|||||||
public void onSuccess(TaskPrefectureBean response, int id) {
|
public void onSuccess(TaskPrefectureBean response, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
capacityEvaluationAdapter.setCapacityList(response.getBody().getList());
|
capacityEvaluationAdapter.setCapacityList(response.getBody().getList());
|
||||||
|
capacityPage++;
|
||||||
Log.d("TAG", "onSuccess: " + response.getMessage() + "sssssssssssss");
|
Log.d("TAG", "onSuccess: " + response.getMessage() + "sssssssssssss");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ public class EventPrefectureFragment extends BaseFragment implements View.OnClic
|
|||||||
private XRecyclerView eventRecycler;
|
private XRecyclerView eventRecycler;
|
||||||
private List<TaskPrefectureBean.BodyBean.ListBean> taskExplainBean;
|
private List<TaskPrefectureBean.BodyBean.ListBean> taskExplainBean;
|
||||||
private EventPrefectureAdapter eventPrefectureAdapter;
|
private EventPrefectureAdapter eventPrefectureAdapter;
|
||||||
|
private int eventPage = 1;
|
||||||
|
|
||||||
|
|
||||||
public static EventPrefectureFragment newInstance(Bundle bundle) {
|
public static EventPrefectureFragment newInstance(Bundle bundle) {
|
||||||
@ -63,12 +64,12 @@ public class EventPrefectureFragment extends BaseFragment implements View.OnClic
|
|||||||
private void initNetwork() {
|
private void initNetwork() {
|
||||||
showLoadingDialog();
|
showLoadingDialog();
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("fid", "1");
|
httpParams.put("fid", "2");
|
||||||
httpParams.put("pageNum", "1");
|
httpParams.put("pageNum", eventPage);
|
||||||
httpParams.put("pageSize", "10");
|
httpParams.put("pageSize", "20");
|
||||||
OkGoBuilder.getInstance()
|
OkGoBuilder.getInstance()
|
||||||
.Builder(getActivity())
|
.Builder(getActivity())
|
||||||
.url(HttpInterface.MSG_LISt)
|
.url(HttpInterface.LIST_EVENT)
|
||||||
.cls(TaskPrefectureBean.class)
|
.cls(TaskPrefectureBean.class)
|
||||||
.params(httpParams)
|
.params(httpParams)
|
||||||
.token(Constant.ACCESS_TOKEN)
|
.token(Constant.ACCESS_TOKEN)
|
||||||
@ -78,6 +79,7 @@ public class EventPrefectureFragment extends BaseFragment implements View.OnClic
|
|||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
eventPrefectureAdapter.setDataBeans(taskPrefectureBean.getBody().getList());
|
eventPrefectureAdapter.setDataBeans(taskPrefectureBean.getBody().getList());
|
||||||
Log.d("TAG", "onSuccess: " + taskPrefectureBean.getMessage() + "sssssssssssss");
|
Log.d("TAG", "onSuccess: " + taskPrefectureBean.getMessage() + "sssssssssssss");
|
||||||
|
eventPage++;
|
||||||
//initEventPrefecture(eventPrefectureBean,b);
|
//initEventPrefecture(eventPrefectureBean,b);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,8 +144,8 @@ public class EventPrefectureFragment extends BaseFragment implements View.OnClic
|
|||||||
eventRecycler.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
eventRecycler.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
||||||
eventRecycler.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
eventRecycler.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
||||||
//取消上拉加载,刷新功能。
|
//取消上拉加载,刷新功能。
|
||||||
eventRecycler.setPullRefreshEnabled(false);
|
// eventRecycler.setPullRefreshEnabled(false);
|
||||||
eventRecycler.setLoadingMoreEnabled(false);
|
// eventRecycler.setLoadingMoreEnabled(false);
|
||||||
eventPrefectureAdapter = new EventPrefectureAdapter(getActivity());
|
eventPrefectureAdapter = new EventPrefectureAdapter(getActivity());
|
||||||
eventRecycler.setAdapter(eventPrefectureAdapter);
|
eventRecycler.setAdapter(eventPrefectureAdapter);
|
||||||
eventRecycler.getDefaultFootView().setNoMoreHint("已全部加载完毕");
|
eventRecycler.getDefaultFootView().setNoMoreHint("已全部加载完毕");
|
||||||
|
@ -87,7 +87,7 @@ public class MessageFragment extends BaseFragment implements View.OnClickListene
|
|||||||
private void initNetwork() {
|
private void initNetwork() {
|
||||||
showLoadingDialog();
|
showLoadingDialog();
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("fid", "1");
|
httpParams.put("fid", "5");
|
||||||
httpParams.put("pageNum", "1");
|
httpParams.put("pageNum", "1");
|
||||||
httpParams.put("pageSize", "10");
|
httpParams.put("pageSize", "10");
|
||||||
OkGoBuilder.getInstance()
|
OkGoBuilder.getInstance()
|
||||||
|
@ -77,9 +77,9 @@ public class PoiTaskFragment extends BaseFragment implements View.OnClickListene
|
|||||||
ivPoiTaskFinish.setOnClickListener(this::onClick);
|
ivPoiTaskFinish.setOnClickListener(this::onClick);
|
||||||
poiTaskXrv = (XRecyclerView) findViewById(R.id.poiTask_xrv);
|
poiTaskXrv = (XRecyclerView) findViewById(R.id.poiTask_xrv);
|
||||||
poiTaskXrv.setLayoutManager(new LinearLayoutManager(getActivity()));
|
poiTaskXrv.setLayoutManager(new LinearLayoutManager(getActivity()));
|
||||||
poiTaskXrv.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL));
|
|
||||||
poiTaskXrv.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
poiTaskXrv.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
||||||
poiTaskXrv.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
poiTaskXrv.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
||||||
|
poiTaskXrv.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL));
|
||||||
poiTaskXrv.setLoadingListener(new XRecyclerView.LoadingListener() {
|
poiTaskXrv.setLoadingListener(new XRecyclerView.LoadingListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onRefresh() {
|
public void onRefresh() {
|
||||||
|
@ -35,6 +35,7 @@ public class TaskExplainFragment extends BaseFragment implements View.OnClickLis
|
|||||||
private XRecyclerView taskExplainRecycle;
|
private XRecyclerView taskExplainRecycle;
|
||||||
|
|
||||||
private TaskExplainAdapter taskExplainAdapter;
|
private TaskExplainAdapter taskExplainAdapter;
|
||||||
|
private int taskPage = 1;
|
||||||
|
|
||||||
|
|
||||||
public static TaskExplainFragment newInstance(Bundle bundle) {
|
public static TaskExplainFragment newInstance(Bundle bundle) {
|
||||||
@ -62,8 +63,8 @@ public class TaskExplainFragment extends BaseFragment implements View.OnClickLis
|
|||||||
taskExplainRecycle.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
taskExplainRecycle.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
||||||
taskExplainRecycle.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
taskExplainRecycle.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
||||||
//取消上啦加载下拉刷新
|
//取消上啦加载下拉刷新
|
||||||
taskExplainRecycle.setPullRefreshEnabled(false);
|
// taskExplainRecycle.setPullRefreshEnabled(false);
|
||||||
taskExplainRecycle.setLoadingMoreEnabled(false);
|
// taskExplainRecycle.setLoadingMoreEnabled(false);
|
||||||
taskExplainAdapter = new TaskExplainAdapter(getActivity());
|
taskExplainAdapter = new TaskExplainAdapter(getActivity());
|
||||||
taskExplainRecycle.setAdapter(taskExplainAdapter);
|
taskExplainRecycle.setAdapter(taskExplainAdapter);
|
||||||
taskExplainRecycle.getDefaultFootView().setNoMoreHint("加载完毕");
|
taskExplainRecycle.getDefaultFootView().setNoMoreHint("加载完毕");
|
||||||
@ -98,12 +99,12 @@ public class TaskExplainFragment extends BaseFragment implements View.OnClickLis
|
|||||||
private void initNetWork() {
|
private void initNetWork() {
|
||||||
showLoadingDialog();
|
showLoadingDialog();
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("fid", "1");
|
httpParams.put("fid", "3");
|
||||||
httpParams.put("pageNum", "1");
|
httpParams.put("pageNum", taskPage);
|
||||||
httpParams.put("pageSize", "10");
|
httpParams.put("pageSize", "20");
|
||||||
OkGoBuilder.getInstance()
|
OkGoBuilder.getInstance()
|
||||||
.Builder(getActivity())
|
.Builder(getActivity())
|
||||||
.url(HttpInterface.MSG_LISt)
|
.url(HttpInterface.LIST_TASK_EXPLAIN)
|
||||||
.cls(TaskPrefectureBean.class)
|
.cls(TaskPrefectureBean.class)
|
||||||
.params(httpParams)
|
.params(httpParams)
|
||||||
.token(Constant.ACCESS_TOKEN)
|
.token(Constant.ACCESS_TOKEN)
|
||||||
@ -112,6 +113,7 @@ public class TaskExplainFragment extends BaseFragment implements View.OnClickLis
|
|||||||
public void onSuccess(TaskPrefectureBean response, int id) {
|
public void onSuccess(TaskPrefectureBean response, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
taskExplainAdapter.setExplainList(response.getBody().getList());
|
taskExplainAdapter.setExplainList(response.getBody().getList());
|
||||||
|
taskPage++;
|
||||||
Log.d("TAG", "onSuccess: " + response.getMessage() + "");
|
Log.d("TAG", "onSuccess: " + response.getMessage() + "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ public class TaskPrefectureFragment extends BaseFragment implements View.OnClick
|
|||||||
private XRecyclerView taskRecycler;
|
private XRecyclerView taskRecycler;
|
||||||
private List<TaskPrefectureBean.BodyBean.ListBean> dataBeanList;
|
private List<TaskPrefectureBean.BodyBean.ListBean> dataBeanList;
|
||||||
private TaskPrefectureAdapter taskPrefectureAdapter;
|
private TaskPrefectureAdapter taskPrefectureAdapter;
|
||||||
|
private int taskPage = 1;
|
||||||
|
|
||||||
|
|
||||||
public static TaskPrefectureFragment newInstance(Bundle bundle) {
|
public static TaskPrefectureFragment newInstance(Bundle bundle) {
|
||||||
@ -63,8 +64,8 @@ public class TaskPrefectureFragment extends BaseFragment implements View.OnClick
|
|||||||
taskRecycler.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
taskRecycler.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
|
||||||
taskRecycler.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
taskRecycler.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
|
||||||
//取消上拉加载,刷新功能。
|
//取消上拉加载,刷新功能。
|
||||||
taskRecycler.setPullRefreshEnabled(false);
|
// taskRecycler.setPullRefreshEnabled(false);
|
||||||
taskRecycler.setLoadingMoreEnabled(false);
|
// taskRecycler.setLoadingMoreEnabled(false);
|
||||||
taskPrefectureAdapter = new TaskPrefectureAdapter(getActivity());
|
taskPrefectureAdapter = new TaskPrefectureAdapter(getActivity());
|
||||||
taskRecycler.setAdapter(taskPrefectureAdapter);
|
taskRecycler.setAdapter(taskPrefectureAdapter);
|
||||||
taskRecycler.getDefaultFootView().setNoMoreHint("已全部加载完毕");
|
taskRecycler.getDefaultFootView().setNoMoreHint("已全部加载完毕");
|
||||||
@ -100,11 +101,11 @@ public class TaskPrefectureFragment extends BaseFragment implements View.OnClick
|
|||||||
showLoadingDialog();
|
showLoadingDialog();
|
||||||
HttpParams httpParams = new HttpParams();
|
HttpParams httpParams = new HttpParams();
|
||||||
httpParams.put("fid", "1");
|
httpParams.put("fid", "1");
|
||||||
httpParams.put("pageNum", "1");
|
httpParams.put("pageNum", taskPage);
|
||||||
httpParams.put("pageSize", "20");
|
httpParams.put("pageSize", "20");
|
||||||
OkGoBuilder.getInstance()
|
OkGoBuilder.getInstance()
|
||||||
.Builder(getActivity())
|
.Builder(getActivity())
|
||||||
.url(HttpInterface.MSG_LISt)
|
.url(HttpInterface.LIST_TASK)
|
||||||
.cls(TaskPrefectureBean.class)
|
.cls(TaskPrefectureBean.class)
|
||||||
.params(httpParams)
|
.params(httpParams)
|
||||||
.token(Constant.ACCESS_TOKEN)
|
.token(Constant.ACCESS_TOKEN)
|
||||||
@ -113,6 +114,7 @@ public class TaskPrefectureFragment extends BaseFragment implements View.OnClick
|
|||||||
public void onSuccess(TaskPrefectureBean taskPrefectureBean, int id) {
|
public void onSuccess(TaskPrefectureBean taskPrefectureBean, int id) {
|
||||||
dismissLoadingDialog();
|
dismissLoadingDialog();
|
||||||
taskPrefectureAdapter.setDataBeans(taskPrefectureBean.getBody().getList());
|
taskPrefectureAdapter.setDataBeans(taskPrefectureBean.getBody().getList());
|
||||||
|
taskPage++;
|
||||||
Log.d("TAG", "onSuccess: " + taskPrefectureBean.getMessage() + "");
|
Log.d("TAG", "onSuccess: " + taskPrefectureBean.getMessage() + "");
|
||||||
//initTaskSpecification(taskSpecificationBean,start);
|
//initTaskSpecification(taskSpecificationBean,start);
|
||||||
}
|
}
|
||||||
|
@ -598,7 +598,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
|
|||||||
otherMarker.setClickable(true);
|
otherMarker.setClickable(true);
|
||||||
break;
|
break;
|
||||||
case 6://面状任务
|
case 6://面状任务
|
||||||
BitmapDescriptor Descriptor = BitmapDescriptorFactory.fromResource(R.drawable.poi_video_bg);
|
BitmapDescriptor Descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_facet_bg1);
|
||||||
Marker planarMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(Descriptor).alpha(0.9f)
|
Marker planarMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(Descriptor).alpha(0.9f)
|
||||||
.flat(true)
|
.flat(true)
|
||||||
.clockwise(false));
|
.clockwise(false));
|
||||||
@ -707,7 +707,7 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
|
|||||||
} else if (poiEntity.getType() == 5) {
|
} else if (poiEntity.getType() == 5) {
|
||||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_other_bag);
|
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_other_bag);
|
||||||
} else if (poiEntity.getType() == 6) {
|
} else if (poiEntity.getType() == 6) {
|
||||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_poi_bag);
|
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_facet_bag);
|
||||||
}
|
}
|
||||||
if (bigMarker == null) {
|
if (bigMarker == null) {
|
||||||
bigMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(descriptor).alpha(0.9f)
|
bigMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(descriptor).alpha(0.9f)
|
||||||
@ -901,9 +901,9 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
|
|||||||
case 6://面状任务
|
case 6://面状任务
|
||||||
BitmapDescriptor Descriptor = null;
|
BitmapDescriptor Descriptor = null;
|
||||||
if (poiEntity.getTaskStatus() == 1) {
|
if (poiEntity.getTaskStatus() == 1) {
|
||||||
Descriptor = BitmapDescriptorFactory.fromResource(R.drawable.poi_video_bg);
|
Descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_facet_bg1);
|
||||||
} else {
|
} else {
|
||||||
Descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_other_have_bag);
|
Descriptor = BitmapDescriptorFactory.fromResource(R.drawable.grayfacet);
|
||||||
}
|
}
|
||||||
Marker planarMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(Descriptor).alpha(0.9f)
|
Marker planarMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(Descriptor).alpha(0.9f)
|
||||||
.clockwise(false)
|
.clockwise(false)
|
||||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
app/src/main/res/drawable-hdpi/grayfacet.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
app/src/main/res/drawable-hdpi/marker_facet_bg1.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 928 B |
Before Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 893 B |
BIN
app/src/main/res/drawable/marker_facet_bag.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 888 B |
Before Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 802 B |
Before Width: | Height: | Size: 806 B |
Before Width: | Height: | Size: 832 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
@ -118,7 +118,7 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@id/et_login_paw" />
|
app:layout_constraintTop_toBottomOf="@id/et_login_paw" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView"
|
android:id="@+id/tv_statement"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="2dp"
|
android:layout_marginLeft="2dp"
|
||||||
|
@ -86,6 +86,7 @@
|
|||||||
app:layout_constraintTop_toTopOf="@+id/btn_switch"
|
app:layout_constraintTop_toTopOf="@+id/btn_switch"
|
||||||
android:background="@color/whiteAlpha50"
|
android:background="@color/whiteAlpha50"
|
||||||
android:padding="@dimen/default_widget_padding"
|
android:padding="@dimen/default_widget_padding"
|
||||||
|
android:textColor="@color/colorRead"
|
||||||
android:format="00:00:00"
|
android:format="00:00:00"
|
||||||
android:layout_marginTop="@dimen/default_widget_padding"></TextView>
|
android:layout_marginTop="@dimen/default_widget_padding"></TextView>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
9
app/src/main/res/layout/activity_statement.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
tools:context=".activity.StatementActivity">
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -23,7 +23,7 @@
|
|||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
style="@style/text_style_toolbar_title"
|
style="@style/text_style_toolbar_title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:text="webView"
|
android:text="详情页面"
|
||||||
android:layout_toRightOf="@id/iv_icon"
|
android:layout_toRightOf="@id/iv_icon"
|
||||||
android:textColor="#fff" />
|
android:textColor="#fff" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
@ -45,7 +45,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
android:text="2222"
|
|
||||||
app:layout_constraintRight_toLeftOf="@+id/tv_auditStatus"
|
app:layout_constraintRight_toLeftOf="@+id/tv_auditStatus"
|
||||||
app:layout_constraintTop_toTopOf="@+id/tv_createTime" />
|
app:layout_constraintTop_toTopOf="@+id/tv_createTime" />
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:background="@drawable/marker_poi_bg"
|
android:background="@drawable/marker_poi_bags"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -151,7 +151,6 @@
|
|||||||
style="@style/main_text_style"
|
style="@style/main_text_style"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
||||||
android:text="我的等级" />
|
android:text="我的等级" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">navinfo</string>
|
<string name="app_name">地图寻宝</string>
|
||||||
<string name="title_activity_home">HomeActivity</string>
|
<string name="title_activity_home">HomeActivity</string>
|
||||||
<!-- Strings used for fragments for navigation -->
|
<!-- Strings used for fragments for navigation -->
|
||||||
<string name="first_fragment_label">First Fragment</string>
|
<string name="first_fragment_label">First Fragment</string>
|
||||||
|