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
89a5e5c3
Commit
89a5e5c3
authored
Dec 21, 2017
by
陈前
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三首页
parent
5ab5966c
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
417 additions
and
34 deletions
+417
-34
app/src/main/java/com/xingdata/zzdpos/C.java
app/src/main/java/com/xingdata/zzdpos/C.java
+5
-0
app/src/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
...c/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
+63
-20
app/src/main/java/com/xingdata/zzdpos/ui/main/adapter/MySelfRecyclerAdapter.java
...ingdata/zzdpos/ui/main/adapter/MySelfRecyclerAdapter.java
+62
-0
app/src/main/java/com/xingdata/zzdpos/ui/main/fragment/MyselfFragment.java
.../com/xingdata/zzdpos/ui/main/fragment/MyselfFragment.java
+68
-0
app/src/main/java/com/xingdata/zzdpos/ui/main/fragment/ServiceFragment.java
...com/xingdata/zzdpos/ui/main/fragment/ServiceFragment.java
+27
-0
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_main.xml
+18
-5
app/src/main/res/layout/fragment_casher.xml
app/src/main/res/layout/fragment_casher.xml
+4
-1
app/src/main/res/layout/fragment_myself.xml
app/src/main/res/layout/fragment_myself.xml
+47
-0
app/src/main/res/layout/fragment_service.xml
app/src/main/res/layout/fragment_service.xml
+54
-0
app/src/main/res/layout/item_menu_bottom.xml
app/src/main/res/layout/item_menu_bottom.xml
+29
-0
app/src/main/res/layout/item_myself_string.xml
app/src/main/res/layout/item_myself_string.xml
+26
-0
app/src/main/res/layout/item_string.xml
app/src/main/res/layout/item_string.xml
+3
-7
app/src/main/res/mipmap-xhdpi/bg_service.png
app/src/main/res/mipmap-xhdpi/bg_service.png
+0
-0
app/src/main/res/mipmap-xhdpi/ic_announcement.png
app/src/main/res/mipmap-xhdpi/ic_announcement.png
+0
-0
app/src/main/res/mipmap-xhdpi/ic_feedback.png
app/src/main/res/mipmap-xhdpi/ic_feedback.png
+0
-0
app/src/main/res/mipmap-xhdpi/ic_helping.png
app/src/main/res/mipmap-xhdpi/ic_helping.png
+0
-0
app/src/main/res/mipmap-xhdpi/ic_out.png
app/src/main/res/mipmap-xhdpi/ic_out.png
+0
-0
app/src/main/res/mipmap-xhdpi/ic_upgrade.png
app/src/main/res/mipmap-xhdpi/ic_upgrade.png
+0
-0
app/src/main/res/values/dimens.xml
app/src/main/res/values/dimens.xml
+1
-0
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+5
-0
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
+5
-1
No files found.
app/src/main/java/com/xingdata/zzdpos/C.java
View file @
89a5e5c3
...
...
@@ -14,6 +14,11 @@ public class C {
public
static
final
int
MENU_TICKET
=
104
;
public
static
final
int
MENU_STATISTICS
=
105
;
public
static
final
int
MENU_MANAGER
=
106
;
public
static
final
int
MENU_ANNOUNCEMENT
=
107
;
public
static
final
int
MENU_FEED
=
108
;
public
static
final
int
MENU_UPDATE
=
109
;
public
static
final
int
MENU_HELP
=
110
;
public
static
final
int
MENU_EXIT
=
111
;
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/main/MainActivity.java
View file @
89a5e5c3
...
...
@@ -2,24 +2,39 @@ package com.xingdata.zzdpos.ui.main;
import
android.app.Activity
;
import
android.databinding.DataBindingUtil
;
import
android.support.design.widget.TabLayout
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.FragmentPagerAdapter
;
import
android.view.View
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.databinding.ActivityMainBinding
;
import
com.xingdata.zzdpos.databinding.ItemMenuBottomBinding
;
import
com.xingdata.zzdpos.ui.main.adapter.FragmentViewAdapter
;
import
com.xingdata.zzdpos.ui.main.fragment.CasherFragment
;
import
com.xingdata.zzdpos.ui.main.fragment.MyselfFragment
;
import
com.xingdata.zzdpos.ui.main.fragment.ServiceFragment
;
import
java.util.ArrayList
;
import
java.util.List
;
import
io.reactivex.Observable
;
import
io.reactivex.ObservableEmitter
;
import
io.reactivex.ObservableOnSubscribe
;
import
io.reactivex.Scheduler
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
import
io.reactivex.functions.Consumer
;
import
io.reactivex.schedulers.Schedulers
;
public
class
MainActivity
extends
BaseActivity
<
MainPresenter
,
ActivityMainBinding
>
{
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
[]
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
FragmentPagerAdapter
mFragmentPagerAdapter
;
// private List<View> views=new ArrayList<>();
private
List
<
ItemMenuBottomBinding
>
itemMenuBottomBindings
=
new
ArrayList
<>();
@Override
public
int
getLayoutId
()
{
...
...
@@ -31,27 +46,61 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
List
<
Fragment
>
fragments
=
new
ArrayList
<>();
fragments
.
add
(
new
CasherFragment
());
fragments
.
add
(
new
Casher
Fragment
());
fragments
.
add
(
new
Casher
Fragment
());
fragments
.
add
(
new
Service
Fragment
());
fragments
.
add
(
new
Myself
Fragment
());
mFragmentPagerAdapter
=
new
FragmentViewAdapter
(
fragments
,
getSupportFragmentManager
());
mViewBinding
.
fragmentContainer
.
setAdapter
(
mFragmentPagerAdapter
);
mViewBinding
.
tabLayout
.
setupWithViewPager
(
mViewBinding
.
fragmentContainer
);
setupTabIcons
();
initMenuBottomView
();
}
private
void
initMenuBottomView
()
{
Observable
.
create
(
new
ObservableOnSubscribe
<
View
>()
{
@Override
public
void
subscribe
(
ObservableEmitter
<
View
>
e
)
throws
Exception
{
e
.
onNext
(
getLayoutInflater
().
inflate
(
R
.
layout
.
item_menu_bottom
,
null
));
e
.
onNext
(
getLayoutInflater
().
inflate
(
R
.
layout
.
item_menu_bottom
,
null
));
e
.
onNext
(
getLayoutInflater
().
inflate
(
R
.
layout
.
item_menu_bottom
,
null
));
}
}).
subscribeOn
(
Schedulers
.
newThread
()).
observeOn
(
AndroidSchedulers
.
mainThread
()).
subscribe
(
new
Consumer
<
View
>()
{
int
i
=
0
;
@Override
public
void
accept
(
View
view
)
throws
Exception
{
ItemMenuBottomBinding
itemMenuBottomBinding
=
DataBindingUtil
.
bind
(
view
);
itemMenuBottomBinding
.
text
.
setText
(
titleInts
[
i
]);
if
(
i
==
0
){
itemMenuBottomBinding
.
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
red_guanyu
));
}
itemMenuBottomBinding
.
img
.
setImageResource
(
iconList
[
i
]);
itemMenuBottomBindings
.
add
(
itemMenuBottomBinding
);
mViewBinding
.
tabLayout
.
getTabAt
(
i
).
setCustomView
(
view
);
i
++;
}
});
mViewBinding
.
tabLayout
.
addOnTabSelectedListener
(
new
TabLayout
.
OnTabSelectedListener
()
{
@Override
public
void
onTabSelected
(
TabLayout
.
Tab
tab
)
{
switch
(
tab
.
getPosition
())
{
case
0
:
tab
.
setIcon
(
R
.
mipmap
.
icon_menu_cashier_1
);
itemMenuBottomBindings
.
get
(
0
).
img
.
setImageResource
(
R
.
mipmap
.
icon_menu_cashier_1
);
itemMenuBottomBindings
.
get
(
0
).
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
red_guanyu
));
break
;
case
1
:
tab
.
setIcon
(
R
.
mipmap
.
icon_menu_service_1
);
itemMenuBottomBindings
.
get
(
1
).
img
.
setImageResource
(
R
.
mipmap
.
icon_menu_service_1
);
itemMenuBottomBindings
.
get
(
1
).
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
red_guanyu
));
break
;
case
2
:
tab
.
setIcon
(
R
.
mipmap
.
icon_menu_myself_1
);
itemMenuBottomBindings
.
get
(
2
).
img
.
setImageResource
(
R
.
mipmap
.
icon_menu_myself_1
);
itemMenuBottomBindings
.
get
(
2
).
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
red_guanyu
));
break
;
}
}
...
...
@@ -60,13 +109,16 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
public
void
onTabUnselected
(
TabLayout
.
Tab
tab
)
{
switch
(
tab
.
getPosition
())
{
case
0
:
tab
.
setIcon
(
R
.
mipmap
.
icon_menu_cashier_0
);
itemMenuBottomBindings
.
get
(
0
).
img
.
setImageResource
(
R
.
mipmap
.
icon_menu_cashier_0
);
itemMenuBottomBindings
.
get
(
0
).
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
black_likui
));
break
;
case
1
:
tab
.
setIcon
(
R
.
mipmap
.
icon_menu_service_0
);
itemMenuBottomBindings
.
get
(
1
).
img
.
setImageResource
(
R
.
mipmap
.
icon_menu_service_0
);
itemMenuBottomBindings
.
get
(
1
).
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
black_likui
));
break
;
case
2
:
tab
.
setIcon
(
R
.
mipmap
.
icon_menu_myself_0
);
itemMenuBottomBindings
.
get
(
2
).
img
.
setImageResource
(
R
.
mipmap
.
icon_menu_myself_0
);
itemMenuBottomBindings
.
get
(
2
).
text
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
black_likui
));
break
;
}
}
...
...
@@ -80,13 +132,4 @@ public class MainActivity extends BaseActivity<MainPresenter, ActivityMainBindin
}
private
void
setupTabIcons
()
{
for
(
int
i
=
0
;
i
<
3
;
i
++)
{
mViewBinding
.
tabLayout
.
getTabAt
(
i
).
setIcon
(
iconList
[
i
]).
setText
(
titleInts
[
i
]);
}
}
}
app/src/main/java/com/xingdata/zzdpos/ui/main/adapter/MySelfRecyclerAdapter.java
0 → 100644
View file @
89a5e5c3
package
com
.
xingdata
.
zzdpos
.
ui
.
main
.
adapter
;
import
android.content.Context
;
import
android.graphics.drawable.Drawable
;
import
android.support.annotation.Nullable
;
import
com.xingdata.zzdpos.C
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseAdapter
;
import
com.xingdata.zzdpos.databinding.ItemMyselfStringBinding
;
import
com.xingdata.zzdpos.databinding.ItemStringBinding
;
import
java.util.List
;
/**
* Created by Administrator on 2017/12/21.
*/
public
class
MySelfRecyclerAdapter
extends
BaseAdapter
<
Integer
,
ItemMyselfStringBinding
>
{
private
Context
mContext
;
private
Integer
titleId
;
private
Integer
imgId
;
public
MySelfRecyclerAdapter
(
Context
mContext
,
@Nullable
List
<
Integer
>
integers
)
{
super
(
R
.
layout
.
item_myself_string
,
integers
);
this
.
mContext
=
mContext
;
}
@Override
protected
void
convert
(
ItemMyselfStringBinding
mViewBinding
,
Integer
item
)
{
switch
(
item
)
{
case
C
.
MENU
.
MENU_ANNOUNCEMENT
:
titleId
=
R
.
string
.
menu_announcement
;
imgId
=
R
.
mipmap
.
ic_announcement
;
break
;
case
C
.
MENU
.
MENU_FEED
:
titleId
=
R
.
string
.
menu_feed
;
imgId
=
R
.
mipmap
.
ic_feedback
;
break
;
case
C
.
MENU
.
MENU_UPDATE
:
titleId
=
R
.
string
.
menu_update
;
imgId
=
R
.
mipmap
.
ic_upgrade
;
break
;
case
C
.
MENU
.
MENU_HELP
:
titleId
=
R
.
string
.
menu_help
;
imgId
=
R
.
mipmap
.
ic_helping
;
break
;
case
C
.
MENU
.
MENU_EXIT
:
titleId
=
R
.
string
.
menu_exit
;
imgId
=
R
.
mipmap
.
ic_out
;
break
;
}
mViewBinding
.
itemTv
.
setText
(
titleId
);
Drawable
drawable
=
mContext
.
getDrawable
(
imgId
);
drawable
.
setBounds
(
0
,
0
,(
int
)
mViewBinding
.
itemTv
.
getTextSize
()+
20
,(
int
)
mViewBinding
.
itemTv
.
getTextSize
()+
20
);
mViewBinding
.
itemTv
.
setCompoundDrawables
(
drawable
,
null
,
null
,
null
);
}
}
app/src/main/java/com/xingdata/zzdpos/ui/main/fragment/MyselfFragment.java
0 → 100644
View file @
89a5e5c3
package
com
.
xingdata
.
zzdpos
.
ui
.
main
.
fragment
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.view.View
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.xingdata.zzdpos.C
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentMyselfBinding
;
import
com.xingdata.zzdpos.ui.main.MainPresenter
;
import
com.xingdata.zzdpos.ui.main.adapter.MySelfRecyclerAdapter
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
MyselfFragment
extends
BaseFragment
<
MainPresenter
,
FragmentMyselfBinding
>
{
private
MySelfRecyclerAdapter
mMySelfRecyclerAdapter
;
private
List
<
Integer
>
integers
;
@Override
public
int
getLayoutId
()
{
return
R
.
layout
.
fragment_myself
;
}
@Override
public
void
initView
()
{
mViewBinding
.
fragmentMyselfRecycler
.
setLayoutManager
(
new
LinearLayoutManager
(
getActivity
()));
integers
=
new
ArrayList
<>();
integers
.
add
(
107
);
integers
.
add
(
108
);
integers
.
add
(
109
);
integers
.
add
(
110
);
integers
.
add
(
111
);
mMySelfRecyclerAdapter
=
new
MySelfRecyclerAdapter
(
getActivity
(),
integers
);
mMySelfRecyclerAdapter
.
bindToRecyclerView
(
mViewBinding
.
fragmentMyselfRecycler
);
// mViewBinding.fragmentCasherRecycler.addItemDecoration(new MyItemDecoration(getActivity(), 2, R.color.black_zhangfei));
mMySelfRecyclerAdapter
.
setOnItemClickListener
(
new
BaseQuickAdapter
.
OnItemClickListener
()
{
@Override
public
void
onItemClick
(
BaseQuickAdapter
adapter
,
View
view
,
int
position
)
{
switch
((
int
)
adapter
.
getData
().
get
(
position
))
{
case
C
.
MENU
.
MENU_ANNOUNCEMENT
:
//公告
break
;
case
C
.
MENU
.
MENU_FEED
:
//反馈
break
;
case
C
.
MENU
.
MENU_UPDATE
:
//升级
break
;
case
C
.
MENU
.
MENU_HELP
:
//帮助
break
;
case
C
.
MENU
.
MENU_EXIT
:
//退出
break
;
}
}
});
}
}
app/src/main/java/com/xingdata/zzdpos/ui/main/fragment/ServiceFragment.java
0 → 100644
View file @
89a5e5c3
package
com
.
xingdata
.
zzdpos
.
ui
.
main
.
fragment
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentServiceBinding
;
import
com.xingdata.zzdpos.ui.main.MainPresenter
;
import
com.xingdata.zzdpos.ui.main.adapter.MenuRecyclerAdapter
;
import
java.util.List
;
public
class
ServiceFragment
extends
BaseFragment
<
MainPresenter
,
FragmentServiceBinding
>
{
private
MenuRecyclerAdapter
mMenuRecyclerAdapter
;
private
List
<
Integer
>
integers
;
@Override
public
int
getLayoutId
()
{
return
R
.
layout
.
fragment_service
;
}
@Override
public
void
initView
()
{
}
}
app/src/main/res/layout/activity_main.xml
View file @
89a5e5c3
...
...
@@ -11,26 +11,39 @@
<android.support.design.widget.TabLayout
android:id=
"@+id/tab_layout"
style=
"@style/Base.Widget.Design.TabLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:background=
"@color/white_caocao"
android:elevation=
"@dimen/view_line_L2"
android:gravity=
"center_vertical|center_horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/all_padding"
app:layout_constraintBottom_toBottomOf=
"parent"
app:tabIndicatorHeight=
"0dp"
app:tabTextAppearance=
"@android:style/TextAppearance.Holo.Small"
>
app:tabGravity=
"fill"
app:tabSelectedTextColor=
"@color/red_guanyu"
app:tabTextAppearance=
"@android:style/TextAppearance.Holo.Small"
app:tabTextColor=
"@color/black_likui"
>
</android.support.design.widget.TabLayout>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/view_line_L1"
android:background=
"@color/gray_zhouyu"
app:layout_constraintTop_toTopOf=
"@id/tab_layout"
/>
<android.support.v4.view.ViewPager
android:id=
"@+id/fragment_container"
android:layout_width=
"
match_parent
"
android:layout_width=
"
0dp
"
android:layout_height=
"0dp"
app:layout_constraintBottom_toTopOf=
"@id/tab_layout"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"1.0"
>
</android.support.v4.view.ViewPager>
...
...
app/src/main/res/layout/fragment_casher.xml
View file @
89a5e5c3
...
...
@@ -5,6 +5,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/gray_zhouyu"
tools:context=
"com.example.administrator.tangkupos.CasherFragment"
>
<!-- TODO: Update blank fragment layout -->
...
...
@@ -18,7 +19,7 @@
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:background=
"@color/black"
android:background=
"@color/black
_zhangfei
"
android:gravity=
"center"
android:paddingTop=
"30dp"
android:weightSum=
"2"
...
...
@@ -50,6 +51,8 @@
<android.support.v7.widget.RecyclerView
android:id=
"@+id/fragment_casher_recycler"
android:layout_marginTop=
"@dimen/all_padding"
android:layout_marginBottom=
"@dimen/all_padding"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:background=
"@color/gray_zhouyu"
...
...
app/src/main/res/layout/fragment_myself.xml
0 → 100644
View file @
89a5e5c3
<layout>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/gray_zhouyu"
tools:context=
"com.example.administrator.tangkupos.CasherFragment"
>
<!-- TODO: Update blank fragment layout -->
<android.support.constraint.Guideline
android:id=
"@+id/guideline"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
app:layout_constraintGuide_percent=
"0.38"
/>
<android.support.constraint.ConstraintLayout
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:background=
"@color/blue_mawu"
android:gravity=
"center"
android:paddingTop=
"30dp"
android:weightSum=
"2"
app:layout_constraintBottom_toBottomOf=
"@id/guideline"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
</android.support.constraint.ConstraintLayout>
<android.support.v7.widget.RecyclerView
android:id=
"@+id/fragment_myself_recycler"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_marginBottom=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_padding"
android:background=
"@color/gray_zhouyu"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/guideline"
/>
</android.support.constraint.ConstraintLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_service.xml
0 → 100644
View file @
89a5e5c3
<layout>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/gray_zhouyu"
tools:context=
"com.example.administrator.tangkupos.CasherFragment"
>
<!-- TODO: Update blank fragment layout -->
<android.support.constraint.Guideline
android:id=
"@+id/guideline"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
app:layout_constraintGuide_percent=
"0.38"
/>
<TextView
android:id=
"@+id/tool_bar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white_caocao"
android:elevation=
"@dimen/view_line_L1"
android:gravity=
"center"
android:minHeight=
"?attr/actionBarSize"
android:padding=
"0dp"
android:text=
"@string/menu_service"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/big_text_size"
app:layout_constraintTop_toTopOf=
"parent"
>
</TextView>
<ScrollView
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:scrollbars=
"none"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tool_bar"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/bg_service"
/>
</ScrollView>
</android.support.constraint.ConstraintLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/item_menu_bottom.xml
0 → 100644
View file @
89a5e5c3
<?xml version="1.0" encoding="utf-8"?>
<layout>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/ll"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white_caocao"
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/img"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<TextView
android:id=
"@+id/text"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
</LinearLayout>
</layout>
app/src/main/res/layout/item_myself_string.xml
0 → 100644
View file @
89a5e5c3
<?xml version="1.0" encoding="utf-8"?>
<layout>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:padding=
"0dp"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/item_tv"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_marginBottom=
"@dimen/all_padding"
android:background=
"@color/white_caocao"
android:elevation=
"@dimen/view_line_L050"
android:gravity=
"left"
android:drawablePadding=
"@dimen/all_padding"
android:padding=
"@dimen/vicescreen_shoppingcart_pandding"
android:singleLine=
"true"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
</FrameLayout>
</layout>
\ No newline at end of file
app/src/main/res/layout/item_string.xml
View file @
89a5e5c3
<?xml version="1.0" encoding="utf-8"?>
<layout>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/item_tv"
android:layout_width=
"match_parent"
...
...
@@ -20,6 +17,5 @@
android:textSize=
"14sp"
/>
</RelativeLayout>
</RelativeLayout>
</layout>
\ No newline at end of file
app/src/main/res/mipmap-xhdpi/bg_service.png
0 → 100644
View file @
89a5e5c3
408 KB
app/src/main/res/mipmap-xhdpi/ic_announcement.png
0 → 100644
View file @
89a5e5c3
3.47 KB
app/src/main/res/mipmap-xhdpi/ic_feedback.png
0 → 100644
View file @
89a5e5c3
3.17 KB
app/src/main/res/mipmap-xhdpi/ic_helping.png
0 → 100644
View file @
89a5e5c3
3.29 KB
app/src/main/res/mipmap-xhdpi/ic_out.png
0 → 100644
View file @
89a5e5c3
3.18 KB
app/src/main/res/mipmap-xhdpi/ic_upgrade.png
0 → 100644
View file @
89a5e5c3
3.58 KB
app/src/main/res/values/dimens.xml
View file @
89a5e5c3
...
...
@@ -126,6 +126,7 @@
<dimen
name=
"vicescreen_shoppingcart_pandding"
>
10dp
</dimen>
<dimen
name=
"view_line_L1"
>
1dp
</dimen>
<dimen
name=
"view_line_L2"
>
2dp
</dimen>
<dimen
name=
"view_line_L050"
>
0.5dp
</dimen>
<dimen
name=
"view_line_L5"
>
5dp
</dimen>
<dimen
name=
"view_line_height"
>
0.5dp
</dimen>
...
...
app/src/main/res/values/strings.xml
View file @
89a5e5c3
...
...
@@ -468,6 +468,11 @@
<string
name=
"menu_ticket"
>
发券
</string>
<string
name=
"menu_statistics"
>
统计
</string>
<string
name=
"menu_manager"
>
管理
</string>
<string
name=
"menu_announcement"
>
公告通知
</string>
<string
name=
"menu_feed"
>
反馈
</string>
<string
name=
"menu_update"
>
升级
</string>
<string
name=
"menu_help"
>
帮助
</string>
<string
name=
"menu_exit"
>
退出
</string>
<!--输入器-->
<string
name=
"inputer_1"
>
1
</string>
<string
name=
"inputer_2"
>
2
</string>
...
...
app/src/main/res/values/styles.xml
View file @
89a5e5c3
...
...
@@ -285,5 +285,9 @@
<item
name=
"android:textSize"
>
@dimen/et_textsize
</item>
<item
name=
"android:textColorHint"
>
@color/hint
</item>
</style>
<style
name=
"Base.Widget.Design.TabLayout"
parent=
"android:Widget"
>
<item
name=
"tabBackground"
>
@color/white_caocao
</item>
<item
name=
"tabIndicatorColor"
>
#FFF
</item>
<item
name=
"tabIndicatorHeight"
>
0dp
</item>
</style>
</resources>
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