Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
e1396405
Commit
e1396405
authored
Nov 18, 2020
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉签到,主页个人信息接口添加两个字段
parent
64eeeb16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
7 deletions
+57
-7
HomeInfoEntity.java
app/src/main/java/com/ym/game/module/HomeInfoEntity.java
+18
-0
layout_popup_drops.xml
app/src/main/res/layout/layout_popup_drops.xml
+39
-7
No files found.
app/src/main/java/com/ym/game/module/HomeInfoEntity.java
View file @
e1396405
...
...
@@ -25,6 +25,24 @@ public class HomeInfoEntity {
private
int
acceleratorsNum
;
private
String
imgUrl
;
private
int
plantBoxNum
;
private
int
currentClockNum
;
//当前打卡数量
private
int
maxClockNum
;
//所需打卡数量
public
int
getCurrentClockNum
()
{
return
currentClockNum
;
}
public
void
setCurrentClockNum
(
int
currentClockNum
)
{
this
.
currentClockNum
=
currentClockNum
;
}
public
int
getMaxClockNum
()
{
return
maxClockNum
;
}
public
void
setMaxClockNum
(
int
maxClockNum
)
{
this
.
maxClockNum
=
maxClockNum
;
}
public
int
getPlantBoxNum
()
{
return
plantBoxNum
;
...
...
app/src/main/res/layout/layout_popup_drops.xml
View file @
e1396405
...
...
@@ -51,11 +51,10 @@
android:id=
"@+id/layout_drops_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"120dp"
android:layout_marginBottom=
"20dp"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
android:visibility=
"visible"
>
android:visibility=
"gone"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -108,20 +107,53 @@
</LinearLayout>
<
Frame
Layout
<
Linear
Layout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/layout_drops_title"
android:layout_alignParentBottom=
"true"
android:layout_marginTop=
"120dp"
android:layout_marginBottom=
"20dp"
android:paddingLeft=
"15dp"
android:paddingRight=
"15dp"
>
android:paddingRight=
"15dp"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"明日登录可获得"
android:textColor=
"#642D2D"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/id_tv_reward_coin"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"100"
android:textColor=
"#E85740"
android:textSize=
"22sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"金币"
android:textColor=
"#642D2D"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recycler_popup_watering"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
/>
</
Frame
Layout>
</
Linear
Layout>
</RelativeLayout>
...
...
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