Browse Source

settings logo as bg image

xbzk/settings-fragment-rework
xbzk 4 days ago
committed by crueter
parent
commit
94906f89d7
  1. 64
      src/android/app/src/main/res/layout/fragment_home_settings.xml

64
src/android/app/src/main/res/layout/fragment_home_settings.xml

@ -1,38 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroll_view_settings"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:fadeScrollbars="false"
android:clipToPadding="false"
android:background="?attr/colorSurface"
android:defaultFocusHighlightEnabled="false">
android:background="?attr/colorSurface">
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/linear_layout_settings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingHorizontal="16dp">
<ImageView
android:id="@+id/logo_image"
android:layout_width="220dp"
android:layout_height="220dp"
android:layout_gravity="center"
android:alpha="0.2"
android:contentDescription="@null"
android:importantForAccessibility="no"
android:scaleType="centerInside"
android:src="@drawable/ic_yuzu" />
<ImageView
android:id="@+id/logo_image"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginTop="48dp"
android:layout_marginBottom="24dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/ic_yuzu" />
<androidx.core.widget.NestedScrollView
android:id="@+id/scroll_view_settings"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:fadeScrollbars="false"
android:clipToPadding="false"
android:background="@android:color/transparent"
android:defaultFocusHighlightEnabled="false">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/home_settings_list"
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/linear_layout_settings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:nestedScrollingEnabled="false" />
android:orientation="vertical"
android:paddingHorizontal="16dp"
android:paddingTop="16dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/home_settings_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:nestedScrollingEnabled="false" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.core.widget.NestedScrollView>
</androidx.core.widget.NestedScrollView>
</FrameLayout>
Loading…
Cancel
Save