Skip to content

Commit

Permalink
[#22] BorderEditText 스타일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yuni-ju committed Apr 25, 2022
1 parent 743894a commit dbf47ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="3dp"/>
<corners android:radius="4dp"/>
<stroke
android:color="#DCDDDF"
android:color="@color/edittext_default_stroke"
android:width="1dp"/>
<solid android:color="@color/main_white"/>
<padding
android:top="15dp"
android:bottom="15dp"
android:left="21dp"
android:right="21dp"/>
android:left="15dp"
android:right="15dp"/>
</shape>
5 changes: 2 additions & 3 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<color name="main_yellow">#FFDD64</color>
<color name="main_light_blue">#EEF4FF</color>

<!-- extra colors -->
<color name="button_enable_false">#C4C4C4</color>

<!-- edittext colors -->
<color name="edittext_default_stroke">#D4D4D4</color>
</resources>
6 changes: 6 additions & 0 deletions app/src/main/res/values/styles_edittext.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="BorderEditText" parent="Widget.AppCompat.EditText">
<item name="android:background">@drawable/shape_border_edittext</item>
</style>
</resources>
1 change: 0 additions & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
<item name="android:colorBackground">@color/main_white</item>
<item name="android:editTextBackground">@drawable/shape_default_edittext</item>
</style>
</resources>

0 comments on commit dbf47ac

Please sign in to comment.