GyuhoLee

[Add] UI(first activity)

......@@ -12,7 +12,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ExerciseActivity">
<activity android:name=".FirstActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
......@@ -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);
......
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);
}
}
<?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>
<?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
......@@ -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>
......
......@@ -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
......
#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
......