Переглянути джерело

Update : Dash2 ad layout adjustment

Wayne 7 роки тому
батько
коміт
2348e845f6

+ 7 - 11
src/main/res/layout/dailog_dash2_full_screen_ad.xml

@@ -17,25 +17,23 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:orientation="vertical"
-        app:layout_constraintGuide_percent="0.1"/>
+        app:layout_constraintGuide_percent="0.12"/>
 
     <android.support.constraint.Guideline
         android:id="@+id/guideline_dash2_full_screen_image_right"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:orientation="vertical"
-        app:layout_constraintGuide_percent="0.9"/>
+        app:layout_constraintGuide_percent="0.88"/>
 
     <TextView
         android:id="@+id/textView_dash2_full_screen_ad_t2"
         android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:layout_marginLeft="@dimen/dash2_full_screen_ad_title_subtitle_margin_left_right"
-        android:layout_marginRight="@dimen/dash2_full_screen_ad_title_subtitle_margin_left_right"
         android:layout_marginBottom="@dimen/dash2_full_screen_ad_title_subtitle_margin_bottom"
         app:layout_constraintBottom_toTopOf="@id/guideline_dash2_full_screen_image_top"
-        app:layout_constraintRight_toRightOf="parent"
-        app:layout_constraintLeft_toLeftOf="parent"
+        app:layout_constraintRight_toLeftOf="@+id/guideline_dash2_full_screen_image_right"
+        app:layout_constraintLeft_toRightOf="@+id/guideline_dash2_full_screen_image_left"
         android:gravity="center"
         android:textSize="@dimen/dash2_full_screen_ad_subtitle_text_size"
         android:textColor="#000000"
@@ -46,12 +44,10 @@
         android:id="@+id/textView_dash2_full_screen_ad_t1"
         android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:layout_marginLeft="@dimen/dash2_full_screen_ad_title_subtitle_margin_left_right"
-        android:layout_marginRight="@dimen/dash2_full_screen_ad_title_subtitle_margin_left_right"
         android:layout_marginBottom="@dimen/dash2_full_screen_ad_title_subtitle_margin_bottom"
         app:layout_constraintBottom_toTopOf="@id/textView_dash2_full_screen_ad_t2"
-        app:layout_constraintRight_toRightOf="parent"
-        app:layout_constraintLeft_toLeftOf="parent"
+        app:layout_constraintRight_toLeftOf="@+id/guideline_dash2_full_screen_image_right"
+        app:layout_constraintLeft_toRightOf="@+id/guideline_dash2_full_screen_image_left"
         android:gravity="center"
         android:textSize="@dimen/dash2_full_screen_ad_title_text_size"
         android:textColor="#646464"
@@ -63,7 +59,7 @@
         android:layout_width="0dp"
         android:layout_height="0dp"
         app:layout_constraintRight_toLeftOf="@+id/guideline_dash2_full_screen_image_right"
-        app:layout_constraintLeft_toLeftOf="@+id/guideline_dash2_full_screen_image_left"
+        app:layout_constraintLeft_toRightOf="@+id/guideline_dash2_full_screen_image_left"
         app:layout_constraintTop_toTopOf="@+id/guideline_dash2_full_screen_image_top"
         app:layout_constraintDimensionRatio="1:1"
         android:adjustViewBounds="true"

+ 0 - 1
src/main/res/values/dimens.xml

@@ -14,7 +14,6 @@
     <dimen name="card_view_supporting_text_space">14sp</dimen>
 
     <dimen name="dash2_full_screen_ad_title_margin_bottom">24dp</dimen>
-    <dimen name="dash2_full_screen_ad_title_subtitle_margin_left_right">16dp</dimen>
     <dimen name="dash2_full_screen_ad_title_subtitle_margin_bottom">16dp</dimen>
     <dimen name="dash2_full_screen_ad_supporting_text_margin">8dp</dimen>