From e681da79e618402d8d803a0dc90b914531a785d5 Mon Sep 17 00:00:00 2001 From: X1nto Date: Fri, 11 Dec 2020 23:43:51 +0400 Subject: [PATCH] updated layout --- .../manager/ui/fragments/HomeFragment.kt | 2 + app/src/main/res/layout/fragment_home.xml | 8 +++- app/src/main/res/layout/view_social_link.xml | 16 ++++--- app/src/main/res/layout/view_sponsor.xml | 44 ++++++++----------- gradle.properties | 2 +- 5 files changed, 37 insertions(+), 35 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt index 21b97abb..d8d557d7 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/HomeFragment.kt @@ -17,6 +17,8 @@ import androidx.preference.PreferenceManager import androidx.recyclerview.widget.LinearLayoutManager import com.crowdin.platform.util.inflateWithCrowdin import com.github.florent37.viewtooltip.ViewTooltip +import com.google.android.flexbox.AlignContent +import com.google.android.flexbox.AlignItems import com.google.android.flexbox.FlexboxLayoutManager import com.google.android.flexbox.JustifyContent import com.vanced.manager.R diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 1498edf6..9b1782fa 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -29,7 +29,7 @@ + + - + app:contentPaddingBottom="16dp" + app:contentPaddingLeft="16dp" + app:contentPaddingRight="16dp" + app:contentPaddingTop="16dp"> + \ No newline at end of file diff --git a/app/src/main/res/layout/view_sponsor.xml b/app/src/main/res/layout/view_sponsor.xml index b824e7df..a7e71c67 100644 --- a/app/src/main/res/layout/view_sponsor.xml +++ b/app/src/main/res/layout/view_sponsor.xml @@ -3,25 +3,27 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/card_sponsor" - android:layout_width="165dp" - android:layout_height="97dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_marginTop="8dp" app:cardBackgroundColor="?colorLinkBG" - app:cardCornerRadius="12dp" - app:cardElevation="0dp" - app:contentPaddingTop="12dp"> + app:contentPaddingTop="16dp" + app:contentPaddingBottom="16dp" + app:contentPaddingLeft="64dp" + app:contentPaddingRight="64dp" + app:cardCornerRadius="16dp" + app:cardElevation="0dp"> - + android:layout_height="match_parent" + android:orientation="vertical"> @@ -29,21 +31,11 @@ android:id="@+id/sponsor_name" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textColor="?colorLinkImage" - app:layout_constraintBottom_toTopOf="@id/sponsor_description" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + android:layout_gravity="center" + android:layout_marginTop="8dp" + tools:text="Brave" + android:textColor="?colorLinkImage" /> + + - - \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 0b4bc4da..b1ec993b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx4096m +org.gradle.jvmargs=-Xmx3072m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects