-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
140 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
app/src/main/java/com/release/keyneez/presentation/signup/SignupActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.release.keyneez.presentation.signup | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
import androidx.activity.result.ActivityResultLauncher | ||
import androidx.activity.viewModels | ||
import com.release.keyneez.R | ||
import com.release.keyneez.databinding.ActivitySignupBinding | ||
import com.release.keyneez.util.binding.BindingActivity | ||
|
||
class SignupActivity : BindingActivity<ActivitySignupBinding>(R.layout.activity_signup) { | ||
private val viewModel: SignupViewModel by viewModels() | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding.viewModel = viewModel | ||
|
||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/release/keyneez/presentation/signup/SignupViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.release.keyneez.presentation.signup | ||
|
||
import androidx.lifecycle.MutableLiveData | ||
import androidx.lifecycle.ViewModel | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
|
||
@HiltViewModel | ||
class SignupViewModel : ViewModel() { | ||
val nickname = MutableLiveData("") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_selected="false"> | ||
<shape android:shape="rectangle"> | ||
<solid android:color="@color/gray400" /> | ||
<corners android:radius="14dp" /> | ||
</shape> | ||
</item> | ||
<item android:state_selected="true"> | ||
<shape android:shape="rectangle"> | ||
<solid android:color="@color/gray900" /> | ||
<corners android:radius="14dp" /> | ||
</shape> | ||
</item> | ||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<data> | ||
|
||
<variable | ||
name="viewModel" | ||
type="com.release.keyneez.presentation.signup.signupViewModel" /> | ||
|
||
<import type="android.view.View" /> | ||
|
||
</data> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:id="@+id/layout_signup" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<ImageView | ||
android:id="@+id/btn_signup_back" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:src="@drawable/ic_back" | ||
android:layout_marginStart="24dp" | ||
android:layout_marginTop="72dp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"/> | ||
|
||
<TextView | ||
android:id="@+id/tv_signup_title" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="사용하실 닉네임을\n입력해주세요!" | ||
style="semi" | ||
android:layout_marginTop="30dp" | ||
android:layout_marginHorizontal="25dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/btn_signup_back"/> | ||
|
||
<EditText | ||
android:id="@+id/et_signup_nickname" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="닉네임 입력하기" | ||
android:drawableRight="@drawable/ic_signup_check" | ||
android:paddingVertical="15dp" | ||
android:layout_marginHorizontal="27dp" | ||
android:layout_marginTop="30dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/tv_signup_title"/> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:letterSpacing="-0.045" | ||
android:text="2~6자로 한글, 영문, 숫자를 조합해 사용할 수 있어요." | ||
android:layout_marginHorizontal="27dp" | ||
android:layout_marginTop="12dp" | ||
app:layout_constraintTop_toBottomOf="@id/et_signup_nickname" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
|
||
<TextView | ||
android:id="@+id/tv_signup_next" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="22dp" | ||
android:layout_marginBottom="24dp" | ||
android:background="@drawable/sel_signup_next_btn" | ||
|
||
android:text="다음" | ||
android:gravity="center" | ||
style="@style/TextAppearance.Keyneez.SubtitleMedium18" | ||
android:textColor="@color/gray050" | ||
android:paddingVertical="17dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |