Fix icons alignment issue

This commit is contained in:
Benoit Marty 2020-07-13 17:21:33 +02:00
parent 21f1f89a4b
commit 8b5b7db241
1 changed files with 14 additions and 18 deletions

View File

@ -34,31 +34,30 @@
android:id="@+id/logoType" android:id="@+id/logoType"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="44dp" android:layout_height="44dp"
app:layout_constraintTop_toBottomOf="@id/loginSplashLogo" android:layout_marginTop="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:src="@drawable/element_logotype" android:src="@drawable/element_logotype"
android:tint="?colorAccent" android:tint="?colorAccent"
android:layout_marginTop="8dp"/> app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/loginSplashLogo" />
<TextView <TextView
android:id="@+id/loginSplashTitle" android:id="@+id/loginSplashTitle"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:gravity="center"
android:text="@string/login_splash_title" android:text="@string/login_splash_title"
android:textAppearance="@style/TextAppearance.Vector.Login.Title" android:textAppearance="@style/TextAppearance.Vector.Login.Title"
android:gravity="center"
android:transitionName="loginTitleTransition" android:transitionName="loginTitleTransition"
app:layout_constraintBottom_toTopOf="@+id/loginSplashText1" app:layout_constraintBottom_toTopOf="@+id/loginSplashText1"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/logoType" /> app:layout_constraintTop_toBottomOf="@+id/logoType" />
<!-- TODO check relative dimension -->
<ImageView <ImageView
android:id="@+id/loginSplashPicto1" android:id="@+id/loginSplashPicto1"
android:layout_width="wrap_content" android:layout_width="32dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:importantForAccessibility="no" android:importantForAccessibility="no"
@ -71,63 +70,60 @@
android:id="@+id/loginSplashText1" android:id="@+id/loginSplashText1"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="36dp" android:layout_marginStart="8dp"
android:layout_marginTop="96dp" android:layout_marginTop="96dp"
android:gravity="start" android:gravity="start"
android:text="@string/login_splash_text1" android:text="@string/login_splash_text1"
android:textAppearance="@style/TextAppearance.Vector.Login.Text" android:textAppearance="@style/TextAppearance.Vector.Login.Text"
app:layout_constraintBottom_toTopOf="@+id/loginSplashText2" app:layout_constraintBottom_toTopOf="@+id/loginSplashText2"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toEndOf="@id/loginSplashPicto1"
app:layout_constraintTop_toBottomOf="@+id/loginSplashTitle" /> app:layout_constraintTop_toBottomOf="@+id/loginSplashTitle" />
<ImageView <ImageView
android:id="@+id/loginSplashPicto2" android:id="@+id/loginSplashPicto2"
android:layout_width="wrap_content" android:layout_width="32dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:src="@drawable/ic_login_splash_lock" android:src="@drawable/ic_login_splash_lock"
android:tint="?riotx_text_secondary" android:tint="?riotx_text_secondary"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="@id/loginSplashPicto1"
app:layout_constraintTop_toTopOf="@+id/loginSplashText2" /> app:layout_constraintTop_toTopOf="@+id/loginSplashText2" />
<TextView <TextView
android:id="@+id/loginSplashText2" android:id="@+id/loginSplashText2"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="36dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:gravity="start" android:gravity="start"
android:text="@string/login_splash_text2" android:text="@string/login_splash_text2"
android:textAppearance="@style/TextAppearance.Vector.Login.Text" android:textAppearance="@style/TextAppearance.Vector.Login.Text"
app:layout_constraintBottom_toTopOf="@id/loginSplashText3" app:layout_constraintBottom_toTopOf="@id/loginSplashText3"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="@id/loginSplashText1"
app:layout_constraintTop_toBottomOf="@+id/loginSplashText1" /> app:layout_constraintTop_toBottomOf="@+id/loginSplashText1" />
<ImageView <ImageView
android:id="@+id/loginSplashPicto3" android:id="@+id/loginSplashPicto3"
android:layout_width="wrap_content" android:layout_width="32dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:src="@drawable/ic_login_splash_sliders" android:src="@drawable/ic_login_splash_sliders"
android:tint="?riotx_text_secondary" android:tint="?riotx_text_secondary"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="@+id/loginSplashPicto1"
app:layout_constraintTop_toTopOf="@+id/loginSplashText3" /> app:layout_constraintTop_toTopOf="@+id/loginSplashText3" />
<TextView <TextView
android:id="@+id/loginSplashText3" android:id="@+id/loginSplashText3"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="36dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:gravity="start" android:gravity="start"
android:text="@string/login_splash_text3" android:text="@string/login_splash_text3"
android:textAppearance="@style/TextAppearance.Vector.Login.Text" android:textAppearance="@style/TextAppearance.Vector.Login.Text"
app:layout_constraintBottom_toTopOf="@+id/loginSplashSubmit" app:layout_constraintBottom_toTopOf="@+id/loginSplashSubmit"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="@+id/loginSplashText1"
app:layout_constraintTop_toBottomOf="@+id/loginSplashText2" /> app:layout_constraintTop_toBottomOf="@+id/loginSplashText2" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton