Skip to content

Commit

Permalink
adding Compass function
Browse files Browse the repository at this point in the history
  • Loading branch information
KimYoungBean committed Jan 17, 2018
1 parent a5a54a7 commit 5013800
Show file tree
Hide file tree
Showing 19 changed files with 479 additions and 41 deletions.
344 changes: 311 additions & 33 deletions app/src/main/java/com/example/kimyoungbin/stepcounter/MainActivity.java

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions app/src/main/java/com/example/kimyoungbin/stepcounter/ViewEx.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.example.kimyoungbin.stepcounter;

/**
* Created by kimyoungbin on 2018. 1. 14..
*/

class ViewEx {
public ViewEx(MainActivity mainActivity) {
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images": [
{
"filename": "ic_navigation.png",
"idiom": "universal",
"scale": "1x"
},
{
"filename": "ic_navigation_2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"filename": "ic_navigation_3x.png",
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
137 changes: 132 additions & 5 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,141 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="total : "/>
<TextView
android:id="@+id/tv_count"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.8"
android:textSize="30sp"/>

android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="북 : "/>
<TextView
android:id="@+id/tv_n"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="북동 : "/>
<TextView
android:id="@+id/tv_ne"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="동 : "/>
<TextView
android:id="@+id/tv_e"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="남동 : "/>
<TextView
android:id="@+id/tv_se"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="남 : "/>
<TextView
android:id="@+id/tv_s"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="남서 : "/>
<TextView
android:id="@+id/tv_sw"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="서 : "/>
<TextView
android:id="@+id/tv_w"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="30sp"
android:text="북서 : "/>
<TextView
android:id="@+id/tv_nw"
android:layout_width="match_parent"
android:layout_height="40dp"
android:textSize="30sp"
android:text="0"/>
</LinearLayout>
<Button
android:id="@+id/a_start"
android:layout_width="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.android.tools.build:gradle:3.0.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Nov 29 19:31:03 KST 2017
#Sat Jan 06 22:36:32 KST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

0 comments on commit 5013800

Please sign in to comment.