-
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.
[#22] RectangleButton, RoundButton Style 적용
- Loading branch information
Showing
9 changed files
with
54 additions
and
40 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
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
9 changes: 7 additions & 2 deletions
9
...n/res/drawable/shape_rectangle_button.xml → ...es/drawable/selector_rectangle_button.xml
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
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_pressed="true" android:color="@color/main_white" /> | ||
<item android:state_enabled="false" android:color="@color/button_text_enable_false"/> | ||
<item android:color="@color/main_white" /> | ||
</selector> |
8 changes: 7 additions & 1 deletion
8
.../main/res/drawable/shape_round_botton.xml → ...in/res/drawable/selector_round_button.xml
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
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_pressed="true" android:color="@color/main_white" /> | ||
<item android:state_enabled="false" android:color="@color/button_text_enable_false"/> | ||
<item android:color="@color/main_white" /> | ||
</selector> |
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="RectangleButtonTheme"> | ||
<item name="buttonStyle">@style/RectangleButton</item> | ||
</style> | ||
<style name="RectangleButton" parent="Widget.AppCompat.Button"> | ||
<item name="android:background">@drawable/selector_rectangle_button</item> | ||
<item name="android:textSize">21dp</item> | ||
<item name="android:textColor">@drawable/selector_rectangle_button_text</item> | ||
</style> | ||
|
||
<style name="RoundButtonTheme"> | ||
<item name="buttonStyle">@style/RoundButton</item> | ||
</style> | ||
<style name="RoundButton" parent="Widget.AppCompat.Button"> | ||
<item name="android:background">@drawable/selector_round_button</item> | ||
<item name="android:textSize">21dp</item> | ||
<item name="android:textColor">@drawable/selector_round_button_text</item> | ||
</style> | ||
</resources> |