Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
machine
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
android
machine
Commits
00b09a2b
Commit
00b09a2b
authored
Oct 17, 2022
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2
parent
4749ba25
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
265 additions
and
251 deletions
+265
-251
app/src/main/assets/fonts/MFXiYou_Noncommercial-Regular.otf
+0
-0
app/src/main/assets/fonts/SourceHanSansCN-Bold.otf
+0
-0
app/src/main/java/com/ihaoin/hooloo/device/component/IntroViewPager.java
+3
-3
app/src/main/java/com/ihaoin/hooloo/device/home/dialog/ConfirmOrderDialog.java
+1
-0
app/src/main/java/com/ihaoin/hooloo/device/home/view/LauncherActivity.java
+2
-2
app/src/main/java/com/ihaoin/hooloo/device/interaction/view/InteractionPresentation.java
+17
-8
app/src/main/java/com/ihaoin/hooloo/device/util/Utils.java
+1
-1
app/src/main/res/layout/present_interaction.xml
+3
-1
app/src/main/res/layout/present_kds.xml
+235
-236
app/src/main/res/values-w800dp/dimens.xml
+1
-0
app/src/main/res/values/colors.xml
+1
-0
app/src/main/res/values/dimens.xml
+1
-0
No files found.
app/src/main/assets/fonts/MFXiYou_Noncommercial-Regular.otf
0 → 100644
View file @
00b09a2b
File added
app/src/main/assets/fonts/SourceHanSansCN-Bold.otf
deleted
100644 → 0
View file @
4749ba25
File deleted
app/src/main/java/com/ihaoin/hooloo/device/component/IntroViewPager.java
View file @
00b09a2b
...
...
@@ -71,7 +71,7 @@ public class IntroViewPager extends ViewPager {
v
.
measure
(
widthMeasureSpec
,
MeasureSpec
.
makeMeasureSpec
(
0
,
MeasureSpec
.
UNSPECIFIED
));
height
=
v
.
getMeasuredHeight
();
}
Utils
.
i
(
"onMeasure v="
+
(
v
!=
null
)
+
", index="
+
index
+
", h="
+
height
);
//
Utils.i("onMeasure v=" + (v != null) + ", index=" + index + ", h=" + height);
heightMeasureSpec
=
MeasureSpec
.
makeMeasureSpec
(
height
,
MeasureSpec
.
EXACTLY
);
super
.
onMeasure
(
widthMeasureSpec
,
heightMeasureSpec
);
}
...
...
@@ -121,7 +121,7 @@ public class IntroViewPager extends ViewPager {
if
(
CollectionUtils
.
isEmpty
(
introUrls
))
{
return
null
;
}
Utils
.
i
(
"instantiateItem: "
+
position
);
//
Utils.i("instantiateItem: " + position);
View
view
=
getView
(
position
);
container
.
addView
(
view
);
return
view
;
...
...
@@ -131,7 +131,7 @@ public class IntroViewPager extends ViewPager {
private
View
getView
(
Integer
position
)
{
ImageView
imageView
=
(
ImageView
)
LayoutInflater
.
from
(
getContext
()).
inflate
(
R
.
layout
.
intro_image
,
null
);
String
url
=
introUrls
.
get
(
position
%
introUrls
.
size
());
Utils
.
i
(
"getView: "
+
(
position
%
introUrls
.
size
()));
//
Utils.i("getView: " + (position % introUrls.size()));
Utils
.
getGlide
(
getContext
()).
load
(
url
).
diskCacheStrategy
(
DiskCacheStrategy
.
ALL
).
into
(
imageView
);
return
imageView
;
}
...
...
app/src/main/java/com/ihaoin/hooloo/device/home/dialog/ConfirmOrderDialog.java
View file @
00b09a2b
...
...
@@ -291,6 +291,7 @@ public class ConfirmOrderDialog extends Dialog {
if
(!
StringUtils
.
isEmpty
(
HLApplication
.
RECOGNIZE_PERSON
))
{
url
+=
"recognizePerson="
+
HLApplication
.
RECOGNIZE_PERSON
;
}
Utils
.
i
(
"url="
+
url
);
int
width
=
Utils
.
dpToPx
(
getContext
(),
800
);
// 图像宽度
int
height
=
Utils
.
dpToPx
(
getContext
(),
800
);
// 图像高度
Map
<
EncodeHintType
,
Object
>
hints
=
new
HashMap
();
...
...
app/src/main/java/com/ihaoin/hooloo/device/home/view/LauncherActivity.java
View file @
00b09a2b
...
...
@@ -127,7 +127,7 @@ public class LauncherActivity extends Activity {
startMachineClient
();
startTimeoutThread
();
getMachineCode
();
startUpdateSocket
();
//
startUpdateSocket();
// new UpdateService().start();
View
.
OnClickListener
l
=
v
->
{
...
...
@@ -146,7 +146,7 @@ public class LauncherActivity extends Activity {
// msg.setSentences(Utils.getSents("HOO感谢你啊", "感谢在美好的时间遇到了你", "感谢在美好的时间遇到了你", "感谢在美好的时间遇到了你"));
// break;
case
R
.
id
.
butn_3
:
msg
=
JsonUtils
.
readValue
(
"{\"state\":2,\"stateDesc\":\"男\",\"sentences\":[{\"turn\":1,\"fontSize\":
50,\"sentence\":\"小哥哥晚上好啊\"},{\"turn\":2,\"fontSize\":40,\"sentence\":\"打工辛苦\"},{\"turn\":3,\"fontSize\":4
0,\"sentence\":\"上衣尤其有个性\"}],\"cutToPicture\":\"hoo转场\",\"picture\":\"hoo接待\",\"background\":\"hoo接待\",\"backgroundDesc\":\"中秋晚上多云沙漠\",\"recommendGoods\":\"拿铁\",\"goodsId\":15000,\"goodsIcon\":\"https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/09/图片规格 [已恢复]-14.png\",\"recommendSentence\":\"喝杯拿铁吧,下面有菜单哈\",\"recognizePerson\":\"\",\"isContinue\":1,\"isBreak\":0}"
,
InteractionMsg
.
class
);
msg
=
JsonUtils
.
readValue
(
"{\"state\":2,\"stateDesc\":\"男\",\"sentences\":[{\"turn\":1,\"fontSize\":
100,\"sentence\":\"小哥哥晚上好啊\"},{\"turn\":2,\"fontSize\":60,\"sentence\":\"打工辛苦\"},{\"turn\":3,\"fontSize\":6
0,\"sentence\":\"上衣尤其有个性\"}],\"cutToPicture\":\"hoo转场\",\"picture\":\"hoo接待\",\"background\":\"hoo接待\",\"backgroundDesc\":\"中秋晚上多云沙漠\",\"recommendGoods\":\"拿铁\",\"goodsId\":15000,\"goodsIcon\":\"https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/09/图片规格 [已恢复]-14.png\",\"recommendSentence\":\"喝杯拿铁吧,下面有菜单哈\",\"recognizePerson\":\"\",\"isContinue\":1,\"isBreak\":0}"
,
InteractionMsg
.
class
);
break
;
case
R
.
id
.
butn_4
:
msg
=
JsonUtils
.
readValue
(
"{\"state\":2,\"stateDesc\":\"男\",\"sentences\":[{\"turn\":1,\"fontSize\":50,\"sentence\":\"大哥哥上午好呐\"},{\"turn\":2,\"fontSize\":40,\"sentence\":\"出门打工\"},{\"turn\":3,\"fontSize\":40,\"sentence\":\"衬衫真有个性\"}],\"cutToPicture\":\"hoo转场2\",\"picture\":\"hoo接待\",\"background\":\"hoo接待\",\"backgroundDesc\":\"中秋上午多云沙漠\",\"recommendGoods\":\"拿铁\",\"goodsId\":180,\"goodsIcon\":\"https://hooloo-saas-test.oss-cn-beijing.aliyuncs.com/hooloo/2022/07/09/图片规格[已恢复]-14.png\",\"recommendSentence\":\"来杯拿铁补充原动力吧,希望给你带来好心情2\",\"recognizePerson\":\"person_2\",\"isContinue\":0,\"isBreak\":0}"
,
InteractionMsg
.
class
);
...
...
app/src/main/java/com/ihaoin/hooloo/device/interaction/view/InteractionPresentation.java
View file @
00b09a2b
...
...
@@ -36,6 +36,7 @@ import androidx.annotation.NonNull;
import
com.bumptech.glide.load.engine.DiskCacheStrategy
;
import
com.ihaoin.hooloo.device.HLApplication
;
import
com.ihaoin.hooloo.device.R
;
import
com.ihaoin.hooloo.device.base.AppConfig
;
import
com.ihaoin.hooloo.device.base.Base
;
import
com.ihaoin.hooloo.device.component.AnimationListener
;
import
com.ihaoin.hooloo.device.component.AnimatorListener
;
...
...
@@ -122,7 +123,9 @@ public class InteractionPresentation extends Presentation {
}
private
void
setInteractionMsg
(
InteractionMsg
msg
)
{
Utils
.
showToast
(
getContext
(),
String
.
format
(
"交互屏消息,队列:%s, 转场:%s, 动画:%s, 重复:%s, 打断:%s, 商品:%s"
,
mMsgQueue
.
size
(),
msg
.
getCutToPicture
(),
msg
.
getPicture
(),
msg
.
getIsContinue
(),
msg
.
getIsBreak
(),
msg
.
getGoodsId
()),
Toast
.
LENGTH_LONG
);
if
(
AppConfig
.
DEBUG
)
{
Utils
.
showToast
(
getContext
(),
String
.
format
(
"交互屏消息,队列:%s, 转场:%s, 动画:%s, 重复:%s, 打断:%s, 商品:%s"
,
mMsgQueue
.
size
(),
msg
.
getCutToPicture
(),
msg
.
getPicture
(),
msg
.
getIsContinue
(),
msg
.
getIsBreak
(),
msg
.
getGoodsId
()),
Toast
.
LENGTH_LONG
);
}
HLApplication
.
RECOGNIZE_PERSON
=
msg
.
getRecognizePerson
();
if
(
Base
.
TRUE
.
equals
(
msg
.
getIsBreak
())
||
mMsgQueue
.
size
()
>=
2
)
{
mMsgQueue
.
clear
();
...
...
@@ -153,7 +156,6 @@ public class InteractionPresentation extends Presentation {
InteractionMsg
msg
=
(
InteractionMsg
)
message
.
obj
;
if
(
message
.
what
==
1
)
{
// 播放文字动画
startTextInAnim
(
msg
);
startRecommendInAnim
(
msg
);
}
else
if
(
message
.
what
==
2
)
{
// 清除文字动画
clearTextAnim
(
msg
);
startRecommendOutAnim
(
msg
);
...
...
@@ -181,7 +183,7 @@ public class InteractionPresentation extends Presentation {
recommendText
.
setText
(
""
);
recommendIcon
.
setImageDrawable
(
null
);
smasher
.
reShowView
(
layoutRecommend
);
startRecommendInAnim
(
msg
);
//
startRecommendInAnim(msg);
}
}).
start
();
...
...
@@ -197,14 +199,14 @@ public class InteractionPresentation extends Presentation {
// animation.start();
}
private
void
startRecommendInAnim
(
InteractionMsg
msg
)
{
private
void
startRecommendInAnim
(
InteractionMsg
msg
,
Integer
delay
)
{
if
(
msg
==
null
||
StringUtils
.
isEmpty
(
msg
.
getRecommendSentence
())
||
StringUtils
.
isEmpty
(
msg
.
getRecommendGoods
()))
{
return
;
}
int
start
=
msg
.
getRecommendSentence
().
indexOf
(
msg
.
getRecommendGoods
());
int
end
=
start
+
msg
.
getRecommendGoods
().
length
();
SpannableStringBuilder
builder
=
new
SpannableStringBuilder
(
msg
.
getRecommendSentence
());
builder
.
setSpan
(
new
ForegroundColorSpan
(
getContext
().
getColor
(
R
.
color
.
colorLogo
)),
start
,
end
,
Spannable
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
builder
.
setSpan
(
new
ForegroundColorSpan
(
getContext
().
getColor
(
R
.
color
.
recommendPink
)),
start
,
end
,
Spannable
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
builder
.
setSpan
(
new
AbsoluteSizeSpan
(
Utils
.
getDimens
(
getContext
(),
R
.
dimen
.
ts_interaction_recommend_big
)),
start
,
end
,
Spannable
.
SPAN_EXCLUSIVE_EXCLUSIVE
);
recommendText
.
setText
(
builder
);
Utils
.
getGlide
(
getContext
()).
load
(
Utils
.
getThumbnailUrl
(
msg
.
getGoodsIcon
())).
diskCacheStrategy
(
DiskCacheStrategy
.
ALL
).
into
(
recommendIcon
);
...
...
@@ -212,9 +214,12 @@ public class InteractionPresentation extends Presentation {
Animation
alphaAnimation
=
new
AlphaAnimation
(
0
,
1
);
TranslateAnimation
leftAnimation
=
new
TranslateAnimation
(-
light1
.
getWidth
(),
1080
,
0
,
0
);
TranslateAnimation
rightAnimation
=
new
TranslateAnimation
(
light2
.
getWidth
(),
-
1080
,
0
,
0
);
alphaAnimation
.
setDuration
(
600
);
leftAnimation
.
setDuration
(
600
);
rightAnimation
.
setDuration
(
600
);
alphaAnimation
.
setStartOffset
(
delay
);
leftAnimation
.
setStartOffset
(
delay
);
rightAnimation
.
setStartOffset
(
delay
);
alphaAnimation
.
setDuration
(
3000
);
leftAnimation
.
setDuration
(
2000
);
rightAnimation
.
setDuration
(
2000
);
layoutRecommend
.
setVisibility
(
View
.
VISIBLE
);
light1
.
setVisibility
(
View
.
VISIBLE
);
...
...
@@ -472,6 +477,10 @@ public class InteractionPresentation extends Presentation {
layout
.
addView
(
popText
);
layout
.
setVisibility
(
View
.
VISIBLE
);
if
(
j
==
sentenceStr
.
length
()
-
1
)
{
startRecommendInAnim
(
msg
,
delay
);
}
// 文字弹出动画
ScaleAnimation
scaleAnimation
=
new
ScaleAnimation
(
0
,
1
,
0
,
1
,
Animation
.
RELATIVE_TO_SELF
,
0.5f
,
Animation
.
RELATIVE_TO_SELF
,
0.5f
);
scaleAnimation
.
setAnimationListener
(
new
AnimationListener
()
{
...
...
app/src/main/java/com/ihaoin/hooloo/device/util/Utils.java
View file @
00b09a2b
...
...
@@ -325,7 +325,7 @@ public class Utils {
}
public
static
Typeface
getInteractionFont
(
Context
context
)
{
return
Typeface
.
createFromAsset
(
context
.
getAssets
(),
"fonts/
SourceHanSansCN-Bold
.otf"
);
return
Typeface
.
createFromAsset
(
context
.
getAssets
(),
"fonts/
MFXiYou_Noncommercial-Regular
.otf"
);
}
public
static
Typeface
getAmountFont
(
Context
context
)
{
...
...
app/src/main/res/layout/present_interaction.xml
View file @
00b09a2b
...
...
@@ -69,7 +69,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_margin=
"@dimen/interaction_recommend_margin"
android:layout_marginHorizontal=
"@dimen/interaction_recommend_margin"
android:layout_marginBottom=
"@dimen/interaction_recommend_margin_bottom"
android:gravity=
"bottom"
android:orientation=
"horizontal"
android:visibility=
"invisible"
>
...
...
@@ -79,6 +80,7 @@
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/interaction_recommend_image_margin"
android:layout_weight=
"1"
android:lineSpacingExtra=
"40px"
android:singleLine=
"false"
android:text=
""
android:textColor=
"@color/black"
...
...
app/src/main/res/layout/present_kds.xml
View file @
00b09a2b
<?xml version="1.0" encoding="utf-8"?>
<!--<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"-->
<?xml version="1.0" encoding="utf-8"?>
<!--<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:orientation="horizontal">-->
...
...
@@ -28,271 +27,271 @@
<!-- android:textColor="@android:color/black"-->
<!-- android:textSize="80px" />-->
<!--</LinearLayout>-->
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/image_pager"
android:layout_width=
"@dimen/menu_left"
android:layout_height=
"match_parent"
android:descendantFocusability=
"afterDescendants"
android:orientation=
"horizontal"
android:overScrollMode=
"never"
/>
<LinearLayout
android:layout_width=
"
match_paren
t"
android:layout_width=
"
@dimen/menu_righ
t"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/image_pager"
android:layout_width=
"@dimen/menu_left"
android:layout_height=
"match_parent"
android:descendantFocusability=
"afterDescendants"
android:orientation=
"horizontal"
android:overScrollMode=
"never"
/>
<LinearLayout
android:layout_width=
"@dimen/menu_right"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<RelativeLayout
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/menu_right_top"
android:background=
"@color/menu_order_bg"
android:paddingStart=
"@dimen/menu_content_padding_hor"
android:paddingTop=
"@dimen/menu_content_padding_top"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/menu_right_top"
android:background=
"@color/menu_order_bg"
android:paddingStart=
"@dimen/menu_content_padding_hor"
android:paddingTop=
"@dimen/menu_content_padding_top"
>
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/txt_waiting"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/menu_title_margin_bottom"
android:text=
"待制作"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_menu_subtitle"
/>
<LinearLayout
android:id=
"@+id/grid_waiting"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/waiting1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting2"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting3"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/waiting4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting5"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting6"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/txt_cooking"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/menu_title_margin_top"
android:layout_marginBottom=
"@dimen/menu_title_margin_bottom"
android:text=
"制作中"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_menu_subtitle"
/>
<LinearLayout
android:id=
"@+id/grid_cooking"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingEnd=
"@dimen/menu_content_padding_hor"
>
<include
android:id=
"@+id/progress1"
layout=
"@layout/layout_progress"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
/>
<include
android:id=
"@+id/progress2"
layout=
"@layout/layout_progress"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/menu_title_margin_top"
android:layout_marginBottom=
"@dimen/menu_title_margin_bottom"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/txt_cooking"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/menu_title_margin_bottom"
android:text=
"制作中"
android:text=
"可取餐"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_menu_subtitle"
/>
<LinearLayout
android:id=
"@+id/grid_cooking"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingEnd=
"@dimen/menu_content_padding_hor"
>
<include
android:id=
"@+id/progress1"
layout=
"@layout/layout_progress"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
/>
<include
android:id=
"@+id/progress2"
layout=
"@layout/layout_progress"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
/>
</LinearLayout>
<TextView
android:id=
"@+id/txt_waiting"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/menu_title_margin_top"
android:layout_marginBottom=
"@dimen/menu_title_margin_bottom"
android:text=
"待制作"
android:text=
"(扫码取餐)"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_menu_subtitle"
/>
android:textSize=
"@dimen/ts_menu_subtitle1"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/grid_completed"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:id=
"@+id/grid_waiting"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/waiting1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting2"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting3"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/waiting4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting5"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/waiting6"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/completed1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed2"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed3"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/menu_title_margin_top"
android:layout_marginBottom=
"@dimen/menu_title_margin_bottom"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/completed4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed5"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:text=
"可取餐"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_
menu_subtitle
"
/>
android:textSize=
"@dimen/ts_
order_number
"
/>
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/completed6"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:text=
"(扫码取餐)"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_
menu_subtitle1
"
/>
android:textSize=
"@dimen/ts_
order_number
"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/grid_completed"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/completed1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed2"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed3"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/completed4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed5"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed6"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/completed7"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed8"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed9"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
android:layout_height=
"@dimen/ts_order_number_height"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/completed7"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed8"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
<TextView
android:id=
"@+id/completed9"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"Mon999"
android:textColor=
"@color/white"
android:textSize=
"@dimen/ts_order_number"
/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/menu_right_bottom"
android:background=
"@color/menu_state_bg"
android:paddingLeft=
"@dimen/menu_state_padding_hor"
android:paddingTop=
"@dimen/menu_state_padding_ver"
android:paddingBottom=
"@dimen/menu_state_padding_bottom"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rec_machine_state"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/menu_right_bottom"
android:background=
"@color/menu_state_bg"
android:paddingLeft=
"@dimen/menu_state_padding_hor"
android:paddingTop=
"@dimen/menu_state_padding_ver"
android:paddingBottom=
"@dimen/menu_state_padding_bottom"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rec_machine_state"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:descendantFocusability=
"afterDescendants"
/>
</RelativeLayout>
</LinearLayout>
android:layout_height=
"match_parent"
android:descendantFocusability=
"afterDescendants"
/>
</RelativeLayout>
</LinearLayout>
<ImageView
android:id=
"@+id/img_avatar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
/>
</RelativeLayout>
\ No newline at end of file
</LinearLayout>
<ImageView
android:id=
"@+id/img_avatar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
/>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/values-w800dp/dimens.xml
View file @
00b09a2b
...
...
@@ -147,6 +147,7 @@
<dimen
name=
"interaction_text_space"
>
80px
</dimen>
<dimen
name=
"interaction_recommend_margin"
>
80px
</dimen>
<dimen
name=
"interaction_recommend_margin_bottom"
>
140px
</dimen>
<dimen
name=
"interaction_recommend_image_margin"
>
80px
</dimen>
<dimen
name=
"interaction_goods_icon_width"
>
260px
</dimen>
<dimen
name=
"interaction_goods_icon_height"
>
260px
</dimen>
...
...
app/src/main/res/values/colors.xml
View file @
00b09a2b
...
...
@@ -16,6 +16,7 @@
<color
name=
"white"
>
#FFFFFFFF
</color>
<color
name=
"black"
>
#FF000000
</color>
<color
name=
"colorPink"
>
#FFFF72C1
</color>
<color
name=
"recommendPink"
>
#FFFC00CD
</color>
<color
name=
"progress"
>
#FFCDE3F6
</color>
<color
name=
"menu_order_bg"
>
#FF4A71FF
</color>
<color
name=
"menu_state_bg"
>
#FFDEF0FF
</color>
...
...
app/src/main/res/values/dimens.xml
View file @
00b09a2b
...
...
@@ -163,6 +163,7 @@
<dimen
name=
"interaction_text_space"
>
80px
</dimen>
<dimen
name=
"interaction_recommend_margin"
>
80px
</dimen>
<dimen
name=
"interaction_recommend_margin_bottom"
>
140px
</dimen>
<dimen
name=
"interaction_recommend_image_margin"
>
80px
</dimen>
<dimen
name=
"interaction_goods_icon_width"
>
260px
</dimen>
<dimen
name=
"interaction_goods_icon_height"
>
260px
</dimen>
...
...
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