Showing
11 changed files
with
100 additions
and
5 deletions
... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
12 | android:roundIcon="@mipmap/ic_launcher_round" | 12 | android:roundIcon="@mipmap/ic_launcher_round" |
13 | android:supportsRtl="true" | 13 | android:supportsRtl="true" |
14 | android:theme="@style/AppTheme"> | 14 | android:theme="@style/AppTheme"> |
15 | - <activity android:name=".ExerciseActivity"> | 15 | + <activity android:name=".FirstActivity"> |
16 | <intent-filter> | 16 | <intent-filter> |
17 | <action android:name="android.intent.action.MAIN" /> | 17 | <action android:name="android.intent.action.MAIN" /> |
18 | 18 | ... | ... |
... | @@ -55,7 +55,7 @@ public class ExerciseActivity extends AppCompatActivity implements SurfaceHolder | ... | @@ -55,7 +55,7 @@ public class ExerciseActivity extends AppCompatActivity implements SurfaceHolder |
55 | @Override | 55 | @Override |
56 | protected void onCreate(Bundle savedInstanceState) { | 56 | protected void onCreate(Bundle savedInstanceState) { |
57 | super.onCreate(savedInstanceState); | 57 | super.onCreate(savedInstanceState); |
58 | - setContentView(R.layout.activity_main); | 58 | + setContentView(R.layout.activity_exercise); |
59 | 59 | ||
60 | surfaceView = findViewById(R.id.surfaceView); | 60 | surfaceView = findViewById(R.id.surfaceView); |
61 | surfaceView.getHolder().addCallback(this); | 61 | surfaceView.getHolder().addCallback(this); | ... | ... |
1 | +package com.khuhacker.pocketgym; | ||
2 | + | ||
3 | +import androidx.appcompat.app.AppCompatActivity; | ||
4 | + | ||
5 | +import android.os.Bundle; | ||
6 | + | ||
7 | +public class FirstActivity extends AppCompatActivity { | ||
8 | + | ||
9 | + @Override | ||
10 | + protected void onCreate(Bundle savedInstanceState) { | ||
11 | + super.onCreate(savedInstanceState); | ||
12 | + setContentView(R.layout.activity_first); | ||
13 | + } | ||
14 | +} |
2.83 KB
5.11 KB
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | ||
3 | + | ||
4 | + <item | ||
5 | + android:bottom="5dp" | ||
6 | + android:left="5dp" | ||
7 | + android:right="5dp" | ||
8 | + android:top="5dp"> | ||
9 | + <shape android:shape="rectangle" > | ||
10 | + <stroke | ||
11 | + android:width="5dp" | ||
12 | + android:color="@color/pacific" /> | ||
13 | + <corners | ||
14 | + android:radius="40dp"/> | ||
15 | + <solid android:color="@color/linen" /> | ||
16 | + </shape> | ||
17 | + </item> | ||
18 | + | ||
19 | +</layer-list> |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="match_parent" | ||
5 | + android:background="#FFFFFF" | ||
6 | + android:gravity="center" | ||
7 | + android:orientation="vertical"> | ||
8 | + | ||
9 | + <LinearLayout | ||
10 | + android:layout_width="180dp" | ||
11 | + android:layout_height="180dp" | ||
12 | + android:layout_gravity="center" | ||
13 | + android:background="@drawable/stroke_main" | ||
14 | + android:elevation="40dp" | ||
15 | + android:orientation="vertical" | ||
16 | + android:padding="15dp" | ||
17 | + android:layout_margin="30dp"> | ||
18 | + | ||
19 | + <ImageView | ||
20 | + android:layout_width="100dp" | ||
21 | + android:layout_height="100dp" | ||
22 | + android:layout_gravity="center" | ||
23 | + android:src="@drawable/exercise_icon" /> | ||
24 | + | ||
25 | + <TextView | ||
26 | + android:layout_width="wrap_content" | ||
27 | + android:layout_height="wrap_content" | ||
28 | + android:layout_gravity="center" | ||
29 | + android:text="운동하기" | ||
30 | + android:textColor="@color/pacific" | ||
31 | + android:textSize="80px" | ||
32 | + android:textStyle="bold"/> | ||
33 | + </LinearLayout> | ||
34 | + | ||
35 | + <LinearLayout | ||
36 | + android:layout_width="180dp" | ||
37 | + android:layout_height="180dp" | ||
38 | + android:layout_gravity="center" | ||
39 | + android:background="@drawable/stroke_main" | ||
40 | + android:elevation="40dp" | ||
41 | + android:orientation="vertical" | ||
42 | + android:padding="15dp" | ||
43 | + android:layout_margin="30dp"> | ||
44 | + | ||
45 | + <ImageView | ||
46 | + android:layout_width="70dp" | ||
47 | + android:layout_height="100dp" | ||
48 | + android:layout_gravity="center" | ||
49 | + android:src="@drawable/report_icon" /> | ||
50 | + | ||
51 | + <TextView | ||
52 | + android:layout_width="wrap_content" | ||
53 | + android:layout_height="wrap_content" | ||
54 | + android:layout_gravity="center" | ||
55 | + android:text="기록보기" | ||
56 | + android:textColor="@color/pacific" | ||
57 | + android:textSize="80px" | ||
58 | + android:textStyle="bold"/> | ||
59 | + </LinearLayout> | ||
60 | +</LinearLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -3,4 +3,6 @@ | ... | @@ -3,4 +3,6 @@ |
3 | <color name="colorPrimary">#008577</color> | 3 | <color name="colorPrimary">#008577</color> |
4 | <color name="colorPrimaryDark">#00574B</color> | 4 | <color name="colorPrimaryDark">#00574B</color> |
5 | <color name="colorAccent">#D81B60</color> | 5 | <color name="colorAccent">#D81B60</color> |
6 | + <color name="pacific">#3976A3</color> | ||
7 | + <color name="linen">#E9E6DD</color> | ||
6 | </resources> | 8 | </resources> | ... | ... |
... | @@ -8,7 +8,7 @@ buildscript { | ... | @@ -8,7 +8,7 @@ buildscript { |
8 | 8 | ||
9 | } | 9 | } |
10 | dependencies { | 10 | dependencies { |
11 | - classpath 'com.android.tools.build:gradle:3.5.1' | 11 | + classpath 'com.android.tools.build:gradle:3.6.3' |
12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
13 | 13 | ||
14 | // NOTE: Do not place your application dependencies here; they belong | 14 | // NOTE: Do not place your application dependencies here; they belong | ... | ... |
1 | -#Thu May 21 18:22:10 KST 2020 | 1 | +#Sat Jun 13 23:16:44 KST 2020 |
2 | distributionBase=GRADLE_USER_HOME | 2 | distributionBase=GRADLE_USER_HOME |
3 | distributionPath=wrapper/dists | 3 | distributionPath=wrapper/dists |
4 | zipStoreBase=GRADLE_USER_HOME | 4 | zipStoreBase=GRADLE_USER_HOME |
5 | zipStorePath=wrapper/dists | 5 | zipStorePath=wrapper/dists |
6 | -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip | 6 | +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip | ... | ... |
-
Please register or login to post a comment