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
2ec6d67c
Commit
2ec6d67c
authored
Jan 18, 2018
by
陈前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI
parent
14445939
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
589 additions
and
26 deletions
+589
-26
app/src/main/java/com/xingdata/zzdpos/C.java
app/src/main/java/com/xingdata/zzdpos/C.java
+9
-0
app/src/main/java/com/xingdata/zzdpos/api/ApiFactory.java
app/src/main/java/com/xingdata/zzdpos/api/ApiFactory.java
+15
-0
app/src/main/java/com/xingdata/zzdpos/api/ApiService.java
app/src/main/java/com/xingdata/zzdpos/api/ApiService.java
+6
-1
app/src/main/java/com/xingdata/zzdpos/model/Smt.java
app/src/main/java/com/xingdata/zzdpos/model/Smt.java
+458
-0
app/src/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
...c/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
+7
-1
app/src/main/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
...in/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
+2
-0
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsActivity.java
...com/xingdata/zzdpos/ui/statistics/StatisticsActivity.java
+6
-0
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsContract.java
...com/xingdata/zzdpos/ui/statistics/StatisticsContract.java
+14
-1
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsPresenter.java
...om/xingdata/zzdpos/ui/statistics/StatisticsPresenter.java
+18
-7
app/src/main/java/com/xingdata/zzdpos/ui/statistics/fragment/StatisticsTitleFragment.java
...zdpos/ui/statistics/fragment/StatisticsTitleFragment.java
+5
-0
app/src/main/java/com/xingdata/zzdpos/ui/statistics/fragment/order/OrderMainFragment.java
...zdpos/ui/statistics/fragment/order/OrderMainFragment.java
+24
-4
app/src/main/res/drawable/shape_gray_r1.xml
app/src/main/res/drawable/shape_gray_r1.xml
+1
-1
app/src/main/res/layout/activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+24
-11
app/src/main/res/mipmap-xhdpi/icon_help_logo.png
app/src/main/res/mipmap-xhdpi/icon_help_logo.png
+0
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/C.java
View file @
2ec6d67c
...
@@ -98,6 +98,15 @@ public class C {
...
@@ -98,6 +98,15 @@ public class C {
public
static
final
String
addStore
=
PKG
+
"shop/addShopMis"
;
public
static
final
String
addStore
=
PKG
+
"shop/addShopMis"
;
}
}
public
final
class
SMT
{
/**
* 获取月份销售统计
*/
public
static
final
String
querySmt
=
PKG
+
"smt/query"
;
}
public
final
class
COUNTER
{
public
final
class
COUNTER
{
/**
/**
* 添加款台信息
* 添加款台信息
...
...
app/src/main/java/com/xingdata/zzdpos/api/ApiFactory.java
View file @
2ec6d67c
...
@@ -11,6 +11,7 @@ import com.xingdata.zzdpos.model.Category;
...
@@ -11,6 +11,7 @@ import com.xingdata.zzdpos.model.Category;
import
com.xingdata.zzdpos.model.Gbound
;
import
com.xingdata.zzdpos.model.Gbound
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.model.Mscard
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Smt
;
import
com.xingdata.zzdpos.model.Trule
;
import
com.xingdata.zzdpos.model.Trule
;
import
com.xingdata.zzdpos.model.Ubound
;
import
com.xingdata.zzdpos.model.Ubound
;
import
com.xingdata.zzdpos.model.UsskuParam
;
import
com.xingdata.zzdpos.model.UsskuParam
;
...
@@ -431,6 +432,19 @@ public final class ApiFactory {
...
@@ -431,6 +432,19 @@ public final class ApiFactory {
}
}
}
}
public
static
class
Smt
{
public
static
Observable
<
Pager
<
com
.
xingdata
.
zzdpos
.
model
.
Smt
>>
queryAll
(
int
pageSize
,
int
pageNumber
)
{
return
Api
.
getInstance
().
service
.
querySmt
(
pageSize
,
pageNumber
)
.
onErrorReturn
(
new
ErrorFilter
<>())
.
map
(
new
ResultFilter
<>())
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
());
}
}
public
static
class
Ussku
{
public
static
class
Ussku
{
public
static
Observable
<
Pager
<
com
.
xingdata
.
zzdpos
.
model
.
Ussku
>>
usskuQuery
(
int
pageNum
,
public
static
Observable
<
Pager
<
com
.
xingdata
.
zzdpos
.
model
.
Ussku
>>
usskuQuery
(
int
pageNum
,
String
keyword
)
{
String
keyword
)
{
...
@@ -1230,6 +1244,7 @@ public final class ApiFactory {
...
@@ -1230,6 +1244,7 @@ public final class ApiFactory {
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
retryWhen
(
new
RetryHelper
(
3
));
.
retryWhen
(
new
RetryHelper
(
3
));
}
}
public
static
Observable
<
Pager
<
Mscard
>>
mscardQuery
()
{
public
static
Observable
<
Pager
<
Mscard
>>
mscardQuery
()
{
return
Api
.
getInstance
().
service
.
mscardQuery
()
return
Api
.
getInstance
().
service
.
mscardQuery
()
.
onErrorReturn
(
new
ErrorFilter
<>())
.
onErrorReturn
(
new
ErrorFilter
<>())
...
...
app/src/main/java/com/xingdata/zzdpos/api/ApiService.java
View file @
2ec6d67c
...
@@ -18,6 +18,7 @@ import com.xingdata.zzdpos.model.Pager;
...
@@ -18,6 +18,7 @@ import com.xingdata.zzdpos.model.Pager;
import
com.xingdata.zzdpos.model.Pay
;
import
com.xingdata.zzdpos.model.Pay
;
import
com.xingdata.zzdpos.model.Psb
;
import
com.xingdata.zzdpos.model.Psb
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Smt
;
import
com.xingdata.zzdpos.model.Sskugrp
;
import
com.xingdata.zzdpos.model.Sskugrp
;
import
com.xingdata.zzdpos.model.Sssku
;
import
com.xingdata.zzdpos.model.Sssku
;
import
com.xingdata.zzdpos.model.Sta
;
import
com.xingdata.zzdpos.model.Sta
;
...
@@ -313,6 +314,10 @@ interface ApiService {
...
@@ -313,6 +314,10 @@ interface ApiService {
@POST
(
C
.
URL
.
SHOP
.
queryAll
)
@POST
(
C
.
URL
.
SHOP
.
queryAll
)
Observable
<
HttpMessage
<
List
<
Category
>>>
queryAll
(
@Body
Category
category
);
Observable
<
HttpMessage
<
List
<
Category
>>>
queryAll
(
@Body
Category
category
);
@POST
(
C
.
URL
.
SMT
.
querySmt
)
Observable
<
HttpMessage
<
Pager
<
Smt
>>>
querySmt
(
@Query
(
"pageSize"
)
int
pageSize
,
@Query
(
"pageNumber"
)
int
pageNumber
);
@POST
(
C
.
URL
.
USSKU
.
usskuQuery
)
@POST
(
C
.
URL
.
USSKU
.
usskuQuery
)
Observable
<
HttpMessage
<
Pager
<
Ussku
>>>
usskuQuery
(
@Query
(
"wd"
)
String
wd
,
@Query
(
"pageSize"
)
Observable
<
HttpMessage
<
Pager
<
Ussku
>>>
usskuQuery
(
@Query
(
"wd"
)
String
wd
,
@Query
(
"pageSize"
)
int
pageSize
,
@Query
(
"pageNumber"
)
int
pageNumber
);
int
pageSize
,
@Query
(
"pageNumber"
)
int
pageNumber
);
...
...
app/src/main/java/com/xingdata/zzdpos/model/Smt.java
0 → 100644
View file @
2ec6d67c
package
com
.
xingdata
.
zzdpos
.
model
;
/**
* Created by Administrator on 2018/1/18.
*/
public
class
Smt
{
private
Long
sdtId
;
private
Long
opMapId
;
private
Long
channelMapId
;
private
Long
merMapId
;
private
Long
shopMapId
;
private
String
merNameabcn
;
private
String
shopNameabcn
;
private
Long
cityCountyId
;
private
Long
totalDate
;
private
Long
totalInCnt
;
private
Long
totalInAmt
;
private
Long
totalAvgPrice
;
private
Long
totalProfit
;
private
Long
totalProfitPer
;
private
Long
lossCnt
;
private
Long
lossAmt
;
private
Long
totalOutCnt
;
private
Long
totalOutAmt
;
private
Long
payCashCnt
;
private
Long
payCashAmt
;
private
Long
payBankCnt
;
private
Long
payBankAmt
;
private
Long
payVipcardCnt
;
private
Long
payVipcardAmt
;
private
Long
payWxCnt
;
private
Long
payWxAmt
;
private
Long
payAlipayCnt
;
private
Long
payAlipayAmt
;
private
Long
payOthpayCnt
;
private
Long
payOthpayAmt
;
private
Long
vipCnt
;
private
Long
vipAmt
;
private
Long
novipCnt
;
private
Long
novipAmt
;
private
Long
onlineCnt
;
private
Long
onlineAmt
;
private
Long
offlineCnt
;
private
Long
offlineAmt
;
private
Long
promoteCnt
;
private
Long
promoteAmt
;
private
Long
totalMonth
;
private
Long
totalYear
;
private
Long
lgeUnit
;
private
Long
lge
;
private
Long
avgInCnt
;
public
Long
getSdtId
()
{
return
sdtId
;
}
public
void
setSdtId
(
Long
sdtId
)
{
this
.
sdtId
=
sdtId
;
}
public
Long
getOpMapId
()
{
return
opMapId
;
}
public
void
setOpMapId
(
Long
opMapId
)
{
this
.
opMapId
=
opMapId
;
}
public
Long
getChannelMapId
()
{
return
channelMapId
;
}
public
void
setChannelMapId
(
Long
channelMapId
)
{
this
.
channelMapId
=
channelMapId
;
}
public
Long
getMerMapId
()
{
return
merMapId
;
}
public
void
setMerMapId
(
Long
merMapId
)
{
this
.
merMapId
=
merMapId
;
}
public
Long
getShopMapId
()
{
return
shopMapId
;
}
public
void
setShopMapId
(
Long
shopMapId
)
{
this
.
shopMapId
=
shopMapId
;
}
public
String
getMerNameabcn
()
{
return
merNameabcn
;
}
public
void
setMerNameabcn
(
String
merNameabcn
)
{
this
.
merNameabcn
=
merNameabcn
==
null
?
null
:
merNameabcn
.
trim
();
}
public
String
getShopNameabcn
()
{
return
shopNameabcn
;
}
public
void
setShopNameabcn
(
String
shopNameabcn
)
{
this
.
shopNameabcn
=
shopNameabcn
==
null
?
null
:
shopNameabcn
.
trim
();
}
public
Long
getCityCountyId
()
{
return
cityCountyId
;
}
public
void
setCityCountyId
(
Long
cityCountyId
)
{
this
.
cityCountyId
=
cityCountyId
;
}
public
Long
getTotalDate
()
{
return
totalDate
;
}
public
void
setTotalDate
(
Long
totalDate
)
{
this
.
totalDate
=
totalDate
;
}
public
Long
getTotalInCnt
()
{
return
totalInCnt
;
}
public
void
setTotalInCnt
(
Long
totalInCnt
)
{
this
.
totalInCnt
=
totalInCnt
;
}
public
Long
getTotalInAmt
()
{
return
totalInAmt
;
}
public
void
setTotalInAmt
(
Long
totalInAmt
)
{
this
.
totalInAmt
=
totalInAmt
;
}
public
Long
getTotalAvgPrice
()
{
return
totalAvgPrice
;
}
public
void
setTotalAvgPrice
(
Long
totalAvgPrice
)
{
this
.
totalAvgPrice
=
totalAvgPrice
;
}
public
Long
getTotalProfit
()
{
return
totalProfit
;
}
public
void
setTotalProfit
(
Long
totalProfit
)
{
this
.
totalProfit
=
totalProfit
;
}
public
Long
getTotalProfitPer
()
{
return
totalProfitPer
;
}
public
void
setTotalProfitPer
(
Long
totalProfitPer
)
{
this
.
totalProfitPer
=
totalProfitPer
;
}
public
Long
getLossCnt
()
{
return
lossCnt
;
}
public
void
setLossCnt
(
Long
lossCnt
)
{
this
.
lossCnt
=
lossCnt
;
}
public
Long
getLossAmt
()
{
return
lossAmt
;
}
public
void
setLossAmt
(
Long
lossAmt
)
{
this
.
lossAmt
=
lossAmt
;
}
public
Long
getTotalOutCnt
()
{
return
totalOutCnt
;
}
public
void
setTotalOutCnt
(
Long
totalOutCnt
)
{
this
.
totalOutCnt
=
totalOutCnt
;
}
public
Long
getTotalOutAmt
()
{
return
totalOutAmt
;
}
public
void
setTotalOutAmt
(
Long
totalOutAmt
)
{
this
.
totalOutAmt
=
totalOutAmt
;
}
public
Long
getPayCashCnt
()
{
return
payCashCnt
;
}
public
void
setPayCashCnt
(
Long
payCashCnt
)
{
this
.
payCashCnt
=
payCashCnt
;
}
public
Long
getPayCashAmt
()
{
return
payCashAmt
;
}
public
void
setPayCashAmt
(
Long
payCashAmt
)
{
this
.
payCashAmt
=
payCashAmt
;
}
public
Long
getPayBankCnt
()
{
return
payBankCnt
;
}
public
void
setPayBankCnt
(
Long
payBankCnt
)
{
this
.
payBankCnt
=
payBankCnt
;
}
public
Long
getPayBankAmt
()
{
return
payBankAmt
;
}
public
void
setPayBankAmt
(
Long
payBankAmt
)
{
this
.
payBankAmt
=
payBankAmt
;
}
public
Long
getPayVipcardCnt
()
{
return
payVipcardCnt
;
}
public
void
setPayVipcardCnt
(
Long
payVipcardCnt
)
{
this
.
payVipcardCnt
=
payVipcardCnt
;
}
public
Long
getPayVipcardAmt
()
{
return
payVipcardAmt
;
}
public
void
setPayVipcardAmt
(
Long
payVipcardAmt
)
{
this
.
payVipcardAmt
=
payVipcardAmt
;
}
public
Long
getPayWxCnt
()
{
return
payWxCnt
;
}
public
void
setPayWxCnt
(
Long
payWxCnt
)
{
this
.
payWxCnt
=
payWxCnt
;
}
public
Long
getPayWxAmt
()
{
return
payWxAmt
;
}
public
void
setPayWxAmt
(
Long
payWxAmt
)
{
this
.
payWxAmt
=
payWxAmt
;
}
public
Long
getPayAlipayCnt
()
{
return
payAlipayCnt
;
}
public
void
setPayAlipayCnt
(
Long
payAlipayCnt
)
{
this
.
payAlipayCnt
=
payAlipayCnt
;
}
public
Long
getPayAlipayAmt
()
{
return
payAlipayAmt
;
}
public
void
setPayAlipayAmt
(
Long
payAlipayAmt
)
{
this
.
payAlipayAmt
=
payAlipayAmt
;
}
public
Long
getPayOthpayCnt
()
{
return
payOthpayCnt
;
}
public
void
setPayOthpayCnt
(
Long
payOthpayCnt
)
{
this
.
payOthpayCnt
=
payOthpayCnt
;
}
public
Long
getPayOthpayAmt
()
{
return
payOthpayAmt
;
}
public
void
setPayOthpayAmt
(
Long
payOthpayAmt
)
{
this
.
payOthpayAmt
=
payOthpayAmt
;
}
public
Long
getVipCnt
()
{
return
vipCnt
;
}
public
void
setVipCnt
(
Long
vipCnt
)
{
this
.
vipCnt
=
vipCnt
;
}
public
Long
getVipAmt
()
{
return
vipAmt
;
}
public
void
setVipAmt
(
Long
vipAmt
)
{
this
.
vipAmt
=
vipAmt
;
}
public
Long
getNovipCnt
()
{
return
novipCnt
;
}
public
void
setNovipCnt
(
Long
novipCnt
)
{
this
.
novipCnt
=
novipCnt
;
}
public
Long
getNovipAmt
()
{
return
novipAmt
;
}
public
void
setNovipAmt
(
Long
novipAmt
)
{
this
.
novipAmt
=
novipAmt
;
}
public
Long
getOnlineCnt
()
{
return
onlineCnt
;
}
public
void
setOnlineCnt
(
Long
onlineCnt
)
{
this
.
onlineCnt
=
onlineCnt
;
}
public
Long
getOnlineAmt
()
{
return
onlineAmt
;
}
public
void
setOnlineAmt
(
Long
onlineAmt
)
{
this
.
onlineAmt
=
onlineAmt
;
}
public
Long
getOfflineCnt
()
{
return
offlineCnt
;
}
public
void
setOfflineCnt
(
Long
offlineCnt
)
{
this
.
offlineCnt
=
offlineCnt
;
}
public
Long
getOfflineAmt
()
{
return
offlineAmt
;
}
public
void
setOfflineAmt
(
Long
offlineAmt
)
{
this
.
offlineAmt
=
offlineAmt
;
}
public
Long
getPromoteCnt
()
{
return
promoteCnt
;
}
public
void
setPromoteCnt
(
Long
promoteCnt
)
{
this
.
promoteCnt
=
promoteCnt
;
}
public
Long
getPromoteAmt
()
{
return
promoteAmt
;
}
public
void
setPromoteAmt
(
Long
promoteAmt
)
{
this
.
promoteAmt
=
promoteAmt
;
}
public
Long
getTotalMonth
()
{
return
totalMonth
;
}
public
void
setTotalMonth
(
Long
totalMonth
)
{
this
.
totalMonth
=
totalMonth
;
}
public
Long
getTotalYear
()
{
return
totalYear
;
}
public
void
setTotalYear
(
Long
totalYear
)
{
this
.
totalYear
=
totalYear
;
}
public
Long
getLgeUnit
()
{
return
lgeUnit
;
}
public
void
setLgeUnit
(
Long
lgeUnit
)
{
this
.
lgeUnit
=
lgeUnit
;
}
public
Long
getLge
()
{
return
lge
;
}
public
void
setLge
(
Long
lge
)
{
this
.
lge
=
lge
;
}
public
Long
getAvgInCnt
()
{
return
avgInCnt
;
}
public
void
setAvgInCnt
(
Long
avgInCnt
)
{
this
.
avgInCnt
=
avgInCnt
;
}
}
\ No newline at end of file
app/src/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
View file @
2ec6d67c
...
@@ -7,6 +7,7 @@ import android.support.design.widget.TabLayout;
...
@@ -7,6 +7,7 @@ import android.support.design.widget.TabLayout;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.FragmentPagerAdapter
;
import
android.support.v4.app.FragmentPagerAdapter
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Toast
;
import
com.blankj.utilcode.util.ActivityUtils
;
import
com.blankj.utilcode.util.ActivityUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
...
@@ -35,6 +36,7 @@ import io.reactivex.schedulers.Schedulers;
...
@@ -35,6 +36,7 @@ import io.reactivex.schedulers.Schedulers;
public
class
MainActivity
extends
BaseActivity
<
MainPresenter
,
ActivityMainBinding
>
implements
MainContract
.
View
{
public
class
MainActivity
extends
BaseActivity
<
MainPresenter
,
ActivityMainBinding
>
implements
MainContract
.
View
{
public
static
MainActivity
mainActivity
;
public
static
MainActivity
mainActivity
;
private
long
mExitTime
;
private
int
[]
titleInts
=
{
R
.
string
.
menu_cashier
,
R
.
string
.
menu_service
,
R
.
string
.
menu_myself
};
private
int
[]
titleInts
=
{
R
.
string
.
menu_cashier
,
R
.
string
.
menu_service
,
R
.
string
.
menu_myself
};
private
int
[]
iconList
=
{
R
.
mipmap
.
icon_menu_cashier_1
,
R
.
mipmap
.
icon_menu_service_0
,
R
.
mipmap
.
icon_menu_myself_0
};
private
int
[]
iconList
=
{
R
.
mipmap
.
icon_menu_cashier_1
,
R
.
mipmap
.
icon_menu_service_0
,
R
.
mipmap
.
icon_menu_myself_0
};
private
FragmentViewAdapter
mFragmentPagerAdapter
;
private
FragmentViewAdapter
mFragmentPagerAdapter
;
...
@@ -167,6 +169,10 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
...
@@ -167,6 +169,10 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
@Override
@Override
public
void
onBackPressedSupport
()
{
public
void
onBackPressedSupport
()
{
if
((
System
.
currentTimeMillis
()
-
mExitTime
)
>
1500
)
{
mExitTime
=
System
.
currentTimeMillis
();
}
else
{
mPresenter
.
clickHandover
();
}
}
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
View file @
2ec6d67c
...
@@ -12,6 +12,7 @@ import com.xingdata.zzdpos.R;
...
@@ -12,6 +12,7 @@ import com.xingdata.zzdpos.R;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.databinding.ActivitySplashBinding
;
import
com.xingdata.zzdpos.databinding.ActivitySplashBinding
;
import
com.xingdata.zzdpos.ui.splash.dialog.UpgradeDialog
;
import
com.xingdata.zzdpos.ui.splash.dialog.UpgradeDialog
;
import
com.xingdata.zzdpos.util.SystemUtil
;
public
class
SplashActivity
extends
BaseActivity
<
com
.
xingdata
.
zzdpos
.
ui
.
splash
.
SplashPresenter
,
ActivitySplashBinding
>
public
class
SplashActivity
extends
BaseActivity
<
com
.
xingdata
.
zzdpos
.
ui
.
splash
.
SplashPresenter
,
ActivitySplashBinding
>
...
@@ -29,6 +30,7 @@ public class SplashActivity extends BaseActivity<com.xingdata.zzdpos.ui.splash.S
...
@@ -29,6 +30,7 @@ public class SplashActivity extends BaseActivity<com.xingdata.zzdpos.ui.splash.S
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
// mPresenter.init();
// mPresenter.init();
mViewBinding
.
setVersion
(
"V"
+
SystemUtil
.
getVersionName
());
mPresenter
.
checkUpdate
();
mPresenter
.
checkUpdate
();
FadingCircle
doubleBounce
=
new
FadingCircle
();
FadingCircle
doubleBounce
=
new
FadingCircle
();
mViewBinding
.
spinKit
.
setIndeterminateDrawable
(
doubleBounce
);
mViewBinding
.
spinKit
.
setIndeterminateDrawable
(
doubleBounce
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsActivity.java
View file @
2ec6d67c
...
@@ -14,6 +14,7 @@ import com.xingdata.zzdpos.base.BaseActivity;
...
@@ -14,6 +14,7 @@ import com.xingdata.zzdpos.base.BaseActivity;
import
com.xingdata.zzdpos.databinding.ActivityStatisticsBinding
;
import
com.xingdata.zzdpos.databinding.ActivityStatisticsBinding
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Smt
;
import
com.xingdata.zzdpos.model.Sta
;
import
com.xingdata.zzdpos.model.Sta
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
...
@@ -107,6 +108,11 @@ public class StatisticsActivity extends BaseActivity<StatisticsPresenter, Activi
...
@@ -107,6 +108,11 @@ public class StatisticsActivity extends BaseActivity<StatisticsPresenter, Activi
}
}
}
}
@Override
public
void
getSmtListSucc
(
Pager
<
Smt
>
smtPager
){
mStatisticsTitleFragment
.
getSmtListSucc
(
smtPager
);
}
@Override
@Override
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
public
boolean
onKeyDown
(
int
keyCode
,
KeyEvent
event
)
{
// if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN) {
// if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN) {
...
...
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsContract.java
View file @
2ec6d67c
...
@@ -6,6 +6,7 @@ import com.xingdata.zzdpos.base.BasePresenter;
...
@@ -6,6 +6,7 @@ import com.xingdata.zzdpos.base.BasePresenter;
import
com.xingdata.zzdpos.base.BaseView
;
import
com.xingdata.zzdpos.base.BaseView
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Smt
;
import
com.xingdata.zzdpos.model.Sta
;
import
com.xingdata.zzdpos.model.Sta
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
...
@@ -22,6 +23,7 @@ public interface StatisticsContract {
...
@@ -22,6 +23,7 @@ public interface StatisticsContract {
interface
View
extends
BaseView
{
interface
View
extends
BaseView
{
void
isShowLoading
(
Boolean
is
);
void
isShowLoading
(
Boolean
is
);
void
getSmtListSucc
(
Pager
<
Smt
>
smtPager
);
/**
/**
* 设置统计信息
* 设置统计信息
*/
*/
...
@@ -51,6 +53,7 @@ public interface StatisticsContract {
...
@@ -51,6 +53,7 @@ public interface StatisticsContract {
* 搜索成功
* 搜索成功
*/
*/
void
searchSuc
(
Pager
<
Saleorder
>
saleorderPager
,
int
payType
);
void
searchSuc
(
Pager
<
Saleorder
>
saleorderPager
,
int
payType
);
/**
/**
* 日期搜索成功
* 日期搜索成功
*/
*/
...
@@ -65,6 +68,7 @@ public interface StatisticsContract {
...
@@ -65,6 +68,7 @@ public interface StatisticsContract {
* 日期搜索成功
* 日期搜索成功
*/
*/
void
searchTicketSuc
(
Pager
<
Ticket
>
ticketPager
,
long
start
,
long
end
);
void
searchTicketSuc
(
Pager
<
Ticket
>
ticketPager
,
long
start
,
long
end
);
/**
/**
* 展示日期警告
* 展示日期警告
*/
*/
...
@@ -78,6 +82,9 @@ public interface StatisticsContract {
...
@@ -78,6 +82,9 @@ public interface StatisticsContract {
*/
*/
public
abstract
void
clickDate
(
Integer
integer
);
public
abstract
void
clickDate
(
Integer
integer
);
/**
/**
* 跳转营销页
* 跳转营销页
*/
*/
...
@@ -93,6 +100,10 @@ public interface StatisticsContract {
...
@@ -93,6 +100,10 @@ public interface StatisticsContract {
*/
*/
public
abstract
void
getRechargeList
(
int
pageNumber
,
RechargeListFragment
msListFragment
);
public
abstract
void
getRechargeList
(
int
pageNumber
,
RechargeListFragment
msListFragment
);
/**
* 获取月份统计的列表
*/
public
abstract
void
getSmtList
();
/**
/**
* 获取充值列表
* 获取充值列表
...
@@ -108,7 +119,8 @@ public interface StatisticsContract {
...
@@ -108,7 +119,8 @@ public interface StatisticsContract {
/**
/**
* 获取已用优惠券列表
* 获取已用优惠券列表
*/
*/
public
abstract
void
getTicketList
(
int
pageNumber
,
long
startDate
,
long
endDate
);
public
abstract
void
getTicketList
(
int
pageNumber
,
long
startDate
,
long
endDate
);
/**
/**
* 获取订单列表
* 获取订单列表
*/
*/
...
@@ -123,6 +135,7 @@ public interface StatisticsContract {
...
@@ -123,6 +135,7 @@ public interface StatisticsContract {
* 搜索订单列表
* 搜索订单列表
*/
*/
public
abstract
void
getSaleOrderList
(
int
pageNumber
,
int
payType
);
public
abstract
void
getSaleOrderList
(
int
pageNumber
,
int
payType
);
/**
/**
* 搜索日期订单列表
* 搜索日期订单列表
*/
*/
...
...
app/src/main/java/com/xingdata/zzdpos/ui/statistics/StatisticsPresenter.java
View file @
2ec6d67c
...
@@ -75,7 +75,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -75,7 +75,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getRechargeList
(
int
pageNumber
,
RechargeListFragment
msListFragment
)
{
public
void
getRechargeList
(
int
pageNumber
,
RechargeListFragment
msListFragment
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Rctrace
.
queryRecharge
(
pageNumber
,
nowPageSize
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Rctrace
.
queryRecharge
(
pageNumber
,
nowPageSize
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
vipRechargeOrderPager
->
{
.
subscribe
(
vipRechargeOrderPager
->
{
msListFragment
.
setData
(
vipRechargeOrderPager
);
msListFragment
.
setData
(
vipRechargeOrderPager
);
},
throwable
->
{
},
throwable
->
{
...
@@ -83,10 +83,21 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -83,10 +83,21 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
});
});
}
}
@Override
public
void
getSmtList
()
{
mView
.
isShowLoading
(
true
);
ApiFactory
.
Smt
.
queryAll
(
1
,
12
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
smtPager
->
{
mView
.
getSmtListSucc
(
smtPager
);
},
throwable
->
{
ToastUtils
.
showShort
(
throwable
.
getMessage
());
});
}
@Override
@Override
public
void
getRechargeList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
public
void
getRechargeList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Rctrace
.
queryRecharge
(
pageNumber
,
nowPageSize
,
startDate
,
endDate
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Rctrace
.
queryRecharge
(
pageNumber
,
nowPageSize
,
startDate
,
endDate
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
vipRechargeOrderPager
->
{
.
subscribe
(
vipRechargeOrderPager
->
{
//判断是否能加载更多
//判断是否能加载更多
if
(
vipRechargeOrderPager
.
getList
()
==
null
||
vipRechargeOrderPager
.
getList
().
size
()
==
0
)
{
if
(
vipRechargeOrderPager
.
getList
()
==
null
||
vipRechargeOrderPager
.
getList
().
size
()
==
0
)
{
...
@@ -102,7 +113,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -102,7 +113,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getTicketList
(
int
pageNumber
,
UsedTicketListFragment
msListFragment
)
{
public
void
getTicketList
(
int
pageNumber
,
UsedTicketListFragment
msListFragment
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
2
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
2
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
ticketPager
->
{
.
subscribe
(
ticketPager
->
{
msListFragment
.
setData
(
ticketPager
);
msListFragment
.
setData
(
ticketPager
);
},
throwable
->
{
},
throwable
->
{
...
@@ -113,7 +124,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -113,7 +124,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getTicketList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
public
void
getTicketList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
2
,
startDate
,
endDate
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Ticket
.
query
(
pageNumber
,
nowPageSize
,
2
,
startDate
,
endDate
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
ticketPager
->
{
.
subscribe
(
ticketPager
->
{
if
(
ticketPager
.
getList
()
==
null
||
ticketPager
.
getList
().
size
()
==
0
)
{
if
(
ticketPager
.
getList
()
==
null
||
ticketPager
.
getList
().
size
()
==
0
)
{
ToastUtils
.
showShort
(
"没有查询到相关优惠券"
);
ToastUtils
.
showShort
(
"没有查询到相关优惠券"
);
...
@@ -131,7 +142,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -131,7 +142,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getSaleOrderList
(
int
pageNumber
,
String
wd
)
{
public
void
getSaleOrderList
(
int
pageNumber
,
String
wd
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Test
.
getSaleOrderList
(
pageNumber
,
nowPageSize
,
"99"
,
null
,
wd
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Test
.
getSaleOrderList
(
pageNumber
,
nowPageSize
,
"99"
,
null
,
wd
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
saleorderPager
->
{
.
subscribe
(
saleorderPager
->
{
//判断是否能加载更多
//判断是否能加载更多
if
(
saleorderPager
.
getList
()
==
null
||
saleorderPager
.
getList
().
size
()
==
0
)
{
if
(
saleorderPager
.
getList
()
==
null
||
saleorderPager
.
getList
().
size
()
==
0
)
{
...
@@ -152,7 +163,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -152,7 +163,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getSaleOrderList
(
int
pageNumber
,
int
payType
)
{
public
void
getSaleOrderList
(
int
pageNumber
,
int
payType
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Test
.
getSaleOrderList
(
pageNumber
,
nowPageSize
,
"99"
,
payType
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Test
.
getSaleOrderList
(
pageNumber
,
nowPageSize
,
"99"
,
payType
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
saleorderPager
->
{
.
subscribe
(
saleorderPager
->
{
//判断是否能加载更多
//判断是否能加载更多
if
(
saleorderPager
.
getList
()
==
null
||
saleorderPager
.
getList
().
size
()
==
0
)
{
if
(
saleorderPager
.
getList
()
==
null
||
saleorderPager
.
getList
().
size
()
==
0
)
{
...
@@ -170,7 +181,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
...
@@ -170,7 +181,7 @@ public class StatisticsPresenter extends StatisticsContract.Presenter {
@Override
@Override
public
void
getSaleOrderList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
public
void
getSaleOrderList
(
int
pageNumber
,
long
startDate
,
long
endDate
)
{
mView
.
isShowLoading
(
true
);
mView
.
isShowLoading
(
true
);
ApiFactory
.
Test
.
getSaleOrderList
(
"99"
,
pageNumber
,
nowPageSize
,
startDate
,
endDate
).
doFinally
(()->
mView
.
isShowLoading
(
false
))
ApiFactory
.
Test
.
getSaleOrderList
(
"99"
,
pageNumber
,
nowPageSize
,
startDate
,
endDate
).
doFinally
(()
->
mView
.
isShowLoading
(
false
))
.
subscribe
(
saleorderPager
->
{
.
subscribe
(
saleorderPager
->
{
//判断是否能加载更多
//判断是否能加载更多
if
(
saleorderPager
.
getList
()
==
null
||
saleorderPager
.
getList
().
size
()
==
0
)
{
if
(
saleorderPager
.
getList
()
==
null
||
saleorderPager
.
getList
().
size
()
==
0
)
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/statistics/fragment/StatisticsTitleFragment.java
View file @
2ec6d67c
...
@@ -13,6 +13,7 @@ import com.xingdata.zzdpos.databinding.FragmentStatisticsTitleBinding;
...
@@ -13,6 +13,7 @@ import com.xingdata.zzdpos.databinding.FragmentStatisticsTitleBinding;
import
com.xingdata.zzdpos.databinding.ViewSearchPaytypeBinding
;
import
com.xingdata.zzdpos.databinding.ViewSearchPaytypeBinding
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Saleorder
;
import
com.xingdata.zzdpos.model.Smt
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.Ticket
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.model.VipRechargeOrder
;
import
com.xingdata.zzdpos.ui.statistics.StatisticsPresenter
;
import
com.xingdata.zzdpos.ui.statistics.StatisticsPresenter
;
...
@@ -244,4 +245,8 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
...
@@ -244,4 +245,8 @@ public class StatisticsTitleFragment extends BaseFragment<StatisticsPresenter, F
return
false
;
return
false
;
}
}
public
void
getSmtListSucc
(
Pager
<
Smt
>
smtPager
)
{
mOrderMainFragment
.
getSmtListSucc
(
smtPager
);
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/statistics/fragment/order/OrderMainFragment.java
View file @
2ec6d67c
...
@@ -18,6 +18,8 @@ import com.xingdata.zzdpos.base.BaseFragment;
...
@@ -18,6 +18,8 @@ import com.xingdata.zzdpos.base.BaseFragment;
import
com.xingdata.zzdpos.databinding.FragmentOrderMainBinding
;
import
com.xingdata.zzdpos.databinding.FragmentOrderMainBinding
;
import
com.xingdata.zzdpos.databinding.ItemStringBinding
;
import
com.xingdata.zzdpos.databinding.ItemStringBinding
;
import
com.xingdata.zzdpos.model.Pager
;
import
com.xingdata.zzdpos.model.Smt
;
import
com.xingdata.zzdpos.ui.main.MainPresenter
;
import
com.xingdata.zzdpos.ui.main.MainPresenter
;
import
com.xingdata.zzdpos.ui.statistics.StatisticsPresenter
;
import
com.xingdata.zzdpos.ui.statistics.StatisticsPresenter
;
import
com.xingdata.zzdpos.ui.statistics.adapter.FragmentStateAdapter
;
import
com.xingdata.zzdpos.ui.statistics.adapter.FragmentStateAdapter
;
...
@@ -65,13 +67,12 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
...
@@ -65,13 +67,12 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
return
false
;
return
false
;
});
});
mPresenter
.
getSmtList
();
initViewPager
();
}
}
public
void
initViewPager
()
{
public
void
initViewPager
(
Integer
monthEnd
)
{
if
(
fragments
.
size
()
==
0
)
{
if
(
fragments
.
size
()
==
0
)
{
Observable
.
create
(
new
ObservableOnSubscribe
<
String
>()
{
Observable
.
create
(
new
ObservableOnSubscribe
<
String
>()
{
@Override
@Override
...
@@ -80,7 +81,7 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
...
@@ -80,7 +81,7 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
String
[]
dates
=
date
.
split
(
"-"
);
String
[]
dates
=
date
.
split
(
"-"
);
int
y
=
Integer
.
valueOf
(
dates
[
0
]);
int
y
=
Integer
.
valueOf
(
dates
[
0
]);
int
m
=
month
+
1
;
int
m
=
month
+
1
;
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
for
(
int
i
=
0
;
i
<
12
;
i
++)
{
if
(
m
==
0
)
{
if
(
m
==
0
)
{
m
=
12
;
m
=
12
;
y
--;
y
--;
...
@@ -91,6 +92,9 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
...
@@ -91,6 +92,9 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
}
}
String
month
=
String
.
valueOf
(
m
).
length
()
>=
2
?
String
.
valueOf
(
m
)
:
"0"
+
String
.
valueOf
(
m
);
String
month
=
String
.
valueOf
(
m
).
length
()
>=
2
?
String
.
valueOf
(
m
)
:
"0"
+
String
.
valueOf
(
m
);
e
.
onNext
(
y
+
"-"
+
month
+
"-01"
);
e
.
onNext
(
y
+
"-"
+
month
+
"-01"
);
if
(
m
==
monthEnd
)
{
break
;
}
m
--;
m
--;
}
}
e
.
onComplete
();
e
.
onComplete
();
...
@@ -185,5 +189,21 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
...
@@ -185,5 +189,21 @@ public class OrderMainFragment extends BaseFragment<StatisticsPresenter, Fragmen
}
}
public
void
getSmtListSucc
(
Pager
<
Smt
>
smtPager
)
{
int
size
=
smtPager
.
getList
().
size
();
if
(
size
!=
0
)
{
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTimeInMillis
(
smtPager
.
getList
().
get
(
size
-
1
).
getTotalDate
());
int
monthEnd
=
calendar
.
get
(
Calendar
.
MONTH
);
if
(
monthEnd
==
0
)
{
monthEnd
=
12
;
}
initViewPager
(
monthEnd
);
}
else
{
initViewPager
(
month
);
}
}
}
}
app/src/main/res/drawable/shape_gray_r1.xml
View file @
2ec6d67c
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<solid
android:color=
"@color/gray_
zhouyu
"
/>
<solid
android:color=
"@color/gray_
kongming
"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_splash.xml
View file @
2ec6d67c
...
@@ -2,20 +2,25 @@
...
@@ -2,20 +2,25 @@
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<android.support.constraint.ConstraintLayout
<data>
xmlns:tools=
"http://schemas.android.com/tools"
<variable
name=
"version"
type=
"String"
/>
</data>
<android.support.constraint.ConstraintLayout
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=
"@mipmap/splash"
android:background=
"@mipmap/splash"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:padding=
"@dimen/all_margin"
tools:context=
"com.xingdata.zzdpos.ui.splash.SplashActivity"
>
tools:context=
"com.xingdata.zzdpos.ui.splash.SplashActivity"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin_big"
android:layout_marginBottom=
"@dimen/all_margin_big
_big
"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
@@ -30,14 +35,13 @@
...
@@ -30,14 +35,13 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_margin"
>
android:layout_marginTop=
"@dimen/all_margin"
>
<com.github.ybq.android.spinkit.SpinKitView
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/spin_kit"
android:id=
"@+id/spin_kit"
style=
"@style/SpinKitView.Circle"
style=
"@style/SpinKitView.Circle"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
app:SpinKit_Color=
"@color/black_zhangfei"
/>
app:SpinKit_Color=
"@color/black_zhangfei"
/>
<TextView
<TextView
android:id=
"@+id/tv_progress"
android:id=
"@+id/tv_progress"
...
@@ -45,7 +49,7 @@
...
@@ -45,7 +49,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"0 %"
android:text=
"0 %"
android:textColor=
"@color/black_zhangfei"
/>
android:textColor=
"@color/black_zhangfei"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
<TextView
...
@@ -55,7 +59,7 @@
...
@@ -55,7 +59,7 @@
android:layout_marginTop=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_padding"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"正在加载数据..."
android:text=
"正在加载数据..."
android:textColor=
"@color/black_zhangfei"
/>
android:textColor=
"@color/black_zhangfei"
/>
</LinearLayout>
</LinearLayout>
...
@@ -87,7 +91,16 @@
...
@@ -87,7 +91,16 @@
<!--android:text="@string/login_phone"-->
<!--android:text="@string/login_phone"-->
<!--android:textColor="@color/white" />-->
<!--android:textColor="@color/white" />-->
<!--</LinearLayout>-->
<!--</LinearLayout>-->
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@{version}"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size_small"
android:layout_margin=
"@dimen/padding_small"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
</android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/mipmap-xhdpi/icon_help_logo.png
View replaced file @
14445939
View file @
2ec6d67c
17.7 KB
|
W:
|
H:
15.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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