0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-25 04:35:12 +00:00

updated layout

This commit is contained in:
X1nto 2020-12-11 23:43:51 +04:00
parent ed3b98b3cd
commit e681da79e6
5 changed files with 37 additions and 35 deletions

View file

@ -17,6 +17,8 @@ import androidx.preference.PreferenceManager
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import com.crowdin.platform.util.inflateWithCrowdin import com.crowdin.platform.util.inflateWithCrowdin
import com.github.florent37.viewtooltip.ViewTooltip 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.FlexboxLayoutManager
import com.google.android.flexbox.JustifyContent import com.google.android.flexbox.JustifyContent
import com.vanced.manager.R import com.vanced.manager.R

View file

@ -29,7 +29,7 @@
<TextView <TextView
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:text="@string/useful_links" android:text="@string/support_us"
style="@style/CardTextHeader" /> style="@style/CardTextHeader" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
@ -42,6 +42,12 @@
tools:itemCount="2" tools:itemCount="2"
tools:listitem="@layout/view_sponsor" /> tools:listitem="@layout/view_sponsor" />
<TextView
android:layout_marginHorizontal="24dp"
android:layout_marginTop="12dp"
android:text="@string/useful_links"
style="@style/CardTextHeader" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_links" android:id="@+id/recycler_links"
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -1,20 +1,21 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" <com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/link_bg" android:id="@+id/link_bg"
android:layout_width="80dp" android:layout_width="wrap_content"
android:layout_height="68dp" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
app:cardBackgroundColor="?colorLinkBG" app:cardBackgroundColor="?colorLinkBG"
app:cardCornerRadius="12dp" app:cardCornerRadius="12dp"
app:cardElevation="0dp" app:cardElevation="0dp"
app:contentPaddingBottom="4dp" app:contentPaddingBottom="16dp"
app:contentPaddingLeft="8dp" app:contentPaddingLeft="16dp"
app:contentPaddingRight="8dp" app:contentPaddingRight="16dp"
app:contentPaddingTop="2dp"> app:contentPaddingTop="16dp">
<ImageView <ImageView
android:id="@+id/link_image" android:id="@+id/link_image"
@ -23,4 +24,5 @@
android:layout_gravity="center" android:layout_gravity="center"
app:tint="?colorLinkImage" app:tint="?colorLinkImage"
tools:src="@drawable/ic_instagram" /> tools:src="@drawable/ic_instagram" />
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>

View file

@ -3,25 +3,27 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/card_sponsor" android:id="@+id/card_sponsor"
android:layout_width="165dp" android:layout_width="wrap_content"
android:layout_height="97dp" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
app:cardBackgroundColor="?colorLinkBG" app:cardBackgroundColor="?colorLinkBG"
app:cardCornerRadius="12dp" app:contentPaddingTop="16dp"
app:cardElevation="0dp" app:contentPaddingBottom="16dp"
app:contentPaddingTop="12dp"> app:contentPaddingLeft="64dp"
app:contentPaddingRight="64dp"
app:cardCornerRadius="16dp"
app:cardElevation="0dp">
<androidx.constraintlayout.widget.ConstraintLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:orientation="vertical">
<ImageView <ImageView
android:id="@+id/sponsor_logo" android:id="@+id/sponsor_logo"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_gravity="center"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tint="?colorLinkImage" app:tint="?colorLinkImage"
tools:src="@drawable/ic_brave" /> tools:src="@drawable/ic_brave" />
@ -29,21 +31,11 @@
android:id="@+id/sponsor_name" android:id="@+id/sponsor_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?colorLinkImage" android:layout_gravity="center"
app:layout_constraintBottom_toTopOf="@id/sponsor_description" android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent" tools:text="Brave"
app:layout_constraintStart_toStartOf="parent" android:textColor="?colorLinkImage" />
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>
<TextView
android:id="@+id/sponsor_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/support_us"
android:textAlignment="center"
android:textColor="?colorLinkImage"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/sponsor_name" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>

View file

@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html # http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process. # Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings. # 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. # When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit # 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 # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects