Skip to content

Commit

Permalink
task(SDK-4057) - Replaces redundant layout files with different dimen…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
Anush-Shand committed Jan 20, 2025
1 parent 150d72b commit a8a654e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 231 deletions.
70 changes: 0 additions & 70 deletions clevertap-pushtemplates/src/main/res/layout-v21/metadata.xml

This file was deleted.

70 changes: 0 additions & 70 deletions clevertap-pushtemplates/src/main/res/layout-v23/metadata.xml

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion clevertap-pushtemplates/src/main/res/layout/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:ellipsize="end"
android:maxWidth="120dp"
android:maxWidth="@dimen/metadata_subtitle_max_width"
android:maxLines="1"
android:layout_marginTop="@dimen/padding_negative"
android:gravity="center_vertical"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:id="@+id/carousel_relative_layout"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="8dp"
android:layout_marginTop="@dimen/product_display_margin_top"
android:weightSum="1">

<ViewFlipper
Expand Down
4 changes: 4 additions & 0 deletions clevertap-pushtemplates/src/main/res/values-v23/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="metadata_subtitle_max_width">120dp</dimen>
</resources>
4 changes: 4 additions & 0 deletions clevertap-pushtemplates/src/main/res/values-v31/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="product_display_margin_top">4dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions clevertap-pushtemplates/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<dimen name="metadata_title_margin_horizontal">4dp</dimen>

<dimen name="metadata_font_size">10dp</dimen>
<dimen name="metadata_subtitle_max_width">80dp</dimen>

<dimen name="metadata_small_icon_x">16dp</dimen>
<dimen name="metadata_small_icon_y">16dp</dimen>
Expand All @@ -38,6 +39,7 @@
<dimen name="chronometer_font_size">12sp</dimen>

<dimen name="product_display_button_height">24dp</dimen>
<dimen name="product_display_margin_top">8dp</dimen>
<dimen name="rating_big_img">96dp</dimen>


Expand Down

0 comments on commit a8a654e

Please sign in to comment.