Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrounger committed Oct 8, 2017
1 parent f0ce53f commit 007fbef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ To customize the style you can override the [layout files](/library/src/main/res
<resources>

<!-- Styles for recyclerView countrycurrencypicker_row-->
<style name="ccPicker_row_item_container">
<style name="countryCurrencyPicker_row_item_container">
<item name="android:paddingBottom">2dp</item>
<item name="android:paddingTop">2dp</item>
<item name="android:paddingStart">8dp</item>
Expand All @@ -123,18 +123,18 @@ To customize the style you can override the [layout files](/library/src/main/res

</style>

<style name="ccPicker_row_item_icon_flag">
<style name="countryCurrencyPicker_row_item_icon_flag">
<item name="android:layout_width">48dp</item>
<item name="android:layout_height">48dp</item>
</style>

<style name="ccPicker_row_item_txt_container">
<style name="countryCurrencyPicker_row_item_txt_container">
<!--Style for container with title and subTitle-->
<item name="android:layout_marginStart">10dp</item>
<item name="android:layout_marginEnd">10dp</item>
</style>

<style name="ccPicker_row_item_txt_title">
<style name="countryCurrencyPicker_row_item_txt_title">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">1</item>
Expand All @@ -144,7 +144,7 @@ To customize the style you can override the [layout files](/library/src/main/res
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>

<style name="ccPicker_row_item_txt_subtitle">
<style name="countryCurrencyPicker_row_item_txt_subtitle">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:ellipsize">end</item>
Expand All @@ -153,7 +153,7 @@ To customize the style you can override the [layout files](/library/src/main/res
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>

<style name="ccPicker_row_item_txt_code_or_symbol">
<style name="countryCurrencyPicker_row_item_txt_code_or_symbol">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">1</item>
Expand Down
12 changes: 6 additions & 6 deletions library/src/main/res/layout/countrycurrencypicker_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/ccPicker_row_item_container"
style="@style/countryCurrencyPicker_row_item_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">

<ImageView
android:id="@+id/flag"
style="@style/ccPicker_row_item_icon_flag" />
style="@style/countryCurrencyPicker_row_item_icon_flag" />

<LinearLayout
style="@style/ccPicker_row_item_txt_container"
style="@style/countryCurrencyPicker_row_item_txt_container"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">

<TextView
android:id="@+id/title"
style="@style/ccPicker_row_item_txt_title" />
style="@style/countryCurrencyPicker_row_item_txt_title" />

<TextView
android:id="@+id/subtitle"
style="@style/ccPicker_row_item_txt_subtitle" />
style="@style/countryCurrencyPicker_row_item_txt_subtitle" />
</LinearLayout>

<TextView
android:id="@+id/code_or_symbol"
style="@style/ccPicker_row_item_txt_code_or_symbol" />
style="@style/countryCurrencyPicker_row_item_txt_code_or_symbol" />

</LinearLayout>
12 changes: 6 additions & 6 deletions library/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<resources>

<!-- Styles for recyclerView countrycurrencypicker_row-->
<style name="ccPicker_row_item_container">
<style name="countryCurrencyPicker_row_item_container">
<item name="android:paddingBottom">2dp</item>
<item name="android:paddingTop">2dp</item>
<item name="android:paddingStart">8dp</item>
Expand All @@ -25,18 +25,18 @@

</style>

<style name="ccPicker_row_item_icon_flag">
<style name="countryCurrencyPicker_row_item_icon_flag">
<item name="android:layout_width">48dp</item>
<item name="android:layout_height">48dp</item>
</style>

<style name="ccPicker_row_item_txt_container">
<style name="countryCurrencyPicker_row_item_txt_container">
<!--Style for container with title and subTitle-->
<item name="android:layout_marginStart">10dp</item>
<item name="android:layout_marginEnd">10dp</item>
</style>

<style name="ccPicker_row_item_txt_title">
<style name="countryCurrencyPicker_row_item_txt_title">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">1</item>
Expand All @@ -46,7 +46,7 @@
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>

<style name="ccPicker_row_item_txt_subtitle">
<style name="countryCurrencyPicker_row_item_txt_subtitle">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:ellipsize">end</item>
Expand All @@ -55,7 +55,7 @@
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>

<style name="ccPicker_row_item_txt_code_or_symbol">
<style name="countryCurrencyPicker_row_item_txt_code_or_symbol">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">1</item>
Expand Down

0 comments on commit 007fbef

Please sign in to comment.