-
Notifications
You must be signed in to change notification settings - Fork 0
4주차 실습 Pull Request #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| <?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" | ||
| android:id="@+id/main" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:padding="32dp" | ||
| android:background="?android:attr/windowBackground"> | ||
|
|
||
|
|
||
| <TextView | ||
| android:id="@+id/login_title" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="@string/login_title" | ||
| style="@style/TEXT" | ||
| android:textSize="24sp" | ||
| app:layout_constraintTop_toTopOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="24dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| style="@style/EditTextStyle" | ||
| android:id="@+id/user_id" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:hint="@string/hint_user_id" | ||
| android:inputType="text" | ||
| android:importantForAutofill="no" | ||
| app:layout_constraintTop_toBottomOf="@id/login_title" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="24dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| style="@style/EditTextStyle" | ||
| android:id="@+id/user_password" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:hint="@string/hint_user_password" | ||
| android:inputType="textPassword" | ||
| android:importantForAutofill="no" | ||
| app:layout_constraintTop_toBottomOf="@id/user_id" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="16dp"/> | ||
|
|
||
|
|
||
| <Button | ||
| style="@style/loginButton" | ||
| android:id="@+id/btn_login" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:text="@string/btn_login" | ||
| app:layout_constraintTop_toBottomOf="@id/user_password" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="24dp"/> | ||
|
|
||
|
|
||
| </androidx.constraintlayout.widget.ConstraintLayout> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| <?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:orientation="vertical" | ||
| android:padding="16dp"> | ||
|
|
||
|
|
||
| <TextView | ||
| android:id="@+id/login_title" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="로그인" | ||
| android:textSize="24sp" | ||
| android:layout_gravity="center_horizontal" | ||
| android:layout_marginBottom="24dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| android:id="@+id/user_id" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:hint="아이디" | ||
| android:inputType="text" | ||
| android:layout_marginBottom="16dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| android:id="@+id/user_password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:hint="비밀번호" | ||
| android:inputType="textPassword" | ||
| android:layout_marginBottom="24dp"/> | ||
|
|
||
|
|
||
| <Button | ||
| android:id="@+id/btn_login" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginTop="16dp" | ||
| android:text="로그인"/> | ||
|
|
||
|
|
||
| </LinearLayout> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:padding="16dp"> | ||
|
|
||
|
|
||
| <TextView | ||
| android:id="@+id/login_title" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_centerHorizontal="true" | ||
| android:layout_marginTop="24dp" | ||
| android:text="로그인" | ||
| android:textSize="24sp" /> | ||
|
|
||
|
|
||
| <EditText | ||
| android:id="@+id/user_id" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/login_title" | ||
| android:layout_marginTop="24dp" | ||
| android:hint="아이디" | ||
| android:inputType="text" | ||
| android:importantForAutofill="no" /> | ||
|
|
||
|
|
||
| <EditText | ||
| android:id="@+id/user_password" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/user_id" | ||
| android:layout_marginTop="16dp" | ||
| android:hint="비밀번호" | ||
| android:inputType="textPassword" | ||
| android:importantForAutofill="no" /> | ||
|
|
||
|
|
||
| <Button | ||
| android:id="@+id/btn_login" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/user_password" | ||
| android:layout_marginTop="24dp" | ||
| android:text="로그인" /> | ||
|
|
||
|
|
||
| </RelativeLayout> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| <?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" | ||
| android:id="@+id/main" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:padding="16dp" | ||
| android:background="?android:attr/windowBackground"> | ||
|
|
||
|
|
||
| <TextView | ||
| android:id="@+id/login_title" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="@string/login_title" | ||
| style="@style/TEXT" | ||
| android:textSize="24sp" | ||
| app:layout_constraintTop_toTopOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="24dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| style="@style/EditTextStyle" | ||
| android:id="@+id/user_id" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:hint="@string/hint_user_id" | ||
| android:inputType="text" | ||
| android:importantForAutofill="no" | ||
| app:layout_constraintTop_toBottomOf="@id/login_title" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="24dp"/> | ||
|
|
||
|
|
||
| <EditText | ||
| style="@style/EditTextStyle" | ||
| android:id="@+id/user_password" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:hint="@string/hint_user_password" | ||
| android:inputType="textPassword" | ||
| android:importantForAutofill="no" | ||
| app:layout_constraintTop_toBottomOf="@id/user_id" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="16dp"/> | ||
|
|
||
|
|
||
| <Button | ||
| style="@style/loginButton" | ||
| android:id="@+id/btn_login" | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:text="@string/btn_login" | ||
| app:layout_constraintTop_toBottomOf="@id/user_password" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| android:layout_marginTop="24dp"/> | ||
|
|
||
|
|
||
| </androidx.constraintlayout.widget.ConstraintLayout> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <resources> | ||
| <string name="app_name">assignment_week_02</string> | ||
| <string name="login_title">Login</string> | ||
| <string name="hint_user_id">Please enter your ID</string> | ||
| <string name="hint_user_password">Please enter your password</string> | ||
| <string name="btn_login">Login</string> | ||
| </resources> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <resources> | ||
| <style name="Base.Theme.Assignment_week_02" parent="Theme.Material3.DayNight.NoActionBar"> | ||
| <item name="android:windowBackground">@color/dark_background</item> | ||
| <item name="android:textColor">@color/dark_text_color</item> | ||
| </style> | ||
|
|
||
| <style name="Theme.Assignment_week_02" parent="Base.Theme.Assignment_week_02" /> | ||
|
|
||
| <!-- TextView 색상 --> | ||
| <style name="TEXT"> | ||
| <item name="android:textColor">@color/dark_text_color</item> | ||
| </style> | ||
|
|
||
| <!-- EditText 색상 --> | ||
| <style name="EditTextStyle"> | ||
| <item name="android:backgroundTint">@color/dark_edit_text_background</item> | ||
| <item name="android:textColorHint">@color/dark_hint_text_color</item> | ||
| </style> | ||
|
|
||
| <!-- Button 색상 --> | ||
| <style name="loginButton"> | ||
| <item name="android:backgroundTint">@color/dark_button_background</item> | ||
| <item name="android:textColor">@color/dark_button_text_color</item> | ||
| </style> | ||
| </resources> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string resource 활용해주세요!