Skip to content

Commit c2a67a3

Browse files
committed
Improve image preview layout
1 parent 8eb225a commit c2a67a3

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

dynamic-support/src/main/res/layout-land/ads_preview_image.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
android:id="@+id/ads_preview_image_root">
2828

2929
<LinearLayout
30-
android:layout_width="match_parent"
31-
android:layout_height="wrap_content"
32-
android:gravity="center"
33-
android:orientation="vertical">
30+
style="?attr/ads_widgetContentRowVertical"
31+
android:gravity="center">
3432

3533
<FrameLayout
3634
android:id="@+id/ads_preview_header_frame"
@@ -40,10 +38,8 @@
4038
</FrameLayout>
4139

4240
<LinearLayout
43-
android:layout_width="match_parent"
44-
android:layout_height="wrap_content"
45-
android:gravity="center_vertical"
46-
android:orientation="horizontal">
41+
style="?attr/ads_widgetContentRowHorizontal"
42+
android:gravity="center_vertical">
4743

4844
<com.pranavpandey.android.dynamic.support.widget.DynamicImageView
4945
style="?attr/ads_widgetImagePreviewLand"

dynamic-support/src/main/res/layout/ads_preview_image.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
android:id="@+id/ads_preview_image_root">
2828

2929
<LinearLayout
30-
android:layout_width="match_parent"
31-
android:layout_height="wrap_content"
32-
android:gravity="center_horizontal"
33-
android:orientation="vertical">
30+
style="?attr/ads_widgetContentRowVertical">
3431

3532
<FrameLayout
3633
android:id="@+id/ads_preview_header_frame"

0 commit comments

Comments
 (0)