Skip to content

Commit

Permalink
Merge pull request #54 from navratan-soni/ui_fixes
Browse files Browse the repository at this point in the history
Some UI Fixes in template.
  • Loading branch information
navratan-soni authored Jun 21, 2024
2 parents d675edf + 53aeae7 commit 063e3de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
android:id="@+id/horizontal_catalog_mid_row_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_marginTop="@dimen/product_catalog_horizontal_mid_row_margin_top"
android:layout_below="@id/product_image">

<TextView
android:id="@+id/product_title"
style="@style/Title"
android:layout_weight="1"
android:layout_gravity="start"
android:layout_width="@dimen/product_catalog_horizontal_mid_row_width"
android:layout_height="@dimen/product_catalog_horizontal_mid_row_height"
android:paddingTop="@dimen/product_catalog_horizontal_mid_row_text_padding"
android:layout_height="wrap_content"
android:layout_marginBottom="0dp"
android:textAlignment="center"
android:textSize="14sp" />

Expand All @@ -41,7 +41,8 @@
android:layout_weight="1"
android:layout_gravity="end"
android:layout_width="@dimen/product_catalog_horizontal_mid_row_width"
android:layout_height="@dimen/product_catalog_horizontal_mid_row_height"
android:layout_height="wrap_content"
android:padding="@dimen/standard_title_bottom_margin"
android:text="@string/buy_now"
android:textAlignment="center"
android:textSize="12sp" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="5"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:layout_toStartOf="@+id/five_icon_close_button"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<TextView
android:id="@+id/notification_body_expanded"
style="@style/Body"
android:layout_marginBottom="@dimen/zero_bezel_padding_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="start"
Expand Down
3 changes: 2 additions & 1 deletion code/notificationbuilder/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<dimen name="zero_bezel_title_margin_horizontal">3dp</dimen>
<dimen name="product_catalog_cta_button_height">48dp</dimen>
<dimen name="product_catalog_cta_button_width">80dp</dimen>
<dimen name="product_catalog_horizontal_mid_row_margin_top">5dp</dimen>
<dimen name="product_catalog_horizontal_mid_row_margin_top">16dp</dimen>
<dimen name="product_catalog_horizontal_mid_row_height">32dp</dimen>
<dimen name="product_catalog_horizontal_mid_row_width">0dp</dimen>
<dimen name="product_catalog_horizontal_mid_row_text_padding">7dp</dimen>
Expand All @@ -60,4 +60,5 @@
<dimen name="multi_icon_single_icon_height">48dp</dimen>
<dimen name="multi_icon_layout_height">56dp</dimen>
<dimen name="multi_icon_item_padding">4dp</dimen>
<dimen name="standard_title_bottom_margin">4dp</dimen>
</resources>
1 change: 1 addition & 0 deletions code/notificationbuilder/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<item name="android:textStyle">bold</item>
<item name="android:textSize">12sp</item>
<item name="android:maxLines">1</item>
<item name="android:layout_marginBottom">@dimen/standard_title_bottom_margin</item>
<item name="android:ellipsize">end</item>
</style>
<style name="Body" parent="android:TextAppearance.Material.Body1">
Expand Down

0 comments on commit 063e3de

Please sign in to comment.