Browse Source
android: Add a landscape-specific layout to the about page
android: Add a landscape-specific layout to the about page
Moves the logo to the side to fit more information on screennce_cpp
1 changed files with 233 additions and 0 deletions
@ -0,0 +1,233 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|||
xmlns:tools="http://schemas.android.com/tools" |
|||
android:id="@+id/coordinator_about" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
android:background="?attr/colorSurface"> |
|||
|
|||
<com.google.android.material.appbar.AppBarLayout |
|||
android:id="@+id/appbar_about" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:fitsSystemWindows="true"> |
|||
|
|||
<com.google.android.material.appbar.MaterialToolbar |
|||
android:id="@+id/toolbar_about" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="?attr/actionBarSize" |
|||
app:navigationIcon="@drawable/ic_back" |
|||
app:title="@string/about" /> |
|||
|
|||
</com.google.android.material.appbar.AppBarLayout> |
|||
|
|||
<androidx.core.widget.NestedScrollView |
|||
android:id="@+id/scroll_about" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
android:fadeScrollbars="false" |
|||
android:scrollbars="vertical" |
|||
app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
|||
|
|||
<LinearLayout |
|||
android:id="@+id/content_about" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
android:orientation="horizontal"> |
|||
|
|||
<ImageView |
|||
android:id="@+id/image_logo" |
|||
android:layout_width="200dp" |
|||
android:layout_height="200dp" |
|||
android:layout_gravity="center_horizontal" |
|||
android:padding="20dp" |
|||
android:src="@drawable/ic_yuzu_title" /> |
|||
|
|||
<LinearLayout |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="wrap_content" |
|||
android:orientation="vertical"> |
|||
|
|||
<LinearLayout |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:orientation="vertical" |
|||
android:paddingHorizontal="16dp" |
|||
android:paddingVertical="16dp"> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.TitleMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:text="@string/about" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.BodyMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:layout_marginTop="6dp" |
|||
android:text="@string/about_app_description" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
</LinearLayout> |
|||
|
|||
<com.google.android.material.divider.MaterialDivider |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="20dp" /> |
|||
|
|||
<LinearLayout |
|||
android:id="@+id/button_contributors" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:background="?attr/selectableItemBackground" |
|||
android:orientation="vertical" |
|||
android:paddingHorizontal="16dp" |
|||
android:paddingVertical="16dp"> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.TitleMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:text="@string/contributors" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.BodyMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:layout_marginTop="6dp" |
|||
android:text="@string/contributors_description" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
</LinearLayout> |
|||
|
|||
<com.google.android.material.divider.MaterialDivider |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="20dp" /> |
|||
|
|||
<LinearLayout |
|||
android:id="@+id/button_licenses" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:background="?attr/selectableItemBackground" |
|||
android:orientation="vertical" |
|||
android:paddingHorizontal="16dp" |
|||
android:paddingVertical="16dp"> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.TitleMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:text="@string/licenses" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.BodyMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:layout_marginTop="6dp" |
|||
android:text="@string/licenses_description" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
</LinearLayout> |
|||
|
|||
<com.google.android.material.divider.MaterialDivider |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="20dp" /> |
|||
|
|||
<LinearLayout |
|||
android:id="@+id/button_build_hash" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:background="?attr/selectableItemBackground" |
|||
android:orientation="vertical" |
|||
android:paddingHorizontal="16dp" |
|||
android:paddingVertical="16dp"> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
style="@style/TextAppearance.Material3.TitleMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:text="@string/build" |
|||
android:textAlignment="viewStart" /> |
|||
|
|||
<com.google.android.material.textview.MaterialTextView |
|||
android:id="@+id/text_build_hash" |
|||
style="@style/TextAppearance.Material3.BodyMedium" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="24dp" |
|||
android:layout_marginTop="6dp" |
|||
android:textAlignment="viewStart" |
|||
tools:text="abc123" /> |
|||
|
|||
</LinearLayout> |
|||
|
|||
<com.google.android.material.divider.MaterialDivider |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="20dp" /> |
|||
|
|||
<LinearLayout |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginHorizontal="40dp" |
|||
android:layout_marginTop="12dp" |
|||
android:layout_marginBottom="16dp" |
|||
android:gravity="center_horizontal" |
|||
android:orientation="horizontal"> |
|||
|
|||
<Button |
|||
android:id="@+id/button_discord" |
|||
style="?attr/materialIconButtonStyle" |
|||
android:layout_width="0dp" |
|||
android:layout_height="wrap_content" |
|||
android:layout_weight="1" |
|||
app:icon="@drawable/ic_discord" |
|||
app:iconGravity="textEnd" |
|||
app:iconSize="24dp" |
|||
app:iconTint="?attr/colorOnSurface" /> |
|||
|
|||
<Button |
|||
android:id="@+id/button_website" |
|||
style="?attr/materialIconButtonStyle" |
|||
android:layout_width="0dp" |
|||
android:layout_height="wrap_content" |
|||
android:layout_weight="1" |
|||
app:icon="@drawable/ic_website" |
|||
app:iconGravity="textEnd" |
|||
app:iconSize="24dp" |
|||
app:iconTint="?attr/colorOnSurface" /> |
|||
|
|||
<Button |
|||
android:id="@+id/button_github" |
|||
style="?attr/materialIconButtonStyle" |
|||
android:layout_width="0dp" |
|||
android:layout_height="wrap_content" |
|||
android:layout_weight="1" |
|||
app:icon="@drawable/ic_github" |
|||
app:iconGravity="textEnd" |
|||
app:iconSize="24dp" |
|||
app:iconTint="?attr/colorOnSurface" /> |
|||
|
|||
</LinearLayout> |
|||
|
|||
</LinearLayout> |
|||
|
|||
</LinearLayout> |
|||
|
|||
</androidx.core.widget.NestedScrollView> |
|||
|
|||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue