Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BluToysApplication
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
chengchong
BluToysApplication
Commits
5f599c37
Commit
5f599c37
authored
Feb 05, 2021
by
韩飞虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我他妈全部搞定了
parent
68c3b027
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
4 deletions
+42
-4
SelectTimerActivity.java
...va/com/example/blu/toys/activity/SelectTimerActivity.java
+2
-3
SetTimeActivity.java
...n/java/com/example/blu/toys/activity/SetTimeActivity.java
+36
-0
activity_set_time.xml
app/src/main/res/layout/activity_set_time.xml
+4
-1
No files found.
app/src/main/java/com/example/blu/toys/activity/SelectTimerActivity.java
View file @
5f599c37
...
...
@@ -92,8 +92,6 @@ public class SelectTimerActivity extends BaseActivity {
@OnClick
(
R
.
id
.
back_but
)
public
void
onViewClicked
()
{
Intent
intent
=
new
Intent
(
SelectTimerActivity
.
this
,
SelectDeviceActivity
.
class
);
startActivity
(
intent
);
finish
();
}
}
\ No newline at end of file
app/src/main/java/com/example/blu/toys/activity/SetTimeActivity.java
View file @
5f599c37
package
com
.
example
.
blu
.
toys
.
activity
;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.RelativeLayout
;
...
...
@@ -61,6 +63,15 @@ public class SetTimeActivity extends BaseActivity {
RelativeLayout
startBut
;
@BindView
(
R
.
id
.
will
)
TypefaceTextView
will
;
@BindView
(
R
.
id
.
settings
)
ImageView
settings
;
@BindView
(
R
.
id
.
shop
)
ImageView
shop
;
@BindView
(
R
.
id
.
rate
)
ImageView
mImageView03
;
private
ArrayList
<
String
>
hourList
=
new
ArrayList
<>();
private
ArrayList
<
String
>
sixList
=
new
ArrayList
<>();
...
...
@@ -328,6 +339,31 @@ public class SetTimeActivity extends BaseActivity {
LogUtils
.
e
(
"连接 成功-----开机"
);
}
@OnClick
({
R
.
id
.
settings
})
public
void
settingsClick
(){
Intent
intent
=
new
Intent
(
SetTimeActivity
.
this
,
SelectTimerActivity
.
class
);
startActivity
(
intent
);
}
@OnClick
({
R
.
id
.
shop
})
public
void
shopClick
(){
Uri
uri
=
Uri
.
parse
(
"http://stoplightgolight.com/product/stoplight-golight/"
);
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uri
);
startActivity
(
intent
);
}
@OnClick
({
R
.
id
.
rate
})
public
void
rateClick
(){
Uri
uri
=
Uri
.
parse
(
"http://stoplightgolight.com/product/stoplight-golight/"
);
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uri
);
startActivity
(
intent
);
}
@OnClick
({
R
.
id
.
back_but
,
R
.
id
.
start_but
})
public
void
onViewClicked
(
View
view
)
{
switch
(
view
.
getId
())
{
...
...
app/src/main/res/layout/activity_set_time.xml
View file @
5f599c37
...
...
@@ -246,6 +246,7 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
...
...
@@ -254,20 +255,22 @@
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/shop"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/dp_80"
android:src=
"@mipmap/shopbutton"
/>
<ImageView
android:id=
"@+id/settings"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/dp_80"
android:layout_marginLeft=
"@dimen/dp_8"
android:layout_marginRight=
"@dimen/dp_8"
android:src=
"@mipmap/settingsbutton"
/>
<ImageView
android:id=
"@+id/rate"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/dp_80"
android:src=
"@mipmap/ratebutton"
/>
...
...
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