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
3ae56a57
Commit
3ae56a57
authored
Aug 07, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改推广有礼
parent
0b1616d3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
62 deletions
+70
-62
GlideManager.java
...n/java/com/ruiwenliu/wrapper/util/glide/GlideManager.java
+17
-0
SelectShopActivity.java
...om/rv/home/rv/module/ui/main/home/SelectShopActivity.java
+2
-3
activity_mine.xml
module_mine/src/main/res/layout/activity_mine.xml
+1
-1
ReativeBillActivity.java
...share/src/main/java/com/rv/share/ReativeBillActivity.java
+19
-3
bg_bill.png
plugin_share/src/main/res/drawable-xxhdpi/bg_bill.png
+0
-0
icon_bill_defult.png
...n_share/src/main/res/drawable-xxhdpi/icon_bill_defult.png
+0
-0
bg_btn_bill_save.xml
plugin_share/src/main/res/drawable/bg_btn_bill_save.xml
+1
-5
activity_reative_bill.xml
plugin_share/src/main/res/layout/activity_reative_bill.xml
+30
-50
No files found.
RvWrapper/src/main/java/com/ruiwenliu/wrapper/util/glide/GlideManager.java
View file @
3ae56a57
...
@@ -69,6 +69,23 @@ public class GlideManager {
...
@@ -69,6 +69,23 @@ public class GlideManager {
.
into
(
image
);
.
into
(
image
);
}
}
/**
* 加载普通图片
*
* @param url
* @param image
*/
public
void
loadImage
(
String
url
,
ImageView
image
,
int
defaultImg
)
{
GlideApp
.
with
(
mContext
)
.
load
(
url
)
.
placeholder
(
defaultImg
)
.
error
(
R
.
drawable
.
glide_icon_error
)
.
apply
(
new
RequestOptions
()
.
skipMemoryCache
(
false
)
.
diskCacheStrategy
(
DiskCacheStrategy
.
ALL
))
.
into
(
image
);
}
/**
/**
* 加载普通图片
* 加载普通图片
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/SelectShopActivity.java
View file @
3ae56a57
...
@@ -245,10 +245,9 @@ public class SelectShopActivity extends BaseStatusActivity<CommonPresenter> impl
...
@@ -245,10 +245,9 @@ public class SelectShopActivity extends BaseStatusActivity<CommonPresenter> impl
map
.
put
(
"page"
,
page
);
map
.
put
(
"page"
,
page
);
map
.
put
(
"limit"
,
10
);
map
.
put
(
"limit"
,
10
);
if
(
mCityId
==
0
)
{
if
(
mCityId
==
0
)
{
map
.
put
(
"addrCity"
,
441900
);
mCityId
=
441900
;
}
else
{
map
.
put
(
"addrCity"
,
mCityId
);
}
}
map
.
put
(
"addrCity"
,
mCityId
);
// if (mLat > 0) {
// if (mLat > 0) {
// map.put("lat", mLat);
// map.put("lat", mLat);
// map.put("lon", mLon);
// map.put("lon", mLon);
...
...
module_mine/src/main/res/layout/activity_mine.xml
View file @
3ae56a57
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
android:clickable=
"false"
android:clickable=
"false"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"
in
visible"
>
android:visibility=
"visible"
>
<ImageView
<ImageView
android:layout_width=
"@dimen/size_25"
android:layout_width=
"@dimen/size_25"
...
...
plugin_share/src/main/java/com/rv/share/ReativeBillActivity.java
View file @
3ae56a57
...
@@ -21,11 +21,15 @@ import android.widget.TextView;
...
@@ -21,11 +21,15 @@ import android.widget.TextView;
import
android.widget.Toast
;
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.load.resource.bitmap.RoundedCorners
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.ruiwenliu.wrapper.SPConstance
;
import
com.ruiwenliu.wrapper.SPConstance
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.bean.UserInfoBean
;
import
com.ruiwenliu.wrapper.bean.UserInfoBean
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideOptions
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.component.utils.CacheEnum
;
import
com.rv.component.utils.CacheEnum
;
import
com.rv.component.utils.DisplayUtil
;
import
com.rv.component.utils.DisplayUtil
;
...
@@ -33,6 +37,7 @@ import com.rv.component.utils.RvCache;
...
@@ -33,6 +37,7 @@ import com.rv.component.utils.RvCache;
import
com.rv.component.utils.ZxingUtils
;
import
com.rv.component.utils.ZxingUtils
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.share.presenter.ReativeBillPresenter
;
import
com.rv.share.presenter.ReativeBillPresenter
;
import
com.rv.share.utils.TransformationUtils
;
import
com.yuyife.okgo.OkGoUtil
;
import
com.yuyife.okgo.OkGoUtil
;
import
butterknife.BindView
;
import
butterknife.BindView
;
...
@@ -53,6 +58,8 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
...
@@ -53,6 +58,8 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
Button
btnShare
;
Button
btnShare
;
@BindView
(
R2
.
id
.
ll_bill_content
)
@BindView
(
R2
.
id
.
ll_bill_content
)
CardView
llBillContent
;
CardView
llBillContent
;
@BindView
(
R2
.
id
.
img_bill_top
)
ImageView
imgBillTop
;
// @BindView(R2.id.ll_content)
// @BindView(R2.id.ll_content)
// LinearLayout llContent;
// LinearLayout llContent;
...
@@ -73,16 +80,25 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
...
@@ -73,16 +80,25 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
url
=
intent
.
getStringExtra
(
"url"
);
url
=
intent
.
getStringExtra
(
"url"
);
if
(!
TextUtils
.
isEmpty
(
url
))
{
if
(!
TextUtils
.
isEmpty
(
url
))
{
Bitmap
bitmap
=
ZxingUtils
.
createQRImage
(
url
,
DisplayUtil
.
dip2px
(
this
,
150
),
DisplayUtil
.
dip2px
(
this
,
150
),
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
mipmap
.
logo
));
Bitmap
bitmap
=
ZxingUtils
.
createQRImage
(
url
,
DisplayUtil
.
dip2px
(
this
,
150
),
DisplayUtil
.
dip2px
(
this
,
150
),
BitmapFactory
.
decodeResource
(
getResources
(),
R
.
mipmap
.
logo
));
imgQrcode
.
setImageBitmap
(
bitmap
);
imgQrcode
.
setImageBitmap
(
bitmap
);
}
}
GlideOptions
options
=
GlideOptions
.
placeholderOf
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_placeholder
).
error
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_error
);
TransformationUtils
utils
=
new
TransformationUtils
(
imgBillTop
);
Glide
.
with
(
this
)
.
asBitmap
()
.
load
(
R
.
drawable
.
bg_bill
)
.
apply
(
options
)
.
apply
(
RequestOptions
.
bitmapTransform
(
new
RoundedCorners
(
12
)).
override
(
imgBillTop
.
getWidth
(),
imgBillTop
.
getHeight
()))
.
into
(
utils
);
UserInfoBean
userInfoBean
=
(
UserInfoBean
)
RvCache
.
getInstance
(
getApplicationContext
()).
get
(
CacheEnum
.
USER
);
UserInfoBean
userInfoBean
=
(
UserInfoBean
)
RvCache
.
getInstance
(
getApplicationContext
()).
get
(
CacheEnum
.
USER
);
String
name
=
userInfoBean
.
getData
().
get
Nick
name
();
String
name
=
userInfoBean
.
getData
().
get
Real
name
();
String
url
=
userInfoBean
.
getData
().
getHeadimgurl
();
String
url
=
userInfoBean
.
getData
().
getHeadimgurl
();
if
(!
TextUtils
.
isEmpty
(
url
))
{
if
(!
TextUtils
.
isEmpty
(
url
))
{
GlideManager
.
getInstance
(
getApplicationContext
()).
loadImage
3
(
url
,
roundImageView
);
GlideManager
.
getInstance
(
getApplicationContext
()).
loadImage
(
url
,
roundImageView
,
R
.
drawable
.
icon_bill_defult
);
}
}
if
(!
TextUtils
.
isEmpty
(
name
))
{
if
(!
TextUtils
.
isEmpty
(
name
))
{
tvPhone
.
setText
(
name
);
tvPhone
.
setText
(
name
);
...
...
plugin_share/src/main/res/drawable-xxhdpi/bg_bill.png
View replaced file @
0b1616d3
View file @
3ae56a57
149 KB
|
W:
|
H:
276 KB
|
W:
|
H:
2-up
Swipe
Onion skin
plugin_share/src/main/res/drawable-xxhdpi/icon_bill_defult.png
0 → 100644
View file @
3ae56a57
9.53 KB
plugin_share/src/main/res/drawable/bg_btn_bill_save.xml
View file @
3ae56a57
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<!--空心框 圆角 少量红-->
<corners
android:radius=
"@dimen/size_20"
/>
<corners
android:radius=
"@dimen/size_20"
/>
<stroke
<solid
android:color=
"@color/white"
/>
android:width=
"@dimen/ui_dimen_stroke"
android:color=
"@color/colorYellow"
/>
<solid
android:color=
"@color/uiColorTransparency"
/>
</shape>
</shape>
\ No newline at end of file
plugin_share/src/main/res/layout/activity_reative_bill.xml
View file @
3ae56a57
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#
55eeeeee
"
>
android:background=
"#
F9D993
"
>
<ScrollView
<ScrollView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -37,38 +37,32 @@
...
@@ -37,38 +37,32 @@
android:layout_marginBottom=
"@dimen/size_70"
android:layout_marginBottom=
"@dimen/size_70"
android:scrollbars=
"none"
>
android:scrollbars=
"none"
>
<!--<LinearLayout-->
<!--android:background="#55eeeeee"-->
<!--android:id="@+id/ll_content"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:gravity="center">-->
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:id=
"@+id/ll_bill_content"
android:id=
"@+id/ll_bill_content"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:background=
"@color/white"
app:cardCornerRadius=
"5dp"
>
app:cardCornerRadius=
"5dp"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/size_10"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:
layout_width=
"wrap_content
"
android:
id=
"@+id/img_bill_top
"
android:layout_
height=
"wrap_cont
ent"
android:layout_
width=
"match_par
ent"
android:
src=
"@drawable/bg_bill
"
/>
android:
layout_height=
"wrap_content
"
/>
<LinearLayout
<LinearLayout
android:layout_marginRight=
"@dimen/size_20"
android:layout_marginLeft=
"@dimen/size_20"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_10"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginRight=
"@dimen/size_10"
android:layout_marginBottom=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
@@ -77,71 +71,57 @@
...
@@ -77,71 +71,57 @@
<com.base.utils.ui.image.round.RoundImageView
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/ring_header"
android:id=
"@+id/ring_header"
android:layout_width=
"@dimen/size_50"
android:layout_width=
"@dimen/size_50"
android:layout_height=
"@dimen/size_50"
android:layout_height=
"@dimen/size_50"
/>
android:layout_marginLeft=
"@dimen/size_10"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/size_5"
android:layout_marginLeft=
"@dimen/size_5"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/tv_phone"
android:id=
"@+id/tv_phone"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"155****5918"
android:singleLine=
"false"
android:text=
"155****59180000000000000000000000"
android:textColor=
"@color/colorMain"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/text_18"
/>
android:textSize=
"@dimen/text_18"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
3dp
"
android:layout_marginTop=
"
@dimen/size_5
"
android:text=
"邀请你一起参加"
android:text=
"邀请你一起参加"
android:textColor=
"@color/text_Gray"
android:textColor=
"@color/text_Gray"
android:textSize=
"@dimen/
sp_12
"
/>
android:textSize=
"@dimen/
text_10
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"
0dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_gravity=
"right"
android:layout_gravity=
"right"
android:layout_marginRight=
"17dp"
android:layout_marginLeft=
"@dimen/text_10"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:gravity=
"right|center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"vertical"
>
<View
android:layout_width=
"1px"
android:layout_height=
"@dimen/size_60"
android:background=
"#E1E1E1"
/>
<ImageView
<ImageView
android:id=
"@+id/img_qrcode"
android:id=
"@+id/img_qrcode"
android:layout_width=
"@dimen/size_80"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_80"
android:layout_height=
"@dimen/size_60"
android:layout_marginLeft=
"@dimen/size_20"
android:src=
"@drawable/icon_share_wx"
/>
android:src=
"@drawable/icon_share_wx"
/>
<TextView
android:layout_width=
"@dimen/size_80"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_8"
android:gravity=
"center"
android:text=
"长按领奖励"
android:textColor=
"@color/colorMain"
android:textSize=
"@dimen/sp_12"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/common_line"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/size_10"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:src=
"@drawable/icon_reative_bill"
/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</android.support.v7.widget.CardView>
...
@@ -167,7 +147,7 @@
...
@@ -167,7 +147,7 @@
android:background=
"@drawable/bg_btn_bill_save"
android:background=
"@drawable/bg_btn_bill_save"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"保存海报"
android:text=
"保存海报"
android:textColor=
"
@color/colorYellow
"
android:textColor=
"
#FE9C36
"
android:textSize=
"@dimen/sp_16"
/>
android:textSize=
"@dimen/sp_16"
/>
<Button
<Button
...
...
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