mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
applying percentage based heights to the carousel hero image and paddings
This commit is contained in:
parent
43acc7a6f8
commit
f4cacb2d16
3 changed files with 12 additions and 4 deletions
5
library/ui-styles/src/main/res/values-h720dp/dimens.xml
Normal file
5
library/ui-styles/src/main/res/values-h720dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item name="ftue_auth_carousel_item_spacing" format="float" type="dimen">0.05</item>
|
||||
<item name="ftue_auth_carousel_item_image_height" format="float" type="dimen">0.40</item>
|
||||
</resources>
|
|
@ -51,4 +51,7 @@
|
|||
<!-- Onboarding -->
|
||||
<item name="ftue_auth_gutter_start_percent" format="float" type="dimen">0.05</item>
|
||||
<item name="ftue_auth_gutter_end_percent" format="float" type="dimen">0.95</item>
|
||||
|
||||
<item name="ftue_auth_carousel_item_spacing" format="float" type="dimen">0.01</item>
|
||||
<item name="ftue_auth_carousel_item_image_height" format="float" type="dimen">0.35</item>
|
||||
</resources>
|
|
@ -26,14 +26,15 @@
|
|||
app:layout_constraintBottom_toTopOf="@id/carousel_item_image_container"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:layout_constraintVertical_bias="0.0"
|
||||
app:layout_constraintHeight_percent="0.05"
|
||||
app:layout_constraintHeight_percent="@dimen/ftue_auth_carousel_item_spacing"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/carousel_item_image_container"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_gravity="center"
|
||||
app:layout_constraintHeight_percent="@dimen/ftue_auth_carousel_item_image_height"
|
||||
app:layout_constraintBottom_toTopOf="@id/carousel_item_image_bottom_space"
|
||||
app:layout_constraintEnd_toEndOf="@id/splashCarouselGutterEnd"
|
||||
app:layout_constraintStart_toStartOf="@id/splashCarouselGutterStart"
|
||||
|
@ -52,9 +53,8 @@
|
|||
android:id="@+id/carousel_item_image_bottom_space"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="0.05"
|
||||
app:layout_constraintBottom_toTopOf="@id/carousel_item_title"
|
||||
app:layout_constraintHeight_percent="0.05"
|
||||
app:layout_constraintHeight_percent="@dimen/ftue_auth_carousel_item_spacing"
|
||||
app:layout_constraintTop_toBottomOf="@id/carousel_item_image_container" />
|
||||
|
||||
<TextView
|
||||
|
|
Loading…
Reference in a new issue