Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
LSR_Project1
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
GyuhoLee
2020-06-13 23:20:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
980d408ed92963daf31a4991b660f7d3104c3491
980d408e
1 parent
671273f6
[Add] UI(first activity)
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
100 additions
and
5 deletions
source/android/app/src/main/AndroidManifest.xml
source/android/app/src/main/java/com/khuhacker/pocketgym/ExerciseActivity.java
source/android/app/src/main/java/com/khuhacker/pocketgym/FirstActivity.java
source/android/app/src/main/res/drawable/exercise_icon.png
source/android/app/src/main/res/drawable/report_icon.png
source/android/app/src/main/res/drawable/stroke_main.xml
source/android/app/src/main/res/layout/activity_main.xml → source/android/app/src/main/res/layout/activity_exercise.xml
source/android/app/src/main/res/layout/activity_first.xml
source/android/app/src/main/res/values/colors.xml
source/android/build.gradle
source/android/gradle/wrapper/gradle-wrapper.properties
source/android/app/src/main/AndroidManifest.xml
View file @
980d408
...
...
@@ -12,7 +12,7 @@
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme"
>
<activity
android:name=
".
Exercise
Activity"
>
<activity
android:name=
".
First
Activity"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
source/android/app/src/main/java/com/khuhacker/pocketgym/ExerciseActivity.java
View file @
980d408
...
...
@@ -55,7 +55,7 @@ public class ExerciseActivity extends AppCompatActivity implements SurfaceHolder
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_
main
);
setContentView
(
R
.
layout
.
activity_
exercise
);
surfaceView
=
findViewById
(
R
.
id
.
surfaceView
);
surfaceView
.
getHolder
().
addCallback
(
this
);
...
...
source/android/app/src/main/java/com/khuhacker/pocketgym/FirstActivity.java
0 → 100644
View file @
980d408
package
com
.
khuhacker
.
pocketgym
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.os.Bundle
;
public
class
FirstActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_first
);
}
}
source/android/app/src/main/res/drawable/exercise_icon.png
0 → 100644
View file @
980d408
2.83 KB
source/android/app/src/main/res/drawable/report_icon.png
0 → 100644
View file @
980d408
5.11 KB
source/android/app/src/main/res/drawable/stroke_main.xml
0 → 100644
View file @
980d408
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:bottom=
"5dp"
android:left=
"5dp"
android:right=
"5dp"
android:top=
"5dp"
>
<shape
android:shape=
"rectangle"
>
<stroke
android:width=
"5dp"
android:color=
"@color/pacific"
/>
<corners
android:radius=
"40dp"
/>
<solid
android:color=
"@color/linen"
/>
</shape>
</item>
</layer-list>
source/android/app/src/main/res/layout/activity_
main
.xml
→
source/android/app/src/main/res/layout/activity_
exercise
.xml
View file @
980d408
File moved
source/android/app/src/main/res/layout/activity_first.xml
0 → 100644
View file @
980d408
<?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:background=
"#FFFFFF"
android:gravity=
"center"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"180dp"
android:layout_height=
"180dp"
android:layout_gravity=
"center"
android:background=
"@drawable/stroke_main"
android:elevation=
"40dp"
android:orientation=
"vertical"
android:padding=
"15dp"
android:layout_margin=
"30dp"
>
<ImageView
android:layout_width=
"100dp"
android:layout_height=
"100dp"
android:layout_gravity=
"center"
android:src=
"@drawable/exercise_icon"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"운동하기"
android:textColor=
"@color/pacific"
android:textSize=
"80px"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"180dp"
android:layout_height=
"180dp"
android:layout_gravity=
"center"
android:background=
"@drawable/stroke_main"
android:elevation=
"40dp"
android:orientation=
"vertical"
android:padding=
"15dp"
android:layout_margin=
"30dp"
>
<ImageView
android:layout_width=
"70dp"
android:layout_height=
"100dp"
android:layout_gravity=
"center"
android:src=
"@drawable/report_icon"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"기록보기"
android:textColor=
"@color/pacific"
android:textSize=
"80px"
android:textStyle=
"bold"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
source/android/app/src/main/res/values/colors.xml
View file @
980d408
...
...
@@ -3,4 +3,6 @@
<color
name=
"colorPrimary"
>
#008577
</color>
<color
name=
"colorPrimaryDark"
>
#00574B
</color>
<color
name=
"colorAccent"
>
#D81B60
</color>
<color
name=
"pacific"
>
#3976A3
</color>
<color
name=
"linen"
>
#E9E6DD
</color>
</resources>
...
...
source/android/build.gradle
View file @
980d408
...
...
@@ -8,7 +8,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
5.1
'
classpath
'com.android.tools.build:gradle:3.
6.3
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
...
...
source/android/gradle/wrapper/gradle-wrapper.properties
View file @
980d408
#
Thu May 21 18:22:10
KST 2020
#
Sat Jun 13 23:16:44
KST 2020
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-5.
4.1
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-5.
6.4
-all.zip
...
...
Please
register
or
login
to post a comment