Skip to content

Commit

Permalink
#5 [UI] : make activity_on_boarding
Browse files Browse the repository at this point in the history
  • Loading branch information
MinwooP committed Dec 16, 2021
1 parent 7f77ca1 commit 2caad6f
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 2 deletions.
2 changes: 2 additions & 0 deletions week1/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions week1/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ dependencies {
// Glide
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'

// Navigation Component
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'

implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
Expand Down
5 changes: 4 additions & 1 deletion week1/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.week1">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
Expand All @@ -11,6 +11,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Week1">
<activity
android:name=".ui.OnBoardingActivity"
android:exported="false" />
<activity
android:name=".ui.SignUpActivity"
android:exported="true" />
Expand Down
12 changes: 12 additions & 0 deletions week1/app/src/main/java/com/example/week1/ui/OnBoardingActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.example.week1.ui

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.week1.R

class OnBoardingActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_on_boarding)
}
}
7 changes: 7 additions & 0 deletions week1/app/src/main/res/drawable/line_onboarding.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#A8A8A8" />
</shape>

33 changes: 33 additions & 0 deletions week1/app/src/main/res/layout/activity_on_boarding.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.OnBoardingActivity">


<ImageView
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_marginTop="30dp"
android:elevation="20dp"
android:src="@drawable/line_onboarding"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_on_boarding" />

<TextView
android:id="@+id/tv_on_boarding"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:fontFamily="@font/noto_sans_kr"
android:text="온보딩"
android:textFontWeight="700"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


</androidx.constraintlayout.widget.ConstraintLayout>
6 changes: 6 additions & 0 deletions week1/app/src/main/res/navigation/nav_onboarding.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nav_onboarding">

</navigation>
2 changes: 1 addition & 1 deletion week1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 2caad6f

Please sign in to comment.