Toggle navigation
Toggle navigation
This project
Loading...
Sign in
cse437_e
/
smartdoorlock-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sunnnl
2020-11-11 20:14:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d0df0373a5a6f8664615ee9c973c94026ee48180
d0df0373
1 parent
7a83c47f
스플래시 뷰 visibility 수정
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
app/src/main/java/com/sunnni/smartdoorlock/ui/MainActivity.java
app/src/main/res/layout/activity_splash.xml
app/src/main/java/com/sunnni/smartdoorlock/ui/MainActivity.java
View file @
d0df037
...
...
@@ -26,6 +26,7 @@ import java.util.TimerTask;
public
class
MainActivity
extends
AppCompatActivity
{
private
Button
btnSetting
;
private
Button
mBtnTagControl
;
private
ImageView
mBtnTagControlBackground
;
private
TextView
mTvTagButtonStatus
,
mTvTagButtonStatusDetail
;
...
...
@@ -42,6 +43,14 @@ public class MainActivity extends AppCompatActivity {
init
();
timer
=
new
TagTimer
(
5
*
1000
,
1000
,
5
);
btnSetting
=
(
Button
)
findViewById
(
R
.
id
.
btn_setting
);
btnSetting
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
startActivity
(
new
Intent
(
MainActivity
.
this
,
SettingActivity
.
class
));
}
});
}
// 툴바 설정
...
...
app/src/main/res/layout/activity_splash.xml
View file @
d0df037
...
...
@@ -7,15 +7,6 @@
android:background=
"@color/colorBackground"
tools:context=
".ui.SplashActivity"
>
<ImageView
android:id=
"@+id/img_test"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/ic_launcher_background"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
android:visibility=
"invisible"
/>
<LinearLayout
android:id=
"@+id/ll_logo"
android:layout_width=
"wrap_content"
...
...
@@ -76,11 +67,14 @@
android:id=
"@+id/cl_enter"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
app:layout_constraintWidth_default=
"percent"
app:layout_constraintWidth_percent=
"0.12"
app:layout_constraintDimensionRatio=
"52:36"
android:layout_marginStart=
"10dp"
android:visibility=
"invisible"
app:layout_constraintStart_to
StartOf=
"parent
"
app:layout_constraintEnd_toEndOf=
"
parent
"
app:layout_constraintTop_toTopOf=
"
parent
"
>
app:layout_constraintStart_to
EndOf=
"@+id/til_super_key
"
app:layout_constraintEnd_toEndOf=
"
@+id/ll_logo
"
app:layout_constraintTop_toTopOf=
"
@+id/til_super_key
"
>
<Button
android:id=
"@+id/btn_enter"
...
...
Please
register
or
login
to post a comment