Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
王海
TangKuPos
Commits
f0f0142e
Commit
f0f0142e
authored
Dec 22, 2017
by
陈前
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # app/src/main/res/layout/title.xml
parents
311f21cd
707b5306
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
57 deletions
+15
-57
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/IntegralActivity.java
...ngdata/zzdpos/ui/marketing/integral/IntegralActivity.java
+4
-3
app/src/main/res/layout/activity_integral.xml
app/src/main/res/layout/activity_integral.xml
+7
-50
app/src/main/res/layout/title.xml
app/src/main/res/layout/title.xml
+4
-4
app/src/main/res/mipmap-hdpi/integral_bg.png
app/src/main/res/mipmap-hdpi/integral_bg.png
+0
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/marketing/integral/IntegralActivity.java
View file @
f0f0142e
...
@@ -80,12 +80,15 @@ public class IntegralActivity extends BaseActivity<IntegralPresenter, ActivityIn
...
@@ -80,12 +80,15 @@ public class IntegralActivity extends BaseActivity<IntegralPresenter, ActivityIn
}
}
break
;
break
;
case
R
.
id
.
rb_get
:
{
case
R
.
id
.
rb_get
:
{
mViewBinding
.
rbGet
.
getPaint
().
setFakeBoldText
(
true
);
mViewBinding
.
rbExchange
.
getPaint
().
setFakeBoldText
(
false
);
showView
(
v
.
getId
());
showView
(
v
.
getId
());
mPresenter
.
query
(
1
,
NORMAL_TYPE
,
null
);
mPresenter
.
query
(
1
,
NORMAL_TYPE
,
null
);
}
}
break
;
break
;
case
R
.
id
.
rb_exchange
:
{
case
R
.
id
.
rb_exchange
:
{
mViewBinding
.
rbGet
.
getPaint
().
setFakeBoldText
(
false
);
mViewBinding
.
rbExchange
.
getPaint
().
setFakeBoldText
(
true
);
showView
(
v
.
getId
());
showView
(
v
.
getId
());
LoadingDialog
loadingDialog
=
new
LoadingDialog
();
LoadingDialog
loadingDialog
=
new
LoadingDialog
();
loadingDialog
.
show
(
this
);
loadingDialog
.
show
(
this
);
...
@@ -265,13 +268,11 @@ public class IntegralActivity extends BaseActivity<IntegralPresenter, ActivityIn
...
@@ -265,13 +268,11 @@ public class IntegralActivity extends BaseActivity<IntegralPresenter, ActivityIn
private
void
showView
(
int
id
)
{
private
void
showView
(
int
id
)
{
switch
(
id
)
{
switch
(
id
)
{
case
R
.
id
.
rb_get
:
{
case
R
.
id
.
rb_get
:
{
mViewBinding
.
btnAdd
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
llGet
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
llGet
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
llExchange
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
llExchange
.
setVisibility
(
View
.
GONE
);
}
}
break
;
break
;
case
R
.
id
.
rb_exchange
:
{
case
R
.
id
.
rb_exchange
:
{
mViewBinding
.
btnAdd
.
setVisibility
(
View
.
INVISIBLE
);
mViewBinding
.
llGet
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
llGet
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
llExchange
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
llExchange
.
setVisibility
(
View
.
VISIBLE
);
}
}
...
...
app/src/main/res/layout/activity_integral.xml
View file @
f0f0142e
...
@@ -75,8 +75,8 @@
...
@@ -75,8 +75,8 @@
android:id=
"@+id/rb_get"
android:id=
"@+id/rb_get"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_
padding
"
android:layout_marginLeft=
"@dimen/all_
margin
"
android:layout_marginRight=
"@dimen/all_
padding
"
android:layout_marginRight=
"@dimen/all_
margin
"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/radio_select"
android:background=
"@drawable/radio_select"
android:button=
"@null"
android:button=
"@null"
...
@@ -92,8 +92,8 @@
...
@@ -92,8 +92,8 @@
android:id=
"@+id/rb_exchange"
android:id=
"@+id/rb_exchange"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_
padding
"
android:layout_marginLeft=
"@dimen/all_
margin
"
android:layout_marginRight=
"@dimen/all_
padding
"
android:layout_marginRight=
"@dimen/all_
margin
"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/radio_select"
android:background=
"@drawable/radio_select"
android:button=
"@null"
android:button=
"@null"
...
@@ -114,8 +114,9 @@
...
@@ -114,8 +114,9 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:padding=
"@dimen/
all_margin
_big"
android:padding=
"@dimen/
padding
_big"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/ll_menu"
app:layout_constraintTop_toBottomOf=
"@id/ll_menu"
...
@@ -126,51 +127,7 @@
...
@@ -126,51 +127,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:background=
"@color/white"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
android:padding=
"@dimen/cl_padding"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"3"
android:text=
"适用会员"
android:textSize=
"@dimen/et_textsize"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"5"
android:text=
"来源品类"
android:textSize=
"@dimen/et_textsize"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"3"
android:text=
"获取规则"
android:textSize=
"@dimen/et_textsize"
/>
<TextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"状态 "
android:textSize=
"@dimen/et_textsize"
/>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_height"
android:layout_marginTop=
"@dimen/all_margin"
android:background=
"@color/vip_line"
android:paddingBottom=
"@dimen/all_padding"
/>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
android:id=
"@+id/srl_product"
android:id=
"@+id/srl_product"
...
...
app/src/main/res/layout/title.xml
View file @
f0f0142e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<variable
<variable
name=
"onClickListener"
name=
"onClickListener"
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
type=
"com.xingdata.zzdpos.util.OnClickListener"
/>
</data>
</data>
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
<ImageView
<ImageView
android:id=
"@+id/iv_back"
android:id=
"@+id/iv_back"
android:layout_width=
"@dimen/title_height"
android:layout_width=
"@dimen/title_height"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:padding=
"
16dp
"
android:padding=
"
@dimen/all_margin
"
android:src=
"@mipmap/back_black"
/>
android:src=
"@mipmap/back_black"
/>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
...
...
app/src/main/res/mipmap-hdpi/integral_bg.png
0 → 100644
View file @
f0f0142e
18.6 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