Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
15bcbc5f
Commit
15bcbc5f
authored
Aug 24, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://113.105.137.151:22280/lify/rvapp
into dev-member-john
parents
d1c13db0
fcff8578
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
83 additions
and
41 deletions
+83
-41
build.gradle
RvClient/build.gradle
+5
-0
RvClientApplication.java
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
+10
-0
start_back_icon.xml
RvClient/src/main/res/drawable/start_back_icon.xml
+1
-1
styles.xml
RvClient/src/main/res/values/styles.xml
+1
-0
common_icon_circle_delete.png
...src/main/res/drawable-xhdpi/common_icon_circle_delete.png
+0
-0
PostPatActivity.java
...c/main/java/com/xxfc/discovery/other/PostPatActivity.java
+49
-31
activity_post_pat.xml
module_discovery/src/main/res/layout/activity_post_pat.xml
+13
-2
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+3
-4
activity_travel_order_details.xml
...ome/src/main/res/layout/activity_travel_order_details.xml
+0
-2
fragment_home.xml
module_home/src/main/res/layout/fragment_home.xml
+1
-1
No files found.
RvClient/build.gradle
View file @
15bcbc5f
...
@@ -107,6 +107,11 @@ dependencies {
...
@@ -107,6 +107,11 @@ dependencies {
api
'com.jakewharton:butterknife:9.0.0-rc1'
api
'com.jakewharton:butterknife:9.0.0-rc1'
annotationProcessor
'com.jakewharton:butterknife-compiler:9.0.0-rc1'
annotationProcessor
'com.jakewharton:butterknife-compiler:9.0.0-rc1'
implementation
'com.android.support.constraint:constraint-layout:1.1.3'
implementation
'com.android.support.constraint:constraint-layout:1.1.3'
debugCompile
'com.squareup.leakcanary:leakcanary-android:1.6.1'
releaseCompile
'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
// api project(path: ':RvTravel')
// api project(path: ':RvTravel')
api
project
(
':component_resource'
)
api
project
(
':component_resource'
)
api
project
(
path:
':module_home'
)
api
project
(
path:
':module_home'
)
...
...
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
View file @
15bcbc5f
...
@@ -22,6 +22,7 @@ import com.frame.rv.config.RvFrameConfig;
...
@@ -22,6 +22,7 @@ import com.frame.rv.config.RvFrameConfig;
import
com.ruiwenliu.wrapper.util.LogUtils
;
import
com.ruiwenliu.wrapper.util.LogUtils
;
import
com.rv.component.utils.LogUtil
;
import
com.rv.component.utils.LogUtil
;
import
com.sh.sdk.shareinstall.ShareInstall
;
import
com.sh.sdk.shareinstall.ShareInstall
;
import
com.squareup.leakcanary.LeakCanary
;
import
com.tencent.bugly.crashreport.CrashReport
;
import
com.tencent.bugly.crashreport.CrashReport
;
import
com.tencent.smtt.sdk.QbSdk
;
import
com.tencent.smtt.sdk.QbSdk
;
import
com.tencent.smtt.sdk.TbsListener
;
import
com.tencent.smtt.sdk.TbsListener
;
...
@@ -103,6 +104,15 @@ public class RvClientApplication extends FrameApp {
...
@@ -103,6 +104,15 @@ public class RvClientApplication extends FrameApp {
ARouter
.
openDebug
();
ARouter
.
openDebug
();
}
}
ARouter
.
init
(
RvClientApplication
.
this
);
ARouter
.
init
(
RvClientApplication
.
this
);
/**********************内存检测****************************/
if
(
LeakCanary
.
isInAnalyzerProcess
(
this
))
{
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return
;
}
LeakCanary
.
install
(
this
);
/**********************************************/
}
}
private
void
initX5
()
{
private
void
initX5
()
{
...
...
RvClient/src/main/res/drawable/start_back_icon.xml
View file @
15bcbc5f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<item>
<item>
<bitmap
<bitmap
android:gravity=
"bottom"
android:gravity=
"bottom"
android:scaleType=
"
centerCrop
"
android:scaleType=
"
matrix
"
android:src=
"@drawable/bottom_backgroud2"
android:src=
"@drawable/bottom_backgroud2"
android:tileMode=
"disabled"
/>
android:tileMode=
"disabled"
/>
</item>
</item>
...
...
RvClient/src/main/res/values/styles.xml
View file @
15bcbc5f
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<item
name=
"windowActionBar"
>
true
</item>
<item
name=
"windowActionBar"
>
true
</item>
<item
name=
"android:windowContentOverlay"
>
@null
</item>
<item
name=
"android:windowContentOverlay"
>
@null
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
<item
name=
"android:windowNoTitle"
>
true
</item>
<!-- 设置全屏 -->
<item
name=
"android:windowFullscreen"
>
true
</item>
<item
name=
"android:windowFullscreen"
>
true
</item>
</style>
</style>
...
...
component_resource/src/main/res/drawable-xhdpi/common_icon_circle_delete.png
0 → 100644
View file @
15bcbc5f
658 Bytes
module_discovery/src/main/java/com/xxfc/discovery/other/PostPatActivity.java
View file @
15bcbc5f
...
@@ -16,12 +16,13 @@ import android.view.ViewGroup;
...
@@ -16,12 +16,13 @@ import android.view.ViewGroup;
import
android.widget.AdapterView
;
import
android.widget.AdapterView
;
import
android.widget.BaseAdapter
;
import
android.widget.BaseAdapter
;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.alibaba.android.arouter.facade.annotation.Route
;
import
com.alibaba.android.arouter.facade.annotation.Route
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baidu.location.Address
;
import
com.baidu.location.BDAbstractLocationListener
;
import
com.baidu.location.BDAbstractLocationListener
;
import
com.baidu.location.BDLocation
;
import
com.baidu.location.BDLocation
;
import
com.baidu.location.Poi
;
import
com.baidu.location.Poi
;
...
@@ -33,7 +34,6 @@ import com.frame.rv.config.RvFrameConfig;
...
@@ -33,7 +34,6 @@ import com.frame.rv.config.RvFrameConfig;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.util.LocationManager
;
import
com.ruiwenliu.wrapper.util.LocationManager
;
import
com.ruiwenliu.wrapper.util.MapUtil
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.permission.RxPermission
;
import
com.ruiwenliu.wrapper.util.permission.RxPermission
;
...
@@ -57,13 +57,16 @@ import com.xxfc.imcamera.photopicker.PhotoPickerActivity;
...
@@ -57,13 +57,16 @@ import com.xxfc.imcamera.photopicker.PhotoPickerActivity;
import
com.xxfc.imcamera.photopicker.SelectModel
;
import
com.xxfc.imcamera.photopicker.SelectModel
;
import
com.xxfc.imcamera.photopicker.intent.PhotoPickerIntent
;
import
com.xxfc.imcamera.photopicker.intent.PhotoPickerIntent
;
import
com.yuyife.okgo.OkGoUtil
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.io.File
;
import
java.io.File
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.LinkedHashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
import
io.reactivex.functions.Consumer
;
import
io.reactivex.functions.Consumer
;
import
io.reactivex.schedulers.Schedulers
;
import
io.reactivex.schedulers.Schedulers
;
...
@@ -88,10 +91,13 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -88,10 +91,13 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
TextView
tvPatOk
;
TextView
tvPatOk
;
@BindView
(
R2
.
id
.
rv_icon
)
@BindView
(
R2
.
id
.
rv_icon
)
MyGridView
rvIcon
;
MyGridView
rvIcon
;
@BindView
(
R2
.
id
.
iv_item_delete
)
ImageView
ivItemDelete
;
private
static
final
int
REQUEST_CODE_CAPTURE_PHOTO
=
1
;
// 拍照
private
static
final
int
REQUEST_CODE_CAPTURE_PHOTO
=
1
;
// 拍照
private
static
final
int
REQUEST_CODE_PICK_PHOTO
=
2
;
// 图库
private
static
final
int
REQUEST_CODE_PICK_PHOTO
=
2
;
// 图库
private
GridViewAdapter
mAdapter
;
private
GridViewAdapter
mAdapter
;
private
ArrayList
<
String
>
mPhotoList
;
private
ArrayList
<
String
>
mPhotoList
;
// 拍照和图库,获得图片的Uri
// 拍照和图库,获得图片的Uri
...
@@ -105,7 +111,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -105,7 +111,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
private
LocationManager
locationManager
;
private
LocationManager
locationManager
;
private
ArrayList
<
ImageSources
>
sourcesList
;
private
ArrayList
<
ImageSources
>
sourcesList
;
private
String
name
;
private
String
name
;
@Override
@Override
protected
int
setLayout
()
{
protected
int
setLayout
()
{
...
@@ -136,7 +142,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -136,7 +142,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
@Override
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
switch
(
requestType
){
switch
(
requestType
)
{
case
0
:
case
0
:
DiscoveryUploadImageBean
bean
=
(
DiscoveryUploadImageBean
)
result
;
DiscoveryUploadImageBean
bean
=
(
DiscoveryUploadImageBean
)
result
;
upData
(
bean
.
getData
());
upData
(
bean
.
getData
());
...
@@ -146,22 +152,22 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -146,22 +152,22 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
setData
(
intokenBean
);
setData
(
intokenBean
);
break
;
break
;
case
2
:
case
2
:
RxBus
.
post
(
new
PostPatEvent
());
RxBus
.
post
(
new
PostPatEvent
());
finish
();
finish
();
break
;
break
;
}
}
}
}
private
void
setData
(
DiscoveryIMTokenBean
intokenBean
)
{
private
void
setData
(
DiscoveryIMTokenBean
intokenBean
)
{
if
(
intokenBean
==
null
)
{
if
(
intokenBean
==
null
)
{
return
;
return
;
}
}
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"access_token"
,
intokenBean
.
getData
());
map
.
put
(
"access_token"
,
intokenBean
.
getData
());
map
.
put
(
"type"
,
"2"
);
map
.
put
(
"type"
,
"2"
);
map
.
put
(
"flag"
,
"3"
);
map
.
put
(
"flag"
,
"3"
);
map
.
put
(
"visible"
,
"1"
);
map
.
put
(
"visible"
,
"1"
);
map
.
put
(
"text"
,
etContent
.
getText
().
toString
());
map
.
put
(
"text"
,
etContent
.
getText
().
toString
());
map
.
put
(
"images"
,
JSON
.
toJSONString
(
sourcesList
));
map
.
put
(
"images"
,
JSON
.
toJSONString
(
sourcesList
));
if
(!
TextUtils
.
isEmpty
(
address
))
{
if
(!
TextUtils
.
isEmpty
(
address
))
{
...
@@ -175,12 +181,12 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -175,12 +181,12 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
}
}
map
.
put
(
"cityId"
,
"0"
);
map
.
put
(
"cityId"
,
"0"
);
map
.
put
(
"time"
,
DateUtils
.
getCurTimeMillis
());
map
.
put
(
"time"
,
DateUtils
.
getCurTimeMillis
());
mPresenter
.
postData
(
2
,
DiscoveryApi
.
DISCOVERY_MSG_ADD
,
BaseBean
.
class
,
map
,
true
);
mPresenter
.
postData
(
2
,
DiscoveryApi
.
DISCOVERY_MSG_ADD
,
BaseBean
.
class
,
map
,
true
);
}
}
private
void
upData
(
List
<
DiscoveryUploadImageBean
.
DataBean
>
data
)
{
private
void
upData
(
List
<
DiscoveryUploadImageBean
.
DataBean
>
data
)
{
sourcesList
=
new
ArrayList
<>();
sourcesList
=
new
ArrayList
<>();
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++)
{
ImageSources
sources
=
new
ImageSources
();
ImageSources
sources
=
new
ImageSources
();
sources
.
setoFileName
(
data
.
get
(
i
).
getFileName
());
sources
.
setoFileName
(
data
.
get
(
i
).
getFileName
());
...
@@ -192,13 +198,13 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -192,13 +198,13 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
if
(
OkGoUtil
.
getToken
()
!=
null
)
{
if
(
OkGoUtil
.
getToken
()
!=
null
)
{
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<>();
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
headMap
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
mPresenter
.
postData
(
RvFrameConfig
.
HOST
,
1
,
DiscoveryApi
.
DISCOVERY_IM_LOGIN
,
DiscoveryIMTokenBean
.
class
,
headMap
,
headMap
,
true
);
mPresenter
.
postData
(
RvFrameConfig
.
HOST
,
1
,
DiscoveryApi
.
DISCOVERY_IM_LOGIN
,
DiscoveryIMTokenBean
.
class
,
headMap
,
headMap
,
true
);
}
}
}
}
@OnClick
({
R2
.
id
.
ll_item_select_icon
,
R2
.
id
.
ll_item_select_address
,
R2
.
id
.
tv_pat_ok
})
@OnClick
({
R2
.
id
.
ll_item_select_icon
,
R2
.
id
.
ll_item_select_address
,
R2
.
id
.
tv_pat_ok
,
R2
.
id
.
iv_item_delete
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
ll_item_select_icon
)
{
if
(
id
==
R
.
id
.
ll_item_select_icon
)
{
...
@@ -206,18 +212,18 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -206,18 +212,18 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
}
else
if
(
id
==
R
.
id
.
ll_item_select_address
)
{
}
else
if
(
id
==
R
.
id
.
ll_item_select_address
)
{
ARouter
.
getInstance
()
ARouter
.
getInstance
()
.
build
(
Constance
.
ACTIVITY_URL_MAPLOCATION
)
.
build
(
Constance
.
ACTIVITY_URL_MAPLOCATION
)
.
withDouble
(
"latLatitude"
,
latLatitude
)
.
withDouble
(
"latLatitude"
,
latLatitude
)
.
withDouble
(
"lonLongitude"
,
lonLongitude
)
.
withDouble
(
"lonLongitude"
,
lonLongitude
)
.
withString
(
"name"
,
name
)
.
withString
(
"name"
,
name
)
.
withString
(
"addrStr"
,
addrStr
)
.
withString
(
"addrStr"
,
addrStr
)
.
navigation
(
this
,
210
);
.
navigation
(
this
,
210
);
}
else
if
(
id
==
R
.
id
.
tv_pat_ok
)
{
}
else
if
(
id
==
R
.
id
.
tv_pat_ok
)
{
if
(
TextUtils
.
isEmpty
(
etContent
.
getText
().
toString
())){
if
(
TextUtils
.
isEmpty
(
etContent
.
getText
().
toString
()))
{
showToast
(
"亲,请说点什么吧!"
);
showToast
(
"亲,请说点什么吧!"
);
return
;
return
;
}
}
if
(
mPhotoList
.
size
()
<=
0
)
{
if
(
mPhotoList
.
size
()
<=
0
)
{
showToast
(
"请选择需要上传的图片!"
);
showToast
(
"请选择需要上传的图片!"
);
return
;
return
;
}
}
...
@@ -229,12 +235,18 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -229,12 +235,18 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
// 发布图片+文字
// 发布图片+文字
upIcon
();
upIcon
();
}
}
}
else
if
(
id
==
R
.
id
.
iv_item_delete
)
{
tvPatAddress
.
setText
(
""
);
latLatitude
=
0
;
lonLongitude
=
0
;
address
=
""
;
ivItemDelete
.
setVisibility
(
View
.
GONE
);
}
}
}
}
private
void
upIcon
()
{
private
void
upIcon
()
{
ArrayList
<
Imag
>
imags
=
new
ArrayList
<>();
ArrayList
<
Imag
>
imags
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
mPhotoList
.
size
()
;
i
++)
{
for
(
int
i
=
0
;
i
<
mPhotoList
.
size
()
;
i
++)
{
File
file
=
new
File
(
mPhotoList
.
get
(
i
));
File
file
=
new
File
(
mPhotoList
.
get
(
i
));
Imag
imag
=
new
Imag
();
Imag
imag
=
new
Imag
();
imag
.
setFileName
(
file
.
getName
());
imag
.
setFileName
(
file
.
getName
());
...
@@ -252,7 +264,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -252,7 +264,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
super
.
helper
(
helper
);
super
.
helper
(
helper
);
helper
.
setText
(
R
.
id
.
btn1
,
"删除"
);
helper
.
setText
(
R
.
id
.
btn1
,
"删除"
);
helper
.
setText
(
R
.
id
.
btn2
,
"取消"
);
helper
.
setText
(
R
.
id
.
btn2
,
"取消"
);
helper
.
setVisible
(
R
.
id
.
btn3
,
false
);
helper
.
setVisible
(
R
.
id
.
btn3
,
false
);
helper
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
helper
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
...
@@ -335,7 +347,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -335,7 +347,7 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
showToast
(
"拍照失败"
);
showToast
(
"拍照失败"
);
}
}
}
}
}
else
if
(
requestCode
==
REQUEST_CODE_PICK_PHOTO
)
{
}
else
if
(
requestCode
==
REQUEST_CODE_PICK_PHOTO
)
{
// 选择图片返回
// 选择图片返回
if
(
resultCode
==
Activity
.
RESULT_OK
)
{
if
(
resultCode
==
Activity
.
RESULT_OK
)
{
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
...
@@ -345,9 +357,10 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -345,9 +357,10 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
showToast
(
"选择失败"
);
showToast
(
"选择失败"
);
}
}
}
}
}
else
if
(
requestCode
==
210
&&
resultCode
==
Activity
.
RESULT_OK
){
}
else
if
(
requestCode
==
210
&&
resultCode
==
Activity
.
RESULT_OK
)
{
latLatitude
=
data
.
getDoubleExtra
(
"latitude"
,
0
);
ivItemDelete
.
setVisibility
(
View
.
VISIBLE
);
lonLongitude
=
data
.
getDoubleExtra
(
"longitude"
,
0
);
latLatitude
=
data
.
getDoubleExtra
(
"latitude"
,
0
);
lonLongitude
=
data
.
getDoubleExtra
(
"longitude"
,
0
);
address
=
data
.
getStringExtra
(
"location"
);
address
=
data
.
getStringExtra
(
"location"
);
tvPatAddress
.
setText
(
data
.
getStringExtra
(
"location"
));
tvPatAddress
.
setText
(
data
.
getStringExtra
(
"location"
));
}
}
...
@@ -444,7 +457,6 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -444,7 +457,6 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
}
}
/**
/**
* 打开相机和相册
* 打开相机和相册
*
*
...
@@ -485,6 +497,12 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -485,6 +497,12 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
}
}
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
private
class
GridViewAdapter
extends
BaseAdapter
{
private
class
GridViewAdapter
extends
BaseAdapter
{
...
@@ -598,8 +616,8 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
...
@@ -598,8 +616,8 @@ public class PostPatActivity extends BaseStatusActivity<DiscoveryPresenter> {
latLatitude
=
location
.
getLatitude
();
latLatitude
=
location
.
getLatitude
();
lonLongitude
=
location
.
getLongitude
();
lonLongitude
=
location
.
getLongitude
();
List
<
Poi
>
poiList
=
location
.
getPoiList
();
List
<
Poi
>
poiList
=
location
.
getPoiList
();
if
(
poiList
!=
null
&&
poiList
.
size
()
>
0
)
{
if
(
poiList
!=
null
&&
poiList
.
size
()
>
0
)
{
name
=
poiList
.
get
(
0
).
getName
();
name
=
poiList
.
get
(
0
).
getName
();
}
}
mLatLng
=
new
LatLng
(
location
.
getLatitude
(),
location
.
getLongitude
());
mLatLng
=
new
LatLng
(
location
.
getLatitude
(),
location
.
getLongitude
());
locationManager
.
stopLocation
();
locationManager
.
stopLocation
();
...
...
module_discovery/src/main/res/layout/activity_post_pat.xml
View file @
15bcbc5f
...
@@ -53,12 +53,15 @@
...
@@ -53,12 +53,15 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_20"
android:gravity=
"center_vertical"
android:paddingBottom=
"@dimen/size_20"
>
android:paddingTop=
"@dimen/size_10"
android:paddingBottom=
"@dimen/size_10"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingTop=
"@dimen/size_8"
android:paddingBottom=
"@dimen/size_8"
android:src=
"@drawable/campsite_icon_citylocation_hint"
/>
android:src=
"@drawable/campsite_icon_citylocation_hint"
/>
<TextView
<TextView
...
@@ -72,6 +75,14 @@
...
@@ -72,6 +75,14 @@
android:text=
"您所在的位置"
android:text=
"您所在的位置"
android:textColor=
"@color/colorGray"
android:textColor=
"@color/colorGray"
android:textSize=
"@dimen/text_12"
/>
android:textSize=
"@dimen/text_12"
/>
<ImageView
android:id=
"@+id/iv_item_delete"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"@dimen/size_8"
android:visibility=
"gone"
android:src=
"@drawable/common_icon_circle_delete"
/>
</LinearLayout>
</LinearLayout>
<View
<View
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
15bcbc5f
...
@@ -52,7 +52,6 @@ import com.rv.component.utils.DisplayUtil;
...
@@ -52,7 +52,6 @@ import com.rv.component.utils.DisplayUtil;
import
com.rv.component.utils.LogUtil
;
import
com.rv.component.utils.LogUtil
;
import
com.rv.component.utils.MyUtils
;
import
com.rv.component.utils.MyUtils
;
import
com.rv.component.utils.ObservableScrollView
;
import
com.rv.component.utils.ObservableScrollView
;
import
com.rv.home.R
;
import
com.rv.home.R
;
import
com.rv.home.R2
;
import
com.rv.home.R2
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.ApiConfig
;
...
@@ -153,7 +152,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -153,7 +152,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
TextView
tvSeeMorePopular
;
TextView
tvSeeMorePopular
;
@BindView
(
R2
.
id
.
rl_item_layout
)
@BindView
(
R2
.
id
.
rl_item_layout
)
RelativeLayout
rlItemLayout
;
RelativeLayout
rlItemLayout
;
@BindView
(
R2
.
id
.
scrollview
)
@BindView
(
R2
.
id
.
os_
scrollview
)
ObservableScrollView
scrollview
;
ObservableScrollView
scrollview
;
@BindView
(
R2
.
id
.
ll_item_title
)
@BindView
(
R2
.
id
.
ll_item_title
)
LinearLayout
llItemTitle
;
LinearLayout
llItemTitle
;
...
@@ -1081,7 +1080,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -1081,7 +1080,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
buffer
.
append
(
"("
).
append
(
getCityName
).
append
(
")"
);
buffer
.
append
(
"("
).
append
(
getCityName
).
append
(
")"
);
}
}
if
(
buffer
.
length
()
>
0
)
{
if
(
buffer
!=
null
&&
buffer
.
length
()
>
0
)
{
headTvGetShop
.
setText
(
buffer
.
toString
());
headTvGetShop
.
setText
(
buffer
.
toString
());
}
else
{
}
else
{
headTvGetShop
.
setText
(
""
);
headTvGetShop
.
setText
(
""
);
...
@@ -1102,7 +1101,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -1102,7 +1101,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
if
(!
TextUtils
.
isEmpty
(
outCityName
))
{
if
(!
TextUtils
.
isEmpty
(
outCityName
))
{
buffer
.
append
(
"("
).
append
(
outCityName
).
append
(
")"
);
buffer
.
append
(
"("
).
append
(
outCityName
).
append
(
")"
);
}
}
if
(
buffer
.
length
()
>
0
)
{
if
(
buffer
!=
null
&&
buffer
.
length
()
>
0
)
{
headTvOutShop
.
setText
(
buffer
.
toString
());
headTvOutShop
.
setText
(
buffer
.
toString
());
}
else
{
}
else
{
headTvOutShop
.
setText
(
""
);
headTvOutShop
.
setText
(
""
);
...
...
module_home/src/main/res/layout/activity_travel_order_details.xml
View file @
15bcbc5f
...
@@ -53,8 +53,6 @@
...
@@ -53,8 +53,6 @@
</RelativeLayout>
</RelativeLayout>
</com.ruiwenliu.wrapper.statusbar.StatusBarHeightView>
</com.ruiwenliu.wrapper.statusbar.StatusBarHeightView>
<include
layout=
"@layout/common_line"
/>
<ProgressBar
<ProgressBar
android:id=
"@+id/pb_progress"
android:id=
"@+id/pb_progress"
style=
"?android:attr/progressBarStyleHorizontal"
style=
"?android:attr/progressBarStyleHorizontal"
...
...
module_home/src/main/res/layout/fragment_home.xml
View file @
15bcbc5f
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<com.rv.component.utils.ObservableScrollView
<com.rv.component.utils.ObservableScrollView
android:id=
"@+id/scrollview"
android:id=
"@+id/
os_
scrollview"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:scrollbars=
"none"
>
android:scrollbars=
"none"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment