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
9b4952ad
Commit
9b4952ad
authored
Sep 23, 2022
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2
parent
096107cd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
9 deletions
+36
-9
app/src/main/java/com/ihaoin/hooloo/device/base/AppConfig.java
+3
-3
app/src/main/java/com/ihaoin/hooloo/device/home/view/LauncherActivity.java
+1
-1
app/src/main/java/com/ihaoin/hooloo/device/interaction/view/InteractionPresentation.java
+30
-2
app/src/main/java/com/ihaoin/hooloo/device/kds/view/KdsPresentation.java
+1
-1
app/src/main/res/layout/present_interaction.xml
+1
-2
No files found.
app/src/main/java/com/ihaoin/hooloo/device/base/AppConfig.java
View file @
9b4952ad
...
...
@@ -3,7 +3,7 @@ package com.ihaoin.hooloo.device.base;
import
com.ihaoin.hooloo.device.data.enums.PresentState
;
public
class
AppConfig
{
public
static
Boolean
DEBUG
=
tru
e
;
// TODO 编译环境
public
static
Boolean
DEBUG
=
fals
e
;
// TODO 编译环境
/** 点单屏编码, 1-菜单屏,2-交互屏 */
public
static
String
DEFAULT_SCREEN_NO
=
"1"
;
// TODO 编译点单屏编码
/** 副屏内容 */
...
...
@@ -26,6 +26,6 @@ public class AppConfig {
public
static
String
WX_URL_TEST
=
"http://hooloo.gdatac.com/c2?id=%s"
;
public
static
String
HOST
=
""
;
public
static
final
String
HOST_PROD
=
"https://
hooloo-api.gdatac.com/
"
;
public
static
final
String
HOST_TEST
=
"https://hooloo-dev-api.gdatac.com
/
"
;
public
static
final
String
HOST_PROD
=
"https://
api.ihaoin.com
"
;
public
static
final
String
HOST_TEST
=
"https://hooloo-dev-api.gdatac.com"
;
}
app/src/main/java/com/ihaoin/hooloo/device/home/view/LauncherActivity.java
View file @
9b4952ad
...
...
@@ -119,10 +119,10 @@ public class LauncherActivity extends Activity {
initSettingsQueue
();
// startUpdateSocket();
startMachineClient
();
startTimeoutThread
();
getMachineCode
();
// startUpdateSocket();
// new UpdateService().start();
}
...
...
app/src/main/java/com/ihaoin/hooloo/device/interaction/view/InteractionPresentation.java
View file @
9b4952ad
...
...
@@ -78,7 +78,21 @@ public class InteractionPresentation extends Presentation {
view1
.
setVisibility
(
View
.
VISIBLE
);
view2
.
setVisibility
(
View
.
INVISIBLE
);
startPlay
();
Glide
.
with
(
getContext
()).
asGif
().
load
(
"https://testapi.pecktoy.com/files/upload_test/he.gif"
).
into
(
new
CustomTarget
<
GifDrawable
>()
{
@Override
public
void
onResourceReady
(
@NonNull
GifDrawable
resource
,
@Nullable
Transition
transition
)
{
foreground
.
setVisibility
(
View
.
VISIBLE
);
foreground
.
setImageDrawable
(
resource
);
resource
.
start
();
}
@Override
public
void
onLoadCleared
(
@Nullable
Drawable
placeholder
)
{
}
});
// startPlay();
}
private
void
setInteractionMsg
(
InteractionMsg
msg
)
{
...
...
@@ -288,7 +302,21 @@ public class InteractionPresentation extends Presentation {
Utils
.
i
(
"interaction msg is null"
);
return
;
}
setInteractionMsg
(
msg
);
// setInteractionMsg(msg);
Glide
.
with
(
getContext
()).
asGif
().
load
(
msg
.
getBackground
()).
into
(
new
CustomTarget
<
GifDrawable
>()
{
@Override
public
void
onResourceReady
(
@NonNull
GifDrawable
resource
,
@Nullable
Transition
transition
)
{
foreground
.
setVisibility
(
View
.
VISIBLE
);
foreground
.
setImageDrawable
(
resource
);
resource
.
start
();
}
@Override
public
void
onLoadCleared
(
@Nullable
Drawable
placeholder
)
{
}
});
}
}
...
...
app/src/main/java/com/ihaoin/hooloo/device/kds/view/KdsPresentation.java
View file @
9b4952ad
...
...
@@ -233,7 +233,7 @@ public class KdsPresentation extends Presentation {
private
Integer
statePosition
=
3
;
private
void
setNextImage
()
{
if
(
imagePagerAdapter
==
null
||
imagePagerAdapter
.
getItemCount
()
<=
0
)
{
if
(
imagePagerAdapter
==
null
||
imagePagerAdapter
.
getItemCount
()
<=
1
)
{
return
;
}
imagePosition
++;
...
...
app/src/main/res/layout/present_interaction.xml
View file @
9b4952ad
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@android:color/holo_red_dark"
>
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/img_background1"
android:layout_width=
"match_parent"
...
...
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