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
73c600ef
Commit
73c600ef
authored
Jul 22, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改签到页面的样式;修改cookie的存储地址;屏蔽免费天数的入口
parent
199eebb6
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
180 additions
and
73 deletions
+180
-73
OkHttpCreate.java
...rc/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
+0
-3
Cooker.java
...nt_utils/src/main/java/com/rv/component/utils/Cooker.java
+2
-3
MemberCenterActivity.java
...ber/src/main/java/com/rv.member/MemberCenterActivity.java
+1
-1
SignActivity.java
plugin_points/src/main/java/com/rv/points/SignActivity.java
+24
-5
DateAdapter.java
...ints/src/main/java/com/rv/points/adapter/DateAdapter.java
+15
-5
WeekNavigation.java
...ints/src/main/java/com/rv/points/view/WeekNavigation.java
+9
-8
banner_sign.png
plugin_points/src/main/res/drawable-xhdpi/banner_sign.png
+0
-0
bg_sign_weeks.png
plugin_points/src/main/res/drawable-xhdpi/bg_sign_weeks.png
+0
-0
icon_sign.png
plugin_points/src/main/res/drawable-xhdpi/icon_sign.png
+0
-0
icon_signed.png
plugin_points/src/main/res/drawable-xhdpi/icon_signed.png
+0
-0
icon_unsign.png
plugin_points/src/main/res/drawable-xhdpi/icon_unsign.png
+0
-0
bg_points_sign.xml
plugin_points/src/main/res/drawable/bg_points_sign.xml
+8
-0
bg_sing_btn_able.xml
plugin_points/src/main/res/drawable/bg_sing_btn_able.xml
+5
-0
activity_sign.xml
plugin_points/src/main/res/layout/activity_sign.xml
+103
-37
item_gv.xml
plugin_points/src/main/res/layout/item_gv.xml
+13
-11
No files found.
RvWrapper/src/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
View file @
73c600ef
...
@@ -116,14 +116,11 @@ public class OkHttpCreate {
...
@@ -116,14 +116,11 @@ public class OkHttpCreate {
public
void
log
(
String
message
)
{
public
void
log
(
String
message
)
{
LogUtils
.
d
(
message
);
LogUtils
.
d
(
message
);
}
}
});
});
loggingInterceptor
.
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
);
loggingInterceptor
.
setLevel
(
HttpLoggingInterceptor
.
Level
.
BODY
);
this
.
mHttpBuilder
.
addInterceptor
(
loggingInterceptor
);
this
.
mHttpBuilder
.
addInterceptor
(
loggingInterceptor
);
}
}
/**
/**
* 设置超时时间
* 设置超时时间
*
*
...
...
component_utils/src/main/java/com/rv/component/utils/Cooker.java
View file @
73c600ef
...
@@ -5,7 +5,7 @@ import android.content.SharedPreferences;
...
@@ -5,7 +5,7 @@ import android.content.SharedPreferences;
public
class
Cooker
{
public
class
Cooker
{
private
final
static
String
COOKIE_FILE
=
"cookie"
;
private
final
static
String
COOKIE_FILE
=
"cookie"
;
private
static
SharedPreferences
preferences
;
private
static
SharedPreferences
preferences
;
...
@@ -67,6 +67,7 @@ public class Cooker {
...
@@ -67,6 +67,7 @@ public class Cooker {
public
static
float
getFloatValue
(
Context
context
,
String
key
,
float
def
)
{
public
static
float
getFloatValue
(
Context
context
,
String
key
,
float
def
)
{
return
getPreference
(
context
).
getFloat
(
key
,
def
);
return
getPreference
(
context
).
getFloat
(
key
,
def
);
}
}
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
)
{
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
)
{
return
getBooleanValue
(
context
,
key
,
false
);
return
getBooleanValue
(
context
,
key
,
false
);
}
}
...
@@ -74,6 +75,4 @@ public class Cooker {
...
@@ -74,6 +75,4 @@ public class Cooker {
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
,
boolean
def
)
{
public
static
boolean
getBooleanValue
(
Context
context
,
String
key
,
boolean
def
)
{
return
getPreference
(
context
).
getBoolean
(
key
,
def
);
return
getPreference
(
context
).
getBoolean
(
key
,
def
);
}
}
}
}
plugin_member/src/main/java/com/rv.member/MemberCenterActivity.java
View file @
73c600ef
...
@@ -215,7 +215,7 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
...
@@ -215,7 +215,7 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
}
else
if
(
id
==
R
.
id
.
tv_purchase_record
)
{
}
else
if
(
id
==
R
.
id
.
tv_purchase_record
)
{
startActivity
(
new
Intent
(
MemberCenterActivity
.
this
,
PurchaseRecordActivity
.
class
));
startActivity
(
new
Intent
(
MemberCenterActivity
.
this
,
PurchaseRecordActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
tv_free_day
)
{
}
else
if
(
id
==
R
.
id
.
tv_free_day
)
{
startActivity
(
new
Intent
(
MemberCenterActivity
.
this
,
FreesDayActivity
.
class
));
//
startActivity(new Intent(MemberCenterActivity.this, FreesDayActivity.class));
}
}
}
}
...
...
plugin_points/src/main/java/com/rv/points/SignActivity.java
View file @
73c600ef
package
com
.
rv
.
points
;
package
com
.
rv
.
points
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.text.Spannable
;
import
android.text.SpannableString
;
import
android.text.Spanned
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.text.style.AbsoluteSizeSpan
;
import
android.text.style.ForegroundColorSpan
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
...
@@ -12,6 +19,7 @@ import com.frame.rv.config.RvFrameConfig;
...
@@ -12,6 +19,7 @@ import com.frame.rv.config.RvFrameConfig;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
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.component.utils.DisplayUtil
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.ApiConfig
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.home.rv.module.basic.BaseStatusActivity
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
import
com.rv.home.rv.module.basic.presenter.CommonPresenter
;
...
@@ -35,6 +43,8 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -35,6 +43,8 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
InnerGridView
innerGridView
;
InnerGridView
innerGridView
;
@BindView
(
R2
.
id
.
tv_sign_day
)
@BindView
(
R2
.
id
.
tv_sign_day
)
TextView
tvSignDay
;
TextView
tvSignDay
;
@BindView
(
R2
.
id
.
img_back
)
ImageView
imgBack
;
private
DateAdapter
dateAdapter
;
private
DateAdapter
dateAdapter
;
@Override
@Override
...
@@ -44,13 +54,19 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -44,13 +54,19 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
set
Title
(
"签到"
);
titleView
.
set
Visibility
(
View
.
GONE
);
btnSign
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
btnSign
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
view
)
{
public
void
onClick
(
View
view
)
{
sign
();
sign
();
}
}
});
});
imgBack
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
finish
();
}
});
dateAdapter
=
new
DateAdapter
(
this
);
dateAdapter
=
new
DateAdapter
(
this
);
innerGridView
.
setAdapter
(
dateAdapter
);
innerGridView
.
setAdapter
(
dateAdapter
);
}
}
...
@@ -66,7 +82,10 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -66,7 +82,10 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
if
(
requestType
==
0
)
{
if
(
requestType
==
0
)
{
SignRecordBean
bean
=
(
SignRecordBean
)
result
;
SignRecordBean
bean
=
(
SignRecordBean
)
result
;
if
(
bean
.
getData
()
!=
null
&&
bean
.
getData
().
size
()
>
0
)
{
if
(
bean
.
getData
()
!=
null
&&
bean
.
getData
().
size
()
>
0
)
{
tvSignDay
.
setText
(
"你已累计签到"
+
bean
.
getData
().
size
()
+
"天"
);
SpannableString
msp
=
new
SpannableString
(
"累计签到 "
+
bean
.
getData
().
size
()
+
" 天"
);
msp
.
setSpan
(
new
ForegroundColorSpan
(
Color
.
parseColor
(
"#FDC349"
)),
5
,
msp
.
length
()
-
2
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
msp
.
setSpan
(
new
AbsoluteSizeSpan
(
DisplayUtil
.
sp2px
(
getApplicationContext
(),
18
)),
5
,
msp
.
length
()
-
2
,
Spannable
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
tvSignDay
.
setText
(
msp
);
dateAdapter
.
setSignData
(
bean
.
getData
());
dateAdapter
.
setSignData
(
bean
.
getData
());
}
}
}
}
...
@@ -97,9 +116,9 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -97,9 +116,9 @@ public class SignActivity extends BaseStatusActivity<CommonPresenter> {
Map
<
String
,
Object
>
header
=
new
HashMap
<>();
Map
<
String
,
Object
>
header
=
new
HashMap
<>();
header
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
header
.
put
(
"Authorization"
,
OkGoUtil
.
getToken
());
Map
<
String
,
Object
>
body
=
new
HashMap
<>()
;
Map
<
String
,
Object
>
body
=
new
HashMap
<>()
;
body
.
put
(
"integralRuleCode"
,
"SIGN"
)
;
body
.
put
(
"integralRuleCode"
,
"SIGN"
)
;
mPresenter
.
postData
(
RvFrameConfig
.
HOST
,
1
,
ApiConfig
.
HTTP_URL_SIGN
,
SignResultBean
.
class
,
body
,
header
,
true
);
mPresenter
.
postData
(
RvFrameConfig
.
HOST
,
1
,
ApiConfig
.
HTTP_URL_SIGN
,
SignResultBean
.
class
,
body
,
header
,
true
);
}
}
}
}
...
...
plugin_points/src/main/java/com/rv/points/adapter/DateAdapter.java
View file @
73c600ef
...
@@ -27,6 +27,7 @@ public class DateAdapter extends BaseAdapter {
...
@@ -27,6 +27,7 @@ public class DateAdapter extends BaseAdapter {
private
List
<
Integer
>
days
=
new
ArrayList
<>();
private
List
<
Integer
>
days
=
new
ArrayList
<>();
private
List
<
Integer
>
singRecords
=
new
ArrayList
<>();
private
List
<
Integer
>
singRecords
=
new
ArrayList
<>();
private
int
today
;
//签到成功的回调方法,相应的可自行添加签到失败时的回调方法
//签到成功的回调方法,相应的可自行添加签到失败时的回调方法
...
@@ -34,13 +35,14 @@ public class DateAdapter extends BaseAdapter {
...
@@ -34,13 +35,14 @@ public class DateAdapter extends BaseAdapter {
public
DateAdapter
(
Context
context
)
{
public
DateAdapter
(
Context
context
)
{
this
.
context
=
context
;
this
.
context
=
context
;
int
maxDay
=
DateUtil
.
getCurrentMonthLastDay
();
//获取当月天数
int
maxDay
=
DateUtil
.
getCurrentMonthLastDay
();
//获取当月天数
Calendar
calendar
=
Calendar
.
getInstance
();
today
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
);
for
(
int
i
=
0
;
i
<
DateUtil
.
getFirstDayOfMonth
()
-
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
DateUtil
.
getFirstDayOfMonth
()
-
1
;
i
++)
{
//DateUtil.getFirstDayOfMonth()获取当月第一天是星期几,星期日是第一天,依次类推
//DateUtil.getFirstDayOfMonth()获取当月第一天是星期几,星期日是第一天,依次类推
days
.
add
(
0
);
days
.
add
(
0
);
}
}
for
(
int
i
=
0
;
i
<
maxDay
;
i
++)
{
for
(
int
i
=
0
;
i
<
maxDay
;
i
++)
{
days
.
add
(
i
+
1
);
days
.
add
(
i
+
1
);
}
}
}
}
...
@@ -72,16 +74,24 @@ public class DateAdapter extends BaseAdapter {
...
@@ -72,16 +74,24 @@ public class DateAdapter extends BaseAdapter {
viewHolder
.
tv
=
view
.
findViewById
(
R
.
id
.
tvWeek
);
viewHolder
.
tv
=
view
.
findViewById
(
R
.
id
.
tvWeek
);
viewHolder
.
rlItem
=
view
.
findViewById
(
R
.
id
.
rlItem
);
viewHolder
.
rlItem
=
view
.
findViewById
(
R
.
id
.
rlItem
);
viewHolder
.
ivStatus
=
view
.
findViewById
(
R
.
id
.
ivStatus
);
viewHolder
.
ivStatus
=
view
.
findViewById
(
R
.
id
.
ivStatus
);
if
(
today
==
i
)
{
viewHolder
.
tv
.
setText
(
"今天"
);
}
else
{
viewHolder
.
tv
.
setText
(
days
.
get
(
i
)
+
""
);
viewHolder
.
tv
.
setText
(
days
.
get
(
i
)
+
""
);
}
if
(
days
.
get
(
i
)
==
0
)
{
if
(
days
.
get
(
i
)
==
0
)
{
viewHolder
.
rlItem
.
setVisibility
(
View
.
GONE
);
viewHolder
.
rlItem
.
setVisibility
(
View
.
GONE
);
}
}
if
(
singRecords
!=
null
&&
singRecords
.
contains
(
i
))
{
if
(
singRecords
!=
null
&&
singRecords
.
contains
(
i
))
{
viewHolder
.
tv
.
setTextColor
(
Color
.
parseColor
(
"#FD0000"
)
);
viewHolder
.
ivStatus
.
setImageResource
(
R
.
drawable
.
icon_signed
);
viewHolder
.
ivStatus
.
setVisibility
(
View
.
VISIBLE
);
viewHolder
.
ivStatus
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
}
else
{
viewHolder
.
tv
.
setTextColor
(
Color
.
parseColor
(
"#666666"
));
if
(
today
>
i
)
{
viewHolder
.
ivStatus
.
setVisibility
(
View
.
GONE
);
viewHolder
.
ivStatus
.
setImageResource
(
R
.
drawable
.
icon_unsign
);
viewHolder
.
ivStatus
.
setVisibility
(
View
.
VISIBLE
);
}
else
{
viewHolder
.
ivStatus
.
setVisibility
(
View
.
INVISIBLE
);
}
}
}
return
view
;
return
view
;
...
...
plugin_points/src/main/java/com/rv/points/view/WeekNavigation.java
View file @
73c600ef
...
@@ -8,24 +8,28 @@ import android.graphics.Rect;
...
@@ -8,24 +8,28 @@ import android.graphics.Rect;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
android.view.View
;
import
com.rv.component.utils.DisplayUtil
;
import
com.rv.component.utils.DisplayUtil
;
public
class
WeekNavigation
extends
View
{
public
class
WeekNavigation
extends
View
{
private
String
weeks
[]
=
{
"天"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
};
private
String
weeks
[]
=
{
"天"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
};
private
Context
mContext
;
private
Context
mContext
;
private
Paint
wordsPaint
;
private
Paint
wordsPaint
;
private
int
itemWidth
;
private
int
itemWidth
;
private
int
itemHeight
;
public
WeekNavigation
(
Context
context
,
@Nullable
AttributeSet
attrs
)
{
public
WeekNavigation
(
Context
context
,
@Nullable
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
super
(
context
,
attrs
);
mContext
=
context
;
mContext
=
context
;
wordsPaint
=
new
Paint
();
wordsPaint
=
new
Paint
();
wordsPaint
.
setColor
(
Color
.
WHITE
);
}
}
@Override
@Override
protected
void
onMeasure
(
int
widthMeasureSpec
,
int
heightMeasureSpec
)
{
protected
void
onMeasure
(
int
widthMeasureSpec
,
int
heightMeasureSpec
)
{
super
.
onMeasure
(
widthMeasureSpec
,
heightMeasureSpec
);
super
.
onMeasure
(
widthMeasureSpec
,
heightMeasureSpec
);
int
width
=
getMeasuredWidth
();
int
width
=
getMeasuredWidth
();
itemHeight
=
DisplayUtil
.
sp2px
(
getContext
(),
30
);
itemWidth
=
width
/
7
;
itemWidth
=
width
/
7
;
}
}
...
@@ -34,16 +38,13 @@ public class WeekNavigation extends View {
...
@@ -34,16 +38,13 @@ public class WeekNavigation extends View {
super
.
onDraw
(
canvas
);
super
.
onDraw
(
canvas
);
wordsPaint
.
setTextSize
(
DisplayUtil
.
sp2px
(
mContext
,
14
));
wordsPaint
.
setTextSize
(
DisplayUtil
.
sp2px
(
mContext
,
14
));
for
(
int
i
=
0
;
i
<
weeks
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
weeks
.
length
;
i
++)
{
if
(
0
==
i
||
6
==
i
)
{
wordsPaint
.
setColor
(
Color
.
GRAY
);
}
else
{
wordsPaint
.
setColor
(
Color
.
BLACK
);
}
Rect
rect
=
new
Rect
();
Rect
rect
=
new
Rect
();
wordsPaint
.
getTextBounds
(
weeks
[
i
],
0
,
1
,
rect
);
wordsPaint
.
getTextBounds
(
weeks
[
i
],
0
,
1
,
rect
);
int
wordWidth
=
rect
.
width
();
int
wordWidth
=
rect
.
width
();
float
wordX
=
i
*
itemWidth
+
itemWidth
/
2
;
int
wordHeight
=
rect
.
height
();
float
wordY
=
wordWidth
;
float
wordX
=
i
*
itemWidth
+
itemWidth
/
2
-
wordWidth
/
2
;
float
wordY
=
itemHeight
/
2
+
wordWidth
/
2
;
canvas
.
drawText
(
weeks
[
i
],
wordX
,
wordY
,
wordsPaint
);
canvas
.
drawText
(
weeks
[
i
],
wordX
,
wordY
,
wordsPaint
);
}
}
}
}
...
...
plugin_points/src/main/res/drawable-xhdpi/banner_sign.png
0 → 100644
View file @
73c600ef
141 KB
plugin_points/src/main/res/drawable-xhdpi/bg_sign_weeks.png
0 → 100644
View file @
73c600ef
802 Bytes
plugin_points/src/main/res/drawable-xhdpi/icon_sign.png
0 → 100644
View file @
73c600ef
4.72 KB
plugin_points/src/main/res/drawable-xhdpi/icon_signed.png
0 → 100644
View file @
73c600ef
827 Bytes
plugin_points/src/main/res/drawable-xhdpi/icon_unsign.png
0 → 100644
View file @
73c600ef
759 Bytes
plugin_points/src/main/res/drawable/bg_points_sign.xml
0 → 100644
View file @
73c600ef
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"5dp"
/>
<solid
android:color=
"#ffffff"
/>
<stroke
android:width=
"@dimen/size_1"
android:color=
"#FEAD8A"
/>
</shape>
\ No newline at end of file
plugin_points/src/main/res/drawable/bg_sing_btn_able.xml
0 → 100644
View file @
73c600ef
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"30dp"
/>
<solid
android:color=
"#FDC349"
/>
</shape>
\ No newline at end of file
plugin_points/src/main/res/layout/activity_sign.xml
View file @
73c600ef
...
@@ -9,20 +9,68 @@
...
@@ -9,20 +9,68 @@
tools:context=
".SignActivity"
>
tools:context=
".SignActivity"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_48"
android:background=
"@color/colorWrite"
>
<ImageView
android:id=
"@+id/img_back"
android:layout_width=
"@dimen/size_32"
android:layout_height=
"@dimen/size_32"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/size_5"
android:padding=
"@dimen/size_8"
android:src=
"@drawable/rv_common_icon_back_dark"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:ellipsize=
"end"
android:gravity=
"center"
android:maxWidth=
"320dp"
android:maxLines=
"1"
android:text=
"签到领积分"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_18"
/>
</RelativeLayout>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"180dip"
android:scaleType=
"fitXY"
android:src=
"@drawable/banner_sign"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/dp_10"
android:background=
"@drawable/bg_points_sign"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_2
0"
android:paddingLeft=
"@dimen/size_1
0"
android:paddingTop=
"@dimen/size_2
0"
android:paddingTop=
"@dimen/size_1
0"
android:paddingRight=
"@dimen/size_2
0"
android:paddingRight=
"@dimen/size_1
0"
android:paddingBottom=
"@dimen/size_2
0"
>
android:paddingBottom=
"@dimen/size_1
0"
>
<ImageView
<ImageView
android:id=
"@+id/img_icon"
android:id=
"@+id/img_icon"
android:layout_width=
"@dimen/size_5
0"
android:layout_width=
"@dimen/size_4
0"
android:layout_height=
"@dimen/size_5
0"
android:layout_height=
"@dimen/size_4
0"
android:layout_alignParentLeft=
"true"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
/>
android:layout_centerVertical=
"true"
android:src=
"@drawable/icon_sign"
/>
<TextView
<TextView
android:id=
"@+id/tv_sign_day"
android:id=
"@+id/tv_sign_day"
...
@@ -35,27 +83,45 @@
...
@@ -35,27 +83,45 @@
<Button
<Button
android:id=
"@+id/btn_sign"
android:id=
"@+id/btn_sign"
android:layout_width=
"@dimen/size_8
0"
android:layout_width=
"@dimen/size_9
0"
android:layout_height=
"@dimen/size_35"
android:layout_height=
"@dimen/size_35"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:background=
"@drawable/bg_sing_btn_able"
android:gravity=
"center"
android:text=
"打卡"
android:text=
"打卡"
android:textSize=
"@dimen/sp_12"
/>
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_14"
/>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/dp_10"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginBottom=
"@dimen/dp_10"
android:background=
"@drawable/bg_points_sign"
android:orientation=
"vertical"
>
<com.rv.points.view.WeekNavigation
<com.rv.points.view.WeekNavigation
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"30dp"
android:layout_marginLeft=
"5dp"
android:background=
"@drawable/bg_sign_weeks"
android:layout_marginTop=
"5dp"
android:gravity=
"center_vertical"
/>
android:layout_marginRight=
"5dp"
android:background=
"@color/white"
/>
<com.rv.points.view.InnerGridView
<com.rv.points.view.InnerGridView
android:id=
"@+id/view_month"
android:id=
"@+id/view_month"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:numColumns=
"7"
/>
android:layout_marginLeft=
"@dimen/size_2"
android:layout_marginTop=
"@dimen/size_5"
android:layout_marginRight=
"@dimen/size_2"
android:layout_marginBottom=
"@dimen/size_2"
android:background=
"#fffbf5"
android:numColumns=
"7"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
plugin_points/src/main/res/layout/item_gv.xml
View file @
73c600ef
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/rlItem"
android:id=
"@+id/rlItem"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
>
<TextView
<TextView
android:id=
"@+id/tvWeek"
android:id=
"@+id/tvWeek"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
padding=
"8dp
"
android:
layout_centerHorizontal=
"true
"
android:
text=
"一
"
android:
background=
"#fffbf5
"
android:gravity=
"center"
android:gravity=
"center"
android:textColor=
"#666"
android:padding=
"3dp"
android:background=
"@android:color/white"
>
android:text=
"一"
</TextView>
android:textColor=
"#666"
/>
<ImageView
<ImageView
android:layout_marginBottom=
"@dimen/size_5"
android:id=
"@+id/ivStatus"
android:id=
"@+id/ivStatus"
android:layout_width=
"12dp"
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_height=
"12dp"
android:
src=
"@drawable/icon_select
"
android:
layout_below=
"@id/tvWeek
"
android:layout_
marginRight=
"10dp
"
android:layout_
centerHorizontal=
"true
"
android:
visibility=
"gone
"
android:
src=
"@drawable/icon_signed
"
android:
layout_alignParentRight=
"true"
/>
android:
visibility=
"invisible"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
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