修改新手引导bug和8.27提出的bug
This commit is contained in:
parent
97f4db7efe
commit
72dd2af310
@ -128,7 +128,7 @@ public class GuidanceActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
initGuide();
|
||||
Toast.makeText(GuidanceActivity.this, "可以在发现版块的任务说明中,进行再次学习哦", Toast.LENGTH_SHORT).show();
|
||||
// Toast.makeText(GuidanceActivity.this, "可以在发现版块的任务说明中,进行再次学习哦", Toast.LENGTH_SHORT).show();
|
||||
Intent intent = new Intent(GuidanceActivity.this, HomeActivity.class);
|
||||
startActivity(intent);
|
||||
finish();
|
||||
@ -145,14 +145,14 @@ public class GuidanceActivity extends BaseActivity {
|
||||
.Builder(this)
|
||||
.url(HttpInterface.INSERT_USER_GUIDE)
|
||||
.cls(BaseBean.class)
|
||||
.token(Constant.ACCESS_TOKEN)
|
||||
.params(new HttpParams())
|
||||
.postRequest(new Callback<BaseBean<Integer>>() {
|
||||
.getRequest(new Callback<BaseBean<Integer>>() {
|
||||
@Override
|
||||
public void onSuccess(BaseBean<Integer> response, int id) {
|
||||
dismissLoadingDialog();
|
||||
if (response.getCode() == 200) {
|
||||
Toast.makeText(GuidanceActivity.this, "可以在发现版块的任务说明中,进行再次学习哦", Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(GuidanceActivity.this, "可以在发现版块的任务说明中,进行再次学习哦", Toast.LENGTH_LONG).show();
|
||||
|
||||
Intent intent = new Intent(GuidanceActivity.this, HomeActivity.class);
|
||||
startActivity(intent);
|
||||
finish();
|
||||
@ -162,6 +162,8 @@ public class GuidanceActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onError(Throwable e, int id) {
|
||||
dismissLoadingDialog();
|
||||
Toast.makeText(GuidanceActivity.this, e.getMessage()+"", Toast.LENGTH_SHORT).show();
|
||||
Log.e("TAG", "onError: 错错错"+e.getMessage()+"");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -117,6 +117,7 @@ public class PictureActivity extends BaseActivity implements View.OnClickListene
|
||||
private ImageView ivLocation;
|
||||
private CheckBox cbMapType;
|
||||
private boolean isMapSlide = false;
|
||||
private int pageNum = 0;
|
||||
|
||||
private Handler handler = new Handler(new Handler.Callback() {
|
||||
@Override
|
||||
@ -272,7 +273,7 @@ public class PictureActivity extends BaseActivity implements View.OnClickListene
|
||||
@Override
|
||||
public void onFileReady(@Nullable @org.jetbrains.annotations.Nullable File file) {
|
||||
assert file != null;
|
||||
Toast.makeText(PictureActivity.this, "保存成功:" + file.getPath(), Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(PictureActivity.this, "保存成功:" + pageNum++, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
if (camera.isTakingVideo()) {
|
||||
|
@ -84,6 +84,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
||||
private ViewGroup layerChange; // 切换地图和相机的父控件
|
||||
private CheckBox capturePicture;//拍照
|
||||
private boolean isMapSlide = false;
|
||||
private int pageNum=1;//拍了多少张照片
|
||||
private Handler handler = new Handler(new Handler.Callback() {
|
||||
@Override
|
||||
public boolean handleMessage(@NonNull Message msg) {
|
||||
@ -213,10 +214,10 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
||||
if (type == 3) {
|
||||
message.what = 0x103;
|
||||
handler.sendMessageDelayed(message, 0);
|
||||
Toast.makeText(PicturesActivity.this, "保存成功:" + file.getPath(), Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(PicturesActivity.this, "保存成功:" + pageNum++, Toast.LENGTH_SHORT).show();
|
||||
} else {
|
||||
message.what = 0x101;
|
||||
Toast.makeText(PicturesActivity.this, "保存成功" + file.getPath(), Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(PicturesActivity.this, "保存成功" + pageNum++, Toast.LENGTH_SHORT).show();
|
||||
handler.sendMessageDelayed(message, 2000);
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@ import com.navinfo.outdoor.api.Constant;
|
||||
public class HttpInterface {
|
||||
public static final String IP = "http://dtxbmaps.navinfo.com/dtxb/m4";//正式接口
|
||||
public static final String TEST_IP = "http://172.23.139.4:9999/m4";//测试接口
|
||||
|
||||
public static final String TEST_IP1 = "http://172.21.98.90:9999/m4";//引导页完成接口
|
||||
public static final String USER_PATH = "/user/";//我的
|
||||
public static final String MSG_LIST_PATH = "/msgList/";//发现
|
||||
public static final String USER_LOGIN_PATH = "/userlogin/";//登录
|
||||
@ -141,7 +141,7 @@ public class HttpInterface {
|
||||
//dtxbmaps.navinfo.com/dtxb/m4/user/user/1/getUserDetailByUserid/1?datetime=1628749294718
|
||||
USER_DETAIL_BY_USER_ID = TEST_IP + USER_PATH + "user/" + USERID + "/getUserDetailByUserid/" + USERID; //获取用户信息
|
||||
//http://172.21.98.90:9999/m4/user/userGuide/1/insertUserGuide
|
||||
INSERT_USER_GUIDE=TEST_IP +USER_PATH+"userGuide/"+USERID+"/insertUserGuide";//引导页完成接口
|
||||
INSERT_USER_GUIDE=TEST_IP1 +USER_PATH+"userGuide/"+USERID+"/insertUserGuide";//引导页完成接口
|
||||
/**
|
||||
* 发现
|
||||
* Path=/m4/msgList/**
|
||||
|
@ -314,6 +314,16 @@
|
||||
android:layout_margin="10dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_type" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按图片可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginLeft="10dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_02"
|
||||
app:layout_constraintLeft_toRightOf="@+id/tv_02"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_02"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/linear_photograph"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -26,6 +26,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_01"
|
||||
android:layout_width="wrap_content"
|
||||
@ -36,7 +37,50 @@
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<RelativeLayout
|
||||
android:id="@+id/linear_exist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@drawable/underline"
|
||||
android:padding="2dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_01">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_exist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="是否存在*"
|
||||
android:textColor="#333" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_exist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_toEndOf="@id/tv_exist"
|
||||
android:layout_toRightOf="@id/tv_exist"
|
||||
android:background="@color/white"
|
||||
android:textColor="#333"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/ic_baseline_arrow_drop" />
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:id="@+id/linear_pot"
|
||||
android:layout_width="match_parent"
|
||||
@ -47,7 +91,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_01">
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_exist">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_pot"
|
||||
@ -244,50 +288,7 @@
|
||||
android:background="@drawable/ic_baseline_arrow_drop" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/linear_exist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@drawable/underline"
|
||||
android:padding="2dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_type">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_exist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="是否存在*"
|
||||
android:textColor="#333" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_exist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_toEndOf="@id/tv_exist"
|
||||
android:layout_toRightOf="@id/tv_exist"
|
||||
android:background="@color/white"
|
||||
android:textColor="#333"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/ic_baseline_arrow_drop" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_02"
|
||||
@ -298,8 +299,17 @@
|
||||
android:textColor="@color/black"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_exist" />
|
||||
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_type" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按图片可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginLeft="10dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_02"
|
||||
app:layout_constraintLeft_toRightOf="@+id/tv_02"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_02"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/linear_photograph"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_delete"
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:padding="5dp"
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="15dp"
|
||||
android:padding="10dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/icon_delete"
|
||||
|
@ -180,7 +180,16 @@
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintLeft_toLeftOf="@id/ll_data"
|
||||
app:layout_constraintTop_toBottomOf="@id/ll_data" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按图片可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginLeft="10dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_other_picture"
|
||||
app:layout_constraintLeft_toRightOf="@+id/tv_other_picture"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_other_picture"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_image_picture"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -154,9 +154,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:gravity="center"
|
||||
android:text="录像"
|
||||
android:text="点击录像"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
@ -167,11 +168,18 @@
|
||||
|
||||
app:layout_constraintLeft_toLeftOf="@id/ll_pictures"
|
||||
app:layout_constraintTop_toBottomOf="@id/ll_pictures">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按录像可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginLeft="10dp"
|
||||
/>
|
||||
<ImageView
|
||||
android:id="@+id/iv_road_picture"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:maxWidth="200dp"
|
||||
android:maxHeight="100dp"
|
||||
android:minWidth="140dp"
|
||||
|
@ -11,13 +11,16 @@
|
||||
android:paddingTop="@dimen/top_pind_sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_mine"
|
||||
style="@style/text_style_toolbar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:gravity="center"
|
||||
android:text="我的"
|
||||
android:textColor="#000" />
|
||||
android:textColor="#000"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
</RelativeLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
@ -254,7 +254,16 @@
|
||||
android:textColor="@color/black"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/linear_exist" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按图片可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginLeft="10dp"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_02"
|
||||
app:layout_constraintLeft_toRightOf="@+id/tv_02"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_02"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/linear_photograph"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -172,16 +172,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:gravity="center"
|
||||
android:text="拍照"
|
||||
android:text="点击拍照"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按图片或者录像可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="5dp"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -192,11 +186,18 @@
|
||||
android:layout_marginTop="10dp"
|
||||
app:layout_constraintLeft_toLeftOf="@id/ll_pictures"
|
||||
app:layout_constraintTop_toBottomOf="@id/ll_pictures">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="长按图片或者录像可删除"
|
||||
android:textSize="16sp"
|
||||
android:layout_marginLeft="10dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_poi_video_picture"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="25dp"
|
||||
android:maxWidth="200dp"
|
||||
android:maxHeight="100dp"
|
||||
android:minWidth="140dp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user