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
7fbcc2d1
Commit
7fbcc2d1
authored
Aug 07, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新人专享添加分享
parent
d14d088d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
7 deletions
+48
-7
GlideManager.java
...n/java/com/ruiwenliu/wrapper/util/glide/GlideManager.java
+1
-0
BillActivity.java
plugin_share/src/main/java/com/rv/share/BillActivity.java
+5
-0
ReativeBillActivity.java
...share/src/main/java/com/rv/share/ReativeBillActivity.java
+4
-1
WebViewActivity.java
plugin_share/src/main/java/com/rv/share/WebViewActivity.java
+24
-2
WebViewPresenter.java
...rc/main/java/com/rv/share/presenter/WebViewPresenter.java
+5
-4
RvWebView.java
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
+9
-0
tourism_rv_rentingcar_icon_share.png
...rc/main/res/drawable/tourism_rv_rentingcar_icon_share.png
+0
-0
No files found.
RvWrapper/src/main/java/com/ruiwenliu/wrapper/util/glide/GlideManager.java
View file @
7fbcc2d1
...
@@ -82,6 +82,7 @@ public class GlideManager {
...
@@ -82,6 +82,7 @@ public class GlideManager {
.
error
(
R
.
drawable
.
glide_icon_error
)
.
error
(
R
.
drawable
.
glide_icon_error
)
.
apply
(
new
RequestOptions
()
.
apply
(
new
RequestOptions
()
.
skipMemoryCache
(
false
)
.
skipMemoryCache
(
false
)
.
disallowHardwareConfig
()
.
diskCacheStrategy
(
DiskCacheStrategy
.
ALL
))
.
diskCacheStrategy
(
DiskCacheStrategy
.
ALL
))
.
into
(
image
);
.
into
(
image
);
}
}
...
...
plugin_share/src/main/java/com/rv/share/BillActivity.java
View file @
7fbcc2d1
...
@@ -131,6 +131,11 @@ public class BillActivity extends BaseStatusActivity<BillPresenter> {
...
@@ -131,6 +131,11 @@ public class BillActivity extends BaseStatusActivity<BillPresenter> {
public
void
finish
()
{
public
void
finish
()
{
}
}
@Override
public
void
showShareIcon
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
desc
)
{
}
};
};
...
...
plugin_share/src/main/java/com/rv/share/ReativeBillActivity.java
View file @
7fbcc2d1
...
@@ -22,6 +22,7 @@ import android.widget.Toast;
...
@@ -22,6 +22,7 @@ import android.widget.Toast;
import
com.base.utils.ui.image.round.RoundImageView
;
import
com.base.utils.ui.image.round.RoundImageView
;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.load.engine.DiskCacheStrategy
;
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
;
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.ruiwenliu.wrapper.SPConstance
;
import
com.ruiwenliu.wrapper.SPConstance
;
...
@@ -90,7 +91,9 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
...
@@ -90,7 +91,9 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
.
asBitmap
()
.
asBitmap
()
.
load
(
R
.
drawable
.
bg_bill
)
.
load
(
R
.
drawable
.
bg_bill
)
.
apply
(
options
)
.
apply
(
options
)
.
apply
(
RequestOptions
.
bitmapTransform
(
new
RoundedCorners
(
12
)).
override
(
imgBillTop
.
getWidth
(),
imgBillTop
.
getHeight
()))
.
apply
(
RequestOptions
.
bitmapTransform
(
new
RoundedCorners
(
12
)).
override
(
imgBillTop
.
getWidth
(),
imgBillTop
.
getHeight
())
.
disallowHardwareConfig
())
.
into
(
utils
);
.
into
(
utils
);
UserInfoBean
userInfoBean
=
(
UserInfoBean
)
RvCache
.
getInstance
(
getApplicationContext
()).
get
(
CacheEnum
.
USER
);
UserInfoBean
userInfoBean
=
(
UserInfoBean
)
RvCache
.
getInstance
(
getApplicationContext
()).
get
(
CacheEnum
.
USER
);
...
...
plugin_share/src/main/java/com/rv/share/WebViewActivity.java
View file @
7fbcc2d1
...
@@ -10,6 +10,7 @@ import android.widget.LinearLayout;
...
@@ -10,6 +10,7 @@ import android.widget.LinearLayout;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
com.base.utils.tools.android.NetworkUtil
;
import
com.base.utils.tools.android.NetworkUtil
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
...
@@ -24,6 +25,7 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
...
@@ -24,6 +25,7 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
private
String
url
;
private
String
url
;
private
String
title
;
private
String
title
;
private
RvWebView
rvWebView
;
private
RvWebView
rvWebView
;
private
TitleView
titleView
;
public
static
Intent
getIntent
(
Context
context
,
String
url
,
String
name
)
{
public
static
Intent
getIntent
(
Context
context
,
String
url
,
String
name
)
{
Intent
intent
=
new
Intent
(
context
,
WebViewActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
WebViewActivity
.
class
);
...
@@ -93,17 +95,37 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
...
@@ -93,17 +95,37 @@ public class WebViewActivity extends BaseStatusActivity<WebViewPresenter> {
private
RvWebView
.
WebViewListener
listener
=
new
RvWebView
.
WebViewListener
()
{
private
RvWebView
.
WebViewListener
listener
=
new
RvWebView
.
WebViewListener
()
{
@Override
@Override
public
void
share
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
desc
)
{
public
void
share
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
desc
)
{
mPresenter
.
showShareDialog
(
url
,
imgUrl
,
title
,
circleTitle
,
desc
);
String
billUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/poster.html"
;
mPresenter
.
showShareDialog
(
url
,
imgUrl
,
title
,
circleTitle
,
desc
,
billUrl
);
}
}
@Override
@Override
public
void
share
(
String
url
,
String
title
,
String
desc
)
{
public
void
share
(
String
url
,
String
title
,
String
desc
)
{
mPresenter
.
showShareDialog
(
url
,
null
,
title
,
null
,
desc
);
mPresenter
.
showShareDialog
(
url
,
null
,
title
,
null
,
desc
,
null
);
}
}
@Override
@Override
public
void
finish
()
{
public
void
finish
()
{
}
}
@Override
public
void
showShareIcon
(
final
String
url
,
final
String
imgUrl
,
final
String
title
,
final
String
circleTitle
,
final
String
desc
)
{
// runOnUiThread(new Runnable() {
// @Override
// public void run() {
// titleView.setVisible(R.id.iv_title_right, true);
// titleView.setImageResource(R.id.iv_title_right, R.drawable.tourism_rv_rentingcar_icon_share);
// titleView.setChildClickListener(R.id.iv_title_right, new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// String billUrl = RvFrameConfig.HOST + "/h5/appHtml/view/newPeoplePoster.html";
// mPresenter.showShareDialog(url, imgUrl, title, circleTitle, desc, billUrl);
// }
// });
// }
// });
}
};
};
}
}
plugin_share/src/main/java/com/rv/share/presenter/WebViewPresenter.java
View file @
7fbcc2d1
...
@@ -35,12 +35,14 @@ public class WebViewPresenter extends CommonPresenter {
...
@@ -35,12 +35,14 @@ public class WebViewPresenter extends CommonPresenter {
private
String
mImgUrl
;
private
String
mImgUrl
;
private
String
mCircleTitle
;
private
String
mCircleTitle
;
private
RvWebView
webView
;
private
RvWebView
webView
;
private
String
billUrl
;
public
void
setWebView
(
RvWebView
webView
)
{
public
void
setWebView
(
RvWebView
webView
)
{
this
.
webView
=
webView
;
this
.
webView
=
webView
;
}
}
public
void
showShareDialog
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
descript
)
{
public
void
showShareDialog
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
descript
,
String
newPersonbillUrl
)
{
this
.
billUrl
=
newPersonbillUrl
;
this
.
mUrl
=
url
;
this
.
mUrl
=
url
;
this
.
mImgUrl
=
imgUrl
;
this
.
mImgUrl
=
imgUrl
;
this
.
mCircleTitle
=
circleTitle
;
this
.
mCircleTitle
=
circleTitle
;
...
@@ -187,9 +189,8 @@ public class WebViewPresenter extends CommonPresenter {
...
@@ -187,9 +189,8 @@ public class WebViewPresenter extends CommonPresenter {
@Override
@Override
public
void
billShare
()
{
public
void
billShare
()
{
String
billUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/poster.html"
;
if
(!
TextUtils
.
isEmpty
(
billUrl
))
// String billUrl = "https://xxtest.upyuns.com/h5/appHtml/view/poster.html" ;
getPresenterContext
().
startActivity
(
BillActivity
.
getIntent
(
getPresenterContext
(),
billUrl
));
getPresenterContext
().
startActivity
(
BillActivity
.
getIntent
(
getPresenterContext
(),
billUrl
));
}
}
@Override
@Override
...
...
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
View file @
7fbcc2d1
...
@@ -182,6 +182,13 @@ public class RvWebView extends WebView {
...
@@ -182,6 +182,13 @@ public class RvWebView extends WebView {
}
}
}
}
@JavascriptInterface
public
void
showShareIcon
(
String
url
,
String
imgUrl
,
String
title
,
String
titleCircle
,
String
desc
)
{
if
(
listener
!=
null
)
{
listener
.
showShareIcon
(
url
,
imgUrl
,
title
,
titleCircle
,
desc
);
}
}
@JavascriptInterface
@JavascriptInterface
public
void
toMyWallet
()
{
public
void
toMyWallet
()
{
...
@@ -208,6 +215,8 @@ public class RvWebView extends WebView {
...
@@ -208,6 +215,8 @@ public class RvWebView extends WebView {
void
share
(
String
url
,
String
title
,
String
desc
);
void
share
(
String
url
,
String
title
,
String
desc
);
void
finish
();
void
finish
();
void
showShareIcon
(
String
url
,
String
imgUrl
,
String
title
,
String
circleTitle
,
String
desc
);
}
}
@Override
@Override
...
...
plugin_share/src/main/res/drawable/tourism_rv_rentingcar_icon_share.png
0 → 100644
View file @
7fbcc2d1
3.83 KB
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