SetupWizard: Don't overlap logo and text

* Instead of using a fixed padding, use weights to align the logo

Change-Id: Ibb3f271dea7c19db3876b82aa1f013b1566e4173
This commit is contained in:
Michael W
2022-04-25 22:57:39 +02:00
parent 7ffdf8d12c
commit cf12c85d82

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016 The CyanogenMod Project
Copyright (C) 2017-2021 The LineageOS Project
Copyright (C) 2017-2022 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -23,19 +23,34 @@
android:layout_height="match_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:paddingTop="@dimen/welcome_content_container_padding_top">
android:gravity="center_vertical">
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"/>
<ImageView
android:id="@+id/brand_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:gravity="center"
android:scaleType="centerCrop"
android:src="@drawable/logo" />
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.5"/>
</LinearLayout>
<LinearLayout
@@ -60,7 +75,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hyphenationFrequency="none"
android:paddingBottom="@dimen/welcome_content_container_padding_bottom" />
android:paddingBottom="@dimen/welcome_content_container_padding_bottom"/>
<LinearLayout
android:layout_width="fill_parent"
@@ -85,6 +100,8 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
style="@style/SudGlifButtonBar.Stackable"
android:layout_width="fill_parent"