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
cabd7cff
Commit
cabd7cff
authored
Jul 30, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-member-john' of
http://113.105.137.151:22280/lify/rvapp
parents
c1b0407a
56953f5b
Changes
23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
759 additions
and
296 deletions
+759
-296
OkHttpCreate.java
...rc/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
+1
-1
GlideManager.java
...n/java/com/ruiwenliu/wrapper/util/glide/GlideManager.java
+1
-1
MemberListAdapter.java
...rc/main/java/com/rv.member/adapter/MemberListAdapter.java
+1
-1
PointsActivity.java
...in_points/src/main/java/com/rv/points/PointsActivity.java
+35
-17
PointAdapter.java
...nts/src/main/java/com/rv/points/adapter/PointAdapter.java
+105
-16
activity_points.xml
plugin_points/src/main/res/layout/activity_points.xml
+5
-3
activity_sign.xml
plugin_points/src/main/res/layout/activity_sign.xml
+1
-1
item_point.xml
plugin_points/src/main/res/layout/item_point.xml
+13
-5
AndroidManifest.xml
plugin_share/src/main/AndroidManifest.xml
+10
-8
ReativeBillActivity.java
...share/src/main/java/com/rv/share/ReativeBillActivity.java
+4
-3
ShareActivity.java
plugin_share/src/main/java/com/rv/share/ShareActivity.java
+5
-3
ShareRulerActivity.java
..._share/src/main/java/com/rv/share/ShareRulerActivity.java
+27
-0
PromotionDialog.java
...hare/src/main/java/com/rv/share/view/PromotionDialog.java
+2
-2
RvWebView.java
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
+8
-0
bg_share_ruler_tab.xml
..._share/src/main/res/drawable-xhdpi/bg_share_ruler_tab.xml
+10
-0
icon_line_share_ruler.xml
...are/src/main/res/drawable-xhdpi/icon_line_share_ruler.xml
+8
-0
icon_share_ruler_down.png
...are/src/main/res/drawable-xhdpi/icon_share_ruler_down.png
+0
-0
bg_share_top.jpg
plugin_share/src/main/res/drawable-xxhdpi/bg_share_top.jpg
+0
-0
banner_share_ruler_top.png
...in_share/src/main/res/drawable/banner_share_ruler_top.png
+0
-0
icon_triangle_share_ruler.xml
...share/src/main/res/drawable/icon_triangle_share_ruler.xml
+8
-0
activity_reative_bill.xml
plugin_share/src/main/res/layout/activity_reative_bill.xml
+4
-3
activity_share.xml
plugin_share/src/main/res/layout/activity_share.xml
+241
-232
activity_share_ruler.xml
plugin_share/src/main/res/layout/activity_share_ruler.xml
+270
-0
No files found.
RvWrapper/src/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
View file @
cabd7cff
...
@@ -62,7 +62,7 @@ public class OkHttpCreate {
...
@@ -62,7 +62,7 @@ public class OkHttpCreate {
// return cookies != null ? cookies : new ArrayList<Cookie>();
// return cookies != null ? cookies : new ArrayList<Cookie>();
// }
// }
// });
// });
setCache
(
mHttpBuilder
);
//
setCache(mHttpBuilder);
// addHttpHeader();
// addHttpHeader();
// return mHttpBuilder;
// return mHttpBuilder;
}
}
...
...
RvWrapper/src/main/java/com/ruiwenliu/wrapper/util/glide/GlideManager.java
View file @
cabd7cff
...
@@ -35,7 +35,7 @@ public class GlideManager {
...
@@ -35,7 +35,7 @@ public class GlideManager {
private
Context
mContext
;
private
Context
mContext
;
p
ublic
GlideManager
(
Context
context
)
{
p
rivate
GlideManager
(
Context
context
)
{
this
.
mContext
=
context
.
getApplicationContext
();
this
.
mContext
=
context
.
getApplicationContext
();
}
}
...
...
plugin_member/src/main/java/com/rv.member/adapter/MemberListAdapter.java
View file @
cabd7cff
...
@@ -247,7 +247,7 @@ public class MemberListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
...
@@ -247,7 +247,7 @@ public class MemberListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
}
}
});
});
if
(!
TextUtils
.
isEmpty
(
bean
.
getIcon
()))
if
(!
TextUtils
.
isEmpty
(
bean
.
getIcon
()))
new
GlideManager
(
mContext
).
loadImage
(
bean
.
getIcon
(),
viewHolder
.
img_icon
);
GlideManager
.
getInstance
(
mContext
).
loadImage
(
bean
.
getIcon
(),
viewHolder
.
img_icon
);
SpannableString
spannableString
=
new
SpannableString
(
bean
.
getName
()
+
bean
.
getPrice
()
+
"元 (永久)"
);
SpannableString
spannableString
=
new
SpannableString
(
bean
.
getName
()
+
bean
.
getPrice
()
+
"元 (永久)"
);
spannableString
.
setSpan
(
new
ForegroundColorSpan
(
Color
.
parseColor
(
"#F25B5B"
)),
bean
.
getName
().
length
(),
spannableString
.
length
(),
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
spannableString
.
setSpan
(
new
ForegroundColorSpan
(
Color
.
parseColor
(
"#F25B5B"
)),
bean
.
getName
().
length
(),
spannableString
.
length
(),
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
...
...
plugin_points/src/main/java/com/rv/points/PointsActivity.java
View file @
cabd7cff
...
@@ -2,6 +2,8 @@ package com.rv.points;
...
@@ -2,6 +2,8 @@ package com.rv.points;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.os.Build
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
...
@@ -17,6 +19,7 @@ import android.widget.LinearLayout;
...
@@ -17,6 +19,7 @@ import android.widget.LinearLayout;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.base.utils.ui.image.round.RoundImageView
;
import
com.base.utils.ui.image.round.RoundImageView
;
import
com.bumptech.glide.Glide
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
...
@@ -37,6 +40,7 @@ import com.yuyife.okgo.OkGoUtil;
...
@@ -37,6 +40,7 @@ import com.yuyife.okgo.OkGoUtil;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
butterknife.BindView
;
import
butterknife.BindView
;
...
@@ -56,6 +60,8 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
...
@@ -56,6 +60,8 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
private
PointAdapter
adapter
;
private
PointAdapter
adapter
;
private
UserInfoBean
userInfo
;
private
UserInfoBean
userInfo
;
private
List
<
PointBean
.
RvPointItem
>
points
=
new
ArrayList
<>();
@Override
@Override
protected
int
setLayout
()
{
protected
int
setLayout
()
{
return
R
.
layout
.
activity_points
;
return
R
.
layout
.
activity_points
;
...
@@ -81,20 +87,31 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
...
@@ -81,20 +87,31 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
}
}
}
}
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
LinearLayout
.
VERTICAL
,
false
));
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
LinearLayout
.
VERTICAL
,
false
));
adapter
=
new
PointAdapter
(
new
ArrayList
<
PointBean
.
RvPointItem
>()
);
adapter
=
new
PointAdapter
(
this
,
points
);
recyclerView
.
setAdapter
(
adapter
);
recyclerView
.
setAdapter
(
adapter
);
adapter
.
setOnItemChildClickListener
(
new
BaseQuickAdapter
.
OnItemChildClickListener
()
{
adapter
.
setOnItemClickListener
(
new
PointAdapter
.
OnItemClickListener
()
{
@Override
public
void
openSignRuler
(
String
code
)
{
if
(!
TextUtils
.
isEmpty
(
code
))
getSignRuler
(
code
);
}
@Override
@Override
public
void
onItemChildClick
(
BaseQuickAdapter
adapter
,
View
view
,
int
position
)
{
public
void
onClick
(
PointBean
.
RvPointItem
item
)
{
int
id
=
view
.
getId
();
PointBean
.
RvPointItem
item
=
(
PointBean
.
RvPointItem
)
adapter
.
getItem
(
position
);
if
(
R
.
id
.
btn_state
==
id
)
{
if
(!
TextUtils
.
isEmpty
(
item
.
getCode
()))
if
(!
TextUtils
.
isEmpty
(
item
.
getCode
()))
mPresenter
.
go
(
item
.
getCode
().
toLowerCase
().
trim
());
mPresenter
.
go
(
item
.
getCode
().
toLowerCase
().
trim
());
}
else
if
(
R
.
id
.
tv_regulation
==
id
)
{
getSignRuler
(
item
.
getCode
());
}
}
});
recyclerView
.
addOnScrollListener
(
new
RecyclerView
.
OnScrollListener
()
{
@Override
public
void
onScrollStateChanged
(
@NonNull
RecyclerView
recyclerView
,
int
newState
)
{
super
.
onScrollStateChanged
(
recyclerView
,
newState
);
if
(
newState
==
RecyclerView
.
SCROLL_STATE_IDLE
)
{
Glide
.
with
(
PointsActivity
.
this
).
resumeRequests
();
//恢复Glide加载图片
}
else
{
Glide
.
with
(
PointsActivity
.
this
).
pauseRequests
();
//禁止Glide加载图片
}
}
}
});
});
}
}
...
@@ -146,8 +163,9 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
...
@@ -146,8 +163,9 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
if
(
requestType
==
1
)
{
if
(
requestType
==
1
)
{
PointBean
pointBean
=
(
PointBean
)
result
;
PointBean
pointBean
=
(
PointBean
)
result
;
if
(
pointBean
.
getData
()
!=
null
&&
pointBean
.
getData
().
getData
()
!=
null
)
{
if
(
pointBean
.
getData
()
!=
null
&&
pointBean
.
getData
().
getData
()
!=
null
)
{
adapter
.
getData
().
clear
();
points
.
clear
();
adapter
.
addData
(
pointBean
.
getData
().
getData
());
points
.
addAll
(
pointBean
.
getData
().
getData
());
adapter
.
notifyDataSetChanged
();
}
}
}
}
...
@@ -155,11 +173,11 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
...
@@ -155,11 +173,11 @@ public class PointsActivity extends BaseStatusActivity<PointPresenter> {
if
(
result
!=
null
&&
result
instanceof
UserPointInfoBean
)
{
if
(
result
!=
null
&&
result
instanceof
UserPointInfoBean
)
{
UserPointInfoBean
pointInfoBean
=
(
UserPointInfoBean
)
result
;
UserPointInfoBean
pointInfoBean
=
(
UserPointInfoBean
)
result
;
if
(
pointInfoBean
.
getData
()
!=
null
)
{
if
(
pointInfoBean
.
getData
()
!=
null
)
{
String
text
=
pointInfoBean
.
getData
().
getRestPoint
()
+
"\n分"
;
String
text
=
pointInfoBean
.
getData
().
getRestPoint
()
+
"\n
积
分"
;
int
position
=
text
.
indexOf
(
"分"
);
int
position
=
text
.
indexOf
(
"
积
分"
);
SpannableString
sStr
=
new
SpannableString
(
text
);
SpannableString
sStr
=
new
SpannableString
(
text
);
sStr
.
setSpan
(
new
AbsoluteSizeSpan
(
DisplayUtil
.
sp2px
(
this
,
12
)),
position
,
position
+
1
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
sStr
.
setSpan
(
new
AbsoluteSizeSpan
(
DisplayUtil
.
sp2px
(
this
,
12
)),
position
,
position
+
2
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
sStr
.
setSpan
(
new
ForegroundColorSpan
(
Color
.
parseColor
(
"#F8F3C9"
)),
position
,
position
+
1
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
sStr
.
setSpan
(
new
ForegroundColorSpan
(
Color
.
parseColor
(
"#F8F3C9"
)),
position
,
position
+
2
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
tvPoint
.
setText
(
sStr
);
tvPoint
.
setText
(
sStr
);
}
}
}
}
...
...
plugin_points/src/main/java/com/rv/points/adapter/PointAdapter.java
View file @
cabd7cff
package
com
.
rv
.
points
.
adapter
;
package
com
.
rv
.
points
.
adapter
;
import
android.content.Context
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.support.v7.widget.RecyclerView
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.BaseAdapter
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
...
@@ -15,38 +23,119 @@ import com.rv.points.bean.PointBean;
...
@@ -15,38 +23,119 @@ import com.rv.points.bean.PointBean;
import
java.util.List
;
import
java.util.List
;
public
class
PointAdapter
extends
BaseQuickAdapter
<
PointBean
.
RvPointItem
,
BaseViewHolder
>
{
public
class
PointAdapter
extends
RecyclerView
.
Adapter
{
public
PointAdapter
(
List
<
PointBean
.
RvPointItem
>
lists
)
{
private
Context
mContext
;
super
(
R
.
layout
.
item_point
,
lists
);
private
List
<
PointBean
.
RvPointItem
>
mLists
;
private
OnItemClickListener
mListener
;
public
PointAdapter
(
Context
context
,
List
<
PointBean
.
RvPointItem
>
lists
)
{
super
();
this
.
mContext
=
context
;
this
.
mLists
=
lists
;
}
public
void
setOnItemClickListener
(
OnItemClickListener
listener
)
{
this
.
mListener
=
listener
;
}
}
@NonNull
@Override
@Override
protected
void
convert
(
BaseViewHolder
helper
,
PointBean
.
RvPointItem
item
)
{
public
RecyclerView
.
ViewHolder
onCreateViewHolder
(
@NonNull
ViewGroup
viewGroup
,
int
i
)
{
View
view
=
LayoutInflater
.
from
(
mContext
).
inflate
(
R
.
layout
.
item_point
,
viewGroup
,
false
);
return
new
PointViewHolder
(
view
);
}
@Override
public
void
onBindViewHolder
(
@NonNull
RecyclerView
.
ViewHolder
viewHolder
,
int
i
)
{
final
PointBean
.
RvPointItem
item
=
mLists
.
get
(
i
);
PointViewHolder
holder
=
(
PointViewHolder
)
viewHolder
;
if
(!
TextUtils
.
isEmpty
(
item
.
getImg
()))
{
if
(!
TextUtils
.
isEmpty
(
item
.
getImg
()))
{
GlideManager
.
getInstance
(
mContext
).
loadImage
(
item
.
getImg
(),
(
ImageView
)
helper
.
itemView
.
findViewById
(
R
.
id
.
img_icon
));
GlideManager
.
getInstance
(
mContext
).
loadImage
(
item
.
getImg
(),
holder
.
imgIcon
);
}
else
{
holder
.
imgIcon
.
setImageResource
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_error
);
}
}
if
(!
TextUtils
.
isEmpty
(
item
.
getName
()))
{
if
(!
TextUtils
.
isEmpty
(
item
.
getName
()))
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getName
());
holder
.
tvName
.
setText
(
item
.
getName
());
}
else
{
holder
.
tvName
.
setText
(
""
);
}
}
if
(!
TextUtils
.
isEmpty
(
item
.
getRegulation
()))
{
if
(!
TextUtils
.
isEmpty
(
item
.
getRegulation
()))
{
if
(
"SIGN"
.
equals
(
item
.
getCode
()))
{
if
(
"SIGN"
.
equals
(
item
.
getCode
()))
{
helper
.
setText
(
R
.
id
.
tv_regulation
,
"签到规则"
);
holder
.
tvRegulation
.
setText
(
"签到规则"
);
helper
.
setTextColor
(
R
.
id
.
tv_regulation
,
Color
.
parseColor
(
"#FFB74B"
));
holder
.
tvRegulation
.
setTextColor
(
Color
.
parseColor
(
"#FFB74B"
));
helper
.
addOnClickListener
(
R
.
id
.
tv_regulation
);
holder
.
tvRegulation
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
if
(
mListener
!=
null
)
{
mListener
.
openSignRuler
(
item
.
getCode
());
}
}
});
}
else
{
}
else
{
h
elper
.
setText
(
R
.
id
.
tv_regulation
,
item
.
getRegulation
());
h
older
.
tvRegulation
.
setText
(
item
.
getRegulation
());
h
elper
.
setTextColor
(
R
.
id
.
tv_regulation
,
Color
.
parseColor
(
"#999999"
));
h
older
.
tvRegulation
.
setTextColor
(
Color
.
parseColor
(
"#999999"
));
}
}
}
else
{
holder
.
tvRegulation
.
setText
(
""
);
}
}
if
(
item
.
getPoint
()
!=
0
)
{
if
(
item
.
getPoint
()
!=
0
)
{
helper
.
setText
(
R
.
id
.
tv_points
,
item
.
getPoint
()
+
"分"
);
holder
.
tvPoints
.
setVisibility
(
View
.
VISIBLE
);
holder
.
tvPoints
.
setText
(
item
.
getPoint
()
+
"分"
);
}
else
{
holder
.
tvPoints
.
setVisibility
(
View
.
GONE
);
}
}
if
(!
TextUtils
.
isEmpty
(
item
.
getBtnWord
()))
{
if
(!
TextUtils
.
isEmpty
(
item
.
getBtnWord
()))
{
h
elper
.
setText
(
R
.
id
.
btn_state
,
item
.
getBtnWord
());
h
older
.
btnState
.
setText
(
item
.
getBtnWord
());
}
}
helper
.
setBackgroundRes
(
R
.
id
.
btn_state
,
item
.
isIntegralStatus
()
?
R
.
drawable
.
shape_rv_bg_member_top_grap
:
R
.
drawable
.
shape_rv_bg_dark_yellow
);
helper
.
itemView
.
findViewById
(
R
.
id
.
btn_state
).
setEnabled
(!
item
.
isIntegralStatus
());
if
(
"SIGN"
.
equals
(
item
.
getCode
()))
{
helper
.
addOnClickListener
(
R
.
id
.
btn_state
);
holder
.
btnState
.
setEnabled
(
true
);
holder
.
btnState
.
setBackgroundResource
(
R
.
drawable
.
shape_rv_bg_dark_yellow
);
}
else
{
holder
.
btnState
.
setEnabled
(!
item
.
isIntegralStatus
());
holder
.
btnState
.
setBackgroundResource
(
item
.
isIntegralStatus
()
?
R
.
drawable
.
shape_rv_bg_member_top_grap
:
R
.
drawable
.
shape_rv_bg_dark_yellow
);
}
}
holder
.
btnState
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
if
(
mListener
!=
null
)
{
mListener
.
onClick
(
item
);
}
}
});
}
@Override
public
int
getItemCount
()
{
return
mLists
.
size
();
}
private
class
PointViewHolder
extends
RecyclerView
.
ViewHolder
{
ImageView
imgIcon
;
TextView
tvName
;
TextView
tvPoints
;
TextView
tvRegulation
;
Button
btnState
;
public
PointViewHolder
(
@NonNull
View
itemView
)
{
super
(
itemView
);
imgIcon
=
itemView
.
findViewById
(
R
.
id
.
img_icon
);
tvName
=
itemView
.
findViewById
(
R
.
id
.
tv_name
);
tvPoints
=
itemView
.
findViewById
(
R
.
id
.
tv_points
);
tvRegulation
=
itemView
.
findViewById
(
R
.
id
.
tv_regulation
);
btnState
=
itemView
.
findViewById
(
R
.
id
.
btn_state
);
}
}
public
interface
OnItemClickListener
{
void
openSignRuler
(
String
code
);
void
onClick
(
PointBean
.
RvPointItem
item
);
}
}
}
plugin_points/src/main/res/layout/activity_points.xml
View file @
cabd7cff
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
android:layout_height=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:padding=
"@dimen/size_10"
android:padding=
"@dimen/size_10"
android:src=
"@drawable/rv_common_icon_back_
white
"
/>
android:src=
"@drawable/rv_common_icon_back_
grap
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"我的积分"
android:text=
"我的积分"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"@dimen/
sp_16
"
/>
android:textSize=
"@dimen/
text_18
"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<RelativeLayout
...
@@ -61,10 +61,12 @@
...
@@ -61,10 +61,12 @@
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"@dimen/size_50"
android:layout_marginRight=
"@dimen/size_50"
android:fontFamily=
"sans-serif-condensed"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"0"
android:text=
"0"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/text_22"
/>
android:textSize=
"24sp"
android:textStyle=
"bold"
/>
</RelativeLayout>
</RelativeLayout>
<include
layout=
"@layout/common_rv"
/>
<include
layout=
"@layout/common_rv"
/>
...
...
plugin_points/src/main/res/layout/activity_sign.xml
View file @
cabd7cff
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_toRightOf=
"@+id/img_icon"
android:layout_toRightOf=
"@+id/img_icon"
android:text=
"你已累计签到
9
天"
/>
android:text=
"你已累计签到
0
天"
/>
<Button
<Button
android:id=
"@+id/btn_sign"
android:id=
"@+id/btn_sign"
...
...
plugin_points/src/main/res/layout/item_point.xml
View file @
cabd7cff
...
@@ -29,15 +29,24 @@
...
@@ -29,15 +29,24 @@
android:textColor=
"#000000"
android:textColor=
"#000000"
android:textSize=
"@dimen/text_15"
/>
android:textSize=
"@dimen/text_15"
/>
<ImageView
android:id=
"@+id/img_points_icon"
android:layout_width=
"@dimen/size_10"
android:layout_height=
"@dimen/size_10"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/size_3"
android:layout_toRightOf=
"@id/tv_name"
android:src=
"@drawable/icon_point"
/>
<TextView
<TextView
android:id=
"@+id/tv_points"
android:id=
"@+id/tv_points"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_toRightOf=
"@id/tv_name"
android:layout_toRightOf=
"@id/img_points_icon"
android:drawableLeft=
"@drawable/icon_point"
android:drawablePadding=
"@dimen/size_2"
android:text=
"10分"
android:text=
"10分"
android:textColor=
"@color/tv_gr999999"
android:textColor=
"@color/tv_gr999999"
android:textSize=
"@dimen/sp_12"
/>
android:textSize=
"@dimen/sp_12"
/>
...
@@ -47,7 +56,6 @@
...
@@ -47,7 +56,6 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_toLeftOf=
"@+id/btn_state"
android:layout_toLeftOf=
"@+id/btn_state"
android:layout_toRightOf=
"@id/tv_points"
android:layout_toRightOf=
"@id/tv_points"
...
...
plugin_share/src/main/AndroidManifest.xml
View file @
cabd7cff
...
@@ -6,16 +6,18 @@
...
@@ -6,16 +6,18 @@
<activity
android:name=
".ShareActivity"
/>
<activity
android:name=
".ShareActivity"
/>
<activity
android:name=
".BillActivity"
/>
<activity
android:name=
".BillActivity"
/>
<activity
android:name=
".WebViewActivity"
>
<activity
android:name=
".WebViewActivity"
>
<!--<intent-filter>-->
<!--<data android:scheme="rv" android:host="xxfc" android:path="/activity" />-->
<!-- <intent-filter> -->
<!--<!–下面这几行也必须得设置–>-->
<!-- <data android:scheme="rv" android:host="xxfc" android:path="/activity" /> -->
<!--<category android:name="android.intent.category.DEFAULT"/>-->
<!-- <!–下面这几行也必须得设置–> -->
<!--<action android:name="android.intent.action.VIEW"/>-->
<!-- <category android:name="android.intent.category.DEFAULT"/> -->
<!--<category android:name="android.intent.category.BROWSABLE"/>-->
<!-- <action android:name="android.intent.action.VIEW"/> -->
<!--</intent-filter>-->
<!-- <category android:name="android.intent.category.BROWSABLE"/> -->
<!-- </intent-filter> -->
</activity>
</activity>
<activity
android:name=
".ReativeBillActivity"
/>
<activity
android:name=
".ReativeBillActivity"
/>
<activity
android:name=
".PopularizeActivity"
></activity>
<activity
android:name=
".PopularizeActivity"
/>
<activity
android:name=
".ShareRulerActivity"
></activity>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
plugin_share/src/main/java/com/rv/share/ReativeBillActivity.java
View file @
cabd7cff
...
@@ -87,11 +87,12 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
...
@@ -87,11 +87,12 @@ public class ReativeBillActivity extends BaseStatusActivity<ReativeBillPresenter
}
}
@OnClick
({
R2
.
id
.
btn_save_bill
,
R2
.
id
.
btn_share
})
@OnClick
({
R2
.
id
.
btn_save_bill
,
R2
.
id
.
btn_share
,
R2
.
id
.
tv_back_title
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
tv_back_title
)
{
if
(
id
==
R
.
id
.
btn_save_bill
)
{
finish
();
}
else
if
(
id
==
R
.
id
.
btn_save_bill
)
{
mPresenter
.
saveBill
(
llContent
);
mPresenter
.
saveBill
(
llContent
);
}
else
if
(
id
==
R
.
id
.
btn_share
)
{
}
else
if
(
id
==
R
.
id
.
btn_share
)
{
mPresenter
.
saveShare
(
llContent
);
mPresenter
.
saveShare
(
llContent
);
...
...
plugin_share/src/main/java/com/rv/share/ShareActivity.java
View file @
cabd7cff
...
@@ -115,13 +115,13 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
...
@@ -115,13 +115,13 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
shareUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/invitationCourtesyShare.html?code="
+
code
+
"_P0101"
;
shareUrl
=
RvFrameConfig
.
HOST
+
"/h5/appHtml/view/invitationCourtesyShare.html?code="
+
code
+
"_P0101"
;
}
}
if
(
id
==
R
.
id
.
tv_weixin
)
{
if
(
id
==
R
.
id
.
tv_weixin
)
{
mPresenter
.
shareWx
(
shareUrl
,
"
【滴房车】"
,
"新人专享大礼包,快去领!
"
);
mPresenter
.
shareWx
(
shareUrl
,
"
新人专享大礼包,快去领!"
,
"
"
);
}
else
if
(
id
==
R
.
id
.
tv_weixin_circle
)
{
}
else
if
(
id
==
R
.
id
.
tv_weixin_circle
)
{
mPresenter
.
shareWxC
(
shareUrl
,
"
【滴房车】"
,
"新人专享大礼包,快去领!
"
);
mPresenter
.
shareWxC
(
shareUrl
,
"
新人专享大礼包,快去领!"
,
"
"
);
}
else
if
(
id
==
R
.
id
.
tv_bill
)
{
}
else
if
(
id
==
R
.
id
.
tv_bill
)
{
startActivity
(
ReativeBillActivity
.
getIntent
(
this
,
shareUrl
));
startActivity
(
ReativeBillActivity
.
getIntent
(
this
,
shareUrl
));
}
else
if
(
id
==
R
.
id
.
tv_more
)
{
}
else
if
(
id
==
R
.
id
.
tv_more
)
{
mPresenter
.
shareMore
(
shareUrl
,
"
【滴房车】"
,
"新人专享大礼包,快去领!
"
);
mPresenter
.
shareMore
(
shareUrl
,
"
新人专享大礼包,快去领!"
,
"
"
);
}
else
if
(
id
==
R
.
id
.
tv_more_detail
)
{
}
else
if
(
id
==
R
.
id
.
tv_more_detail
)
{
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
0
));
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
0
));
}
else
if
(
id
==
R
.
id
.
ll_activation
)
{
}
else
if
(
id
==
R
.
id
.
ll_activation
)
{
...
@@ -130,6 +130,8 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
...
@@ -130,6 +130,8 @@ public class ShareActivity extends BaseStatusActivity<SharePresenter> {
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
1
));
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
1
));
}
else
if
(
id
==
R
.
id
.
ll_comein
)
{
}
else
if
(
id
==
R
.
id
.
ll_comein
)
{
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
0
));
startActivity
(
PopularizeActivity
.
getIntent
(
getApplicationContext
(),
0
));
}
else
if
(
id
==
R
.
id
.
tv_ruler
)
{
startActivity
(
new
Intent
(
getApplicationContext
(),
ShareRulerActivity
.
class
));
}
}
}
}
...
...
plugin_share/src/main/java/com/rv/share/ShareRulerActivity.java
0 → 100644
View file @
cabd7cff
package
com
.
rv
.
share
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
public
class
ShareRulerActivity
extends
BaseStatusActivity
<
CommonPresenter
>
{
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
activity_share_ruler
;
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"推广有奖规则"
);
}
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
}
}
plugin_share/src/main/java/com/rv/share/view/PromotionDialog.java
View file @
cabd7cff
...
@@ -62,11 +62,11 @@ public class PromotionDialog extends Dialog {
...
@@ -62,11 +62,11 @@ public class PromotionDialog extends Dialog {
dialog
.
addContentView
(
layout
,
new
WindowManager
.
LayoutParams
(
WindowManager
.
LayoutParams
.
MATCH_PARENT
,
WindowManager
.
LayoutParams
.
WRAP_CONTENT
));
dialog
.
addContentView
(
layout
,
new
WindowManager
.
LayoutParams
(
WindowManager
.
LayoutParams
.
MATCH_PARENT
,
WindowManager
.
LayoutParams
.
WRAP_CONTENT
));
this
.
button
=
layout
.
findViewById
(
R
.
id
.
button
);
this
.
button
=
layout
.
findViewById
(
R
.
id
.
button
);
if
(
this
.
act
!=
null
&&
!
TextUtils
.
isEmpty
(
this
.
act
.
getButtonImages
()))
{
if
(
this
.
act
!=
null
&&
!
TextUtils
.
isEmpty
(
this
.
act
.
getButtonImages
()))
{
GlideManager
.
getInstance
(
mContext
).
loadImage
(
this
.
act
.
getButtonImages
(),
this
.
button
);
GlideManager
.
getInstance
(
mContext
).
loadImage
2
(
this
.
act
.
getButtonImages
(),
this
.
button
);
}
}
this
.
imgBg
=
layout
.
findViewById
(
R
.
id
.
img_bg
);
this
.
imgBg
=
layout
.
findViewById
(
R
.
id
.
img_bg
);
if
(
this
.
act
!=
null
&&
!
TextUtils
.
isEmpty
(
this
.
act
.
getBackground
()))
{
if
(
this
.
act
!=
null
&&
!
TextUtils
.
isEmpty
(
this
.
act
.
getBackground
()))
{
GlideManager
.
getInstance
(
mContext
).
loadImage
(
this
.
act
.
getBackground
(),
this
.
imgBg
);
GlideManager
.
getInstance
(
mContext
).
loadImage
2
(
this
.
act
.
getBackground
(),
this
.
imgBg
);
}
}
this
.
imgClose
=
layout
.
findViewById
(
R
.
id
.
img_close
);
this
.
imgClose
=
layout
.
findViewById
(
R
.
id
.
img_close
);
this
.
button
.
setOnClickListener
(
mListener
);
this
.
button
.
setOnClickListener
(
mListener
);
...
...
plugin_share/src/main/java/com/rv/share/view/RvWebView.java
View file @
cabd7cff
...
@@ -4,12 +4,14 @@ import android.content.ComponentName;
...
@@ -4,12 +4,14 @@ import android.content.ComponentName;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.webkit.ConsoleMessage
;
import
android.webkit.ConsoleMessage
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebChromeClient
;
import
android.webkit.WebResourceRequest
;
import
android.webkit.WebResourceRequest
;
import
android.webkit.WebResourceResponse
;
import
android.webkit.WebSettings
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.webkit.WebViewClient
;
...
@@ -90,6 +92,12 @@ public class RvWebView extends WebView {
...
@@ -90,6 +92,12 @@ public class RvWebView extends WebView {
public
boolean
shouldOverrideUrlLoading
(
WebView
view
,
String
url
)
{
public
boolean
shouldOverrideUrlLoading
(
WebView
view
,
String
url
)
{
return
super
.
shouldOverrideUrlLoading
(
view
,
url
);
return
super
.
shouldOverrideUrlLoading
(
view
,
url
);
}
}
@Override
public
WebResourceResponse
shouldInterceptRequest
(
WebView
view
,
WebResourceRequest
request
)
{
WebResourceResponse
response
=
super
.
shouldInterceptRequest
(
view
,
request
);
return
response
;
}
};
};
public
WebChromeClient
webChromeClient
=
new
WebChromeClient
()
{
public
WebChromeClient
webChromeClient
=
new
WebChromeClient
()
{
...
...
plugin_share/src/main/res/drawable-xhdpi/bg_share_ruler_tab.xml
0 → 100644
View file @
cabd7cff
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"#ffff9e74"
/>
<corners
android:bottomLeftRadius=
"80dp"
android:bottomRightRadius=
"80dp"
android:topLeftRadius=
"0dp"
android:topRightRadius=
"80dp"
/>
</shape>
plugin_share/src/main/res/drawable-xhdpi/icon_line_share_ruler.xml
0 → 100644
View file @
cabd7cff
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<stroke
android:width=
"2dp"
android:color=
"#fffe6e2f"
/>
</shape>
\ No newline at end of file
plugin_share/src/main/res/drawable-xhdpi/icon_share_ruler_down.png
0 → 100644
View file @
cabd7cff
267 Bytes
plugin_share/src/main/res/drawable-xxhdpi/bg_share_top.jpg
0 → 100644
View file @
cabd7cff
28.1 KB
plugin_share/src/main/res/drawable/banner_share_ruler_top.png
0 → 100644
View file @
cabd7cff
123 KB
plugin_share/src/main/res/drawable/icon_triangle_share_ruler.xml
0 → 100644
View file @
cabd7cff
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"#ffffffff"
/>
<stroke
android:width=
"2dp"
android:color=
"#fffe6e2f"
/>
</shape>
\ No newline at end of file
plugin_share/src/main/res/layout/activity_reative_bill.xml
View file @
cabd7cff
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
tools:context=
".ReativeBillActivity"
>
tools:context=
".ReativeBillActivity"
>
<TextView
<TextView
android:id=
"@+id/tv_back_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_
48
"
android:layout_height=
"@dimen/size_
55
"
android:drawableLeft=
"@drawable/rv_common_icon_back_dark"
android:drawableLeft=
"@drawable/rv_common_icon_back_dark"
android:drawablePadding=
"5dp"
android:drawablePadding=
"5dp"
android:gravity=
"center"
android:gravity=
"center"
...
@@ -24,9 +25,9 @@
...
@@ -24,9 +25,9 @@
<include
layout=
"@layout/common_line"
/>
<include
layout=
"@layout/common_line"
/>
<FrameLayout
<FrameLayout
android:background=
"#55eeeeee"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:background=
"#55eeeeee"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_content"
android:id=
"@+id/ll_content"
...
...
plugin_share/src/main/res/layout/activity_share.xml
View file @
cabd7cff
...
@@ -4,28 +4,29 @@
...
@@ -4,28 +4,29 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#F
EE4A9
"
android:background=
"#F
CE2A8
"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
".ShareActivity"
>
tools:context=
".ShareActivity"
>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
android:weightSum=
"19"
>
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"wrap_content"
>
android:layout_weight=
"7"
>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"wrap_content"
android:scaleType=
"fitXY"
android:src=
"@drawable/bg_share_top"
/>
android:src=
"@drawable/bg_share_new1"
/>
<TextView
<TextView
android:id=
"@+id/tv_ruler"
android:id=
"@+id/tv_ruler"
...
@@ -43,15 +44,17 @@
...
@@ -43,15 +44,17 @@
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dp_10"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"5"
android:layout_marginTop=
"@dimen/size_10"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_10"
android:background=
"@color/white"
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=
"match_par
ent"
android:layout_height=
"wrap_cont
ent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
...
@@ -66,9 +69,9 @@
...
@@ -66,9 +69,9 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_par
ent"
android:layout_height=
"wrap_cont
ent"
android:layout_marginTop=
"@dimen/size_1
0"
android:layout_marginTop=
"@dimen/size_2
0"
android:layout_marginBottom=
"10dp
"
android:layout_marginBottom=
"@dimen/size_15
"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
@@ -79,6 +82,7 @@
...
@@ -79,6 +82,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:drawableTop=
"@drawable/icon_share_weixin"
android:drawableTop=
"@drawable/icon_share_weixin"
android:drawablePadding=
"@dimen/size_10"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"微信"
/>
android:text=
"微信"
/>
...
@@ -88,6 +92,7 @@
...
@@ -88,6 +92,7 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:drawablePadding=
"@dimen/size_10"
android:drawableTop=
"@drawable/icon_share_wx_circle"
android:drawableTop=
"@drawable/icon_share_wx_circle"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"朋友圈"
/>
android:text=
"朋友圈"
/>
...
@@ -99,6 +104,7 @@
...
@@ -99,6 +104,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:drawableTop=
"@drawable/icon_share_code"
android:drawableTop=
"@drawable/icon_share_code"
android:drawablePadding=
"@dimen/size_10"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"邀请码"
/>
android:text=
"邀请码"
/>
...
@@ -107,7 +113,7 @@
...
@@ -107,7 +113,7 @@
android:id=
"@+id/tv_more"
android:id=
"@+id/tv_more"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:drawablePadding=
"@dimen/size_10"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:drawableTop=
"@drawable/icon_share_more"
android:drawableTop=
"@drawable/icon_share_more"
android:gravity=
"center"
android:gravity=
"center"
...
@@ -122,17 +128,16 @@
...
@@ -122,17 +128,16 @@
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/dp_10"
android:layout_marginBottom=
"@dimen/size_10"
android:layout_weight=
"5"
android:background=
"@color/white"
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=
"match_par
ent"
android:layout_height=
"wrap_cont
ent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
...
@@ -157,22 +162,25 @@
...
@@ -157,22 +162,25 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:drawableRight=
"@drawable/common_icon_rig_black
"
android:drawableRight=
"@drawable/common_icon_rig_gray
"
android:drawablePadding=
"3dp"
android:drawablePadding=
"3dp"
android:text=
"查看详情"
/>
android:text=
"查看详情"
android:textSize=
"@dimen/sp_12"
/>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginTop=
"@dimen/size_20"
android:layout_marginBottom=
"@dimen/size_15"
android:gravity=
"center"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:weightSum=
"3"
>
android:weightSum=
"3"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_comein"
android:id=
"@+id/ll_comein"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_par
ent"
android:layout_height=
"wrap_cont
ent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -200,7 +208,7 @@
...
@@ -200,7 +208,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_invite"
android:id=
"@+id/ll_invite"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_par
ent"
android:layout_height=
"wrap_cont
ent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -228,7 +236,7 @@
...
@@ -228,7 +236,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_activation"
android:id=
"@+id/ll_activation"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_par
ent"
android:layout_height=
"wrap_cont
ent"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -257,11 +265,10 @@
...
@@ -257,11 +265,10 @@
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"48dp"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/dp_10"
android:layout_marginBottom=
"@dimen/size_10"
android:layout_weight=
"2"
android:background=
"@color/white"
android:background=
"@color/white"
app:cardCornerRadius=
"5dp"
>
app:cardCornerRadius=
"5dp"
>
...
@@ -308,4 +315,6 @@
...
@@ -308,4 +315,6 @@
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
plugin_share/src/main/res/layout/activity_share_ruler.xml
0 → 100644
View file @
cabd7cff
This diff is collapsed.
Click to expand it.
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