Skip to content

Commit

Permalink
Correção na aplicação do estilo do erro na view customizada
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Almeida committed Jun 17, 2016
2 parents b43aa28 + b23af0c commit e01bcdb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 38 deletions.
2 changes: 1 addition & 1 deletion formvalidator/src/main/res/layout/tv_error.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tv_error"
style="@style/ClassTheme.Error"
style="@style/TextView.Error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

16 changes: 0 additions & 16 deletions formvalidator/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Base Grey -->
<color name="base_color_grey_100">#9ca096</color>
<color name="base_color_grey_200">#888c83</color>
<color name="base_color_grey_300">#757870</color>
<color name="base_color_grey_400">#61645e</color>
<color name="base_color_grey_500">#4e504b</color>

<!-- Base Red -->
<color name="base_color_red_100">#ef958b</color>
<color name="base_color_red_200">#e96c5e</color>
Expand All @@ -17,13 +10,4 @@
<color name="base_color_red_600">#dd4b39</color>
<color name="base_color_red_700">#c64333</color>

<!--
================================================================================================
TextView
================================================================================================
-->

<!-- Label -->
<color name="label_text_bg">@color/base_color_red_500</color>

</resources>
13 changes: 0 additions & 13 deletions formvalidator/src/main/res/values/dimens.xml

This file was deleted.

16 changes: 8 additions & 8 deletions formvalidator/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!--
================================================================================================
TextView
================================================================================================
-->
<!--
================================================================================================
TextView
================================================================================================
-->

<style name="ClassTheme.Error" parent="@android:style/Widget.TextView">
<style name="TextView.Error" parent="@android:style/Widget.TextView">

<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textSize">@dimen/label_size</item>
<item name="android:textColor">@color/label_text_bg</item>
<item name="android:textSize">12sp</item>
<item name="android:textColor">@color/base_color_red_500</item>
<item name="android:background">@android:color/transparent</item>

</style>
Expand Down

0 comments on commit e01bcdb

Please sign in to comment.