Skip to content

Commit

Permalink
저장된 버튼 취소 레이아웃 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kichan05 committed Feb 12, 2022
1 parent 386a0a2 commit 447d1b7
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 27 deletions.
5 changes: 4 additions & 1 deletion .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 app/src/main/res/drawable/default_button_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?attr/buttonBackgroundColor"/>
<corners android:radius="@dimen/app_radius"/>
</shape>
6 changes: 6 additions & 0 deletions app/src/main/res/drawable/default_button_round_stroke.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/gray1"/>
<stroke android:color="@color/EDCAN" android:width="2dp"/>
<corners android:radius="@dimen/app_radius"/>
</shape>
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_arrow_left.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
android:viewportHeight="35">
<path
android:pathData="M22.4729,24.1938L15.7938,17.5L22.4729,10.8062L20.4167,8.75L11.6667,17.5L20.4167,26.25L22.4729,24.1938Z"
android:fillColor="#000000"/>
android:fillColor="?attr/textColor"/>
</vector>
File renamed without changes.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_group_chat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
android:text="@={viewModel.content}"
android:textSize="20sp"

android:background="@drawable/ic_square_round"
android:background="@drawable/default_rect_round"
android:backgroundTint="@color/gray3"

android:paddingHorizontal="4dp"
Expand Down
13 changes: 2 additions & 11 deletions app/src/main/res/layout/activity_qna_slider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@
app:layout_constraintEnd_toEndOf="parent"
/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"

android:text="@{viewModel.isCurrentQnASave + ``}"

app:layout_constraintBottom_toTopOf="@id/txt_qna_msg"
app:layout_constraintStart_toStartOf="@id/guide_qna_line1"
app:layout_constraintEnd_toEndOf="@id/guide_qna_line2"
/>

<TextView
android:id="@+id/txt_qna_msg"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -102,6 +91,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"

style="@style/reversedButtonStyle"

android:layout_weight="1"

android:text="저장 취소하기"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_user_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:layout_width="0dp"
android:layout_height="0dp"

android:src="@drawable/ic_user_data_img"
android:src="@drawable/img_user_data"

android:layout_marginVertical="20dp"

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/dialog_save_question.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"

style="@style/reversedButtonStyle"

android:text="저장 삭제하기"

android:layout_marginVertical="8dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/item_i_chat_recycleritem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
android:textColor="@color/white"
android:textFontWeight="400"

android:background="@drawable/ic_square_round"
android:background="@drawable/default_rect_round"
android:backgroundTint="@color/EDCAN"

android:paddingVertical="8dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/item_you_chat_recycleritem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
android:textSize="14sp"
android:textFontWeight="400"

android:background="@drawable/ic_square_round"
android:background="@drawable/default_rect_round"
android:backgroundTint="@color/gray2"

android:paddingVertical="8dp"
Expand Down
8 changes: 6 additions & 2 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.HowToSunrin" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/EDCAN</item>
<item name="colorPrimaryVariant">@color/EDCAN</item>
<item name="colorOnPrimary">@color/white</item>
Expand All @@ -9,11 +10,14 @@

<item name="buttonTextColor">@color/white</item>
<item name="buttonBackgroundColor">@color/EDCAN</item>
<item name="buttonBorderColor">@color/EDCAN</item>

<item name="reversedButtonFontColor">@color/EDCAN</item>

<item name="editTextBackground">@color/gray1</item>
<item name="editTextTextColor">@color/black</item>

<item name="toolBarBackGroundColor">@color/white</item>
<item name="toolBarBackGroundColor">@color/black</item>

<!-- Secondary brand color. -->
<item name="colorSecondary">@color/EDCAN</item>
Expand All @@ -25,7 +29,7 @@

<!-- Customize your theme here. -->
<item name="android:textViewStyle">@style/customTextStyle</item>
<item name="android:buttonStyle">@style/customButtonStyle</item>
<item name="android:buttonStyle">@style/defaultButtonStyle</item>
<item name="editTextStyle">@style/customEditTextStyle</item>
<item name="toolbarStyle">@style/customToolbarStyle</item>
</style>
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

<attr name="buttonTextColor" format="color"/>
<attr name="buttonBackgroundColor" format="color"/>
<attr name="buttonBorderColor" format="color"/>

<attr name="reversedButtonFontColor" format="color"/>

<attr name="editTextBackGroundColor" type="color"/>
<attr name="editTextTextColor" type="color"/>


<attr name="toolBarBackGroundColor" format="color"/>
</resources>
24 changes: 17 additions & 7 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.HowToSunrin" parent="Theme.AppCompat.Light.NoActionBar">
<style name="Theme.HowToSunrin" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/EDCAN</item>
<item name="colorPrimaryVariant">@color/EDCAN</item>
Expand All @@ -10,6 +10,9 @@

<item name="buttonTextColor">@color/white</item>
<item name="buttonBackgroundColor">@color/EDCAN</item>
<item name="buttonBorderColor">@color/EDCAN</item>

<item name="reversedButtonFontColor">@color/EDCAN</item>

<item name="editTextBackground">@color/gray1</item>
<item name="editTextTextColor">@color/black</item>
Expand All @@ -26,7 +29,7 @@

<!-- Customize your theme here. -->
<item name="android:textViewStyle">@style/customTextStyle</item>
<item name="android:buttonStyle">@style/customButtonStyle</item>
<item name="android:buttonStyle">@style/defaultButtonStyle</item>
<item name="editTextStyle">@style/customEditTextStyle</item>
<item name="toolbarStyle">@style/customToolbarStyle</item>
</style>
Expand All @@ -36,21 +39,28 @@
<item name="android:fontFamily">@font/font</item>
</style>

<style name="customButtonStyle" parent="Widget.AppCompat.Button">
<style name="customButtonTheme" parent="Widget.AppCompat.Button">
<item name="android:textSize">16sp</item>
<item name="android:textColor">?attr/buttonTextColor</item>
<item name="android:textFontWeight">800</item>
<item name="android:fontFamily">@font/font</item>

<item name="android:background">@drawable/ic_square_round</item>
<item name="android:backgroundTint">?attr/buttonBackgroundColor</item>

<item name="android:textAllCaps">false</item>
</style>

<style name="defaultButtonStyle" parent="customButtonTheme">
<item name="android:background">@drawable/default_button_round</item>
</style>

<style name="reversedButtonStyle" parent="customButtonTheme">
<item name="android:background">@drawable/default_button_round_stroke</item>

<item name="android:textColor">?attr/reversedButtonFontColor</item>
</style>

<style name="customEditTextStyle" parent="Widget.AppCompat.EditText">
<item name="android:textColor">?attr/editTextTextColor</item>
<item name="android:background">@drawable/ic_square_round</item>
<item name="android:background">@drawable/default_rect_round</item>
<item name="backgroundTint">?attr/editTextBackground</item>
</style>

Expand Down

0 comments on commit 447d1b7

Please sign in to comment.