mirror of https://github.com/nextcloud/android
184 lines
6.9 KiB
XML
184 lines
6.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Nextcloud - Android Client
|
|
~
|
|
~ SPDX-FileCopyrightText: 2021 Tobias Kaminsky <tobias@kaminsky.me>
|
|
~ SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger>
|
|
~ SPDX-License-Identifier: AGPL-3.0-or-later
|
|
-->
|
|
<LinearLayout 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/drawer_header_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/primary"
|
|
android:fitsSystemWindows="true"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="96dp"
|
|
android:gravity="center"
|
|
android:paddingHorizontal="@dimen/standard_padding"
|
|
android:paddingTop="@dimen/standard_padding"
|
|
android:paddingBottom="@dimen/standard_half_padding">
|
|
|
|
<ImageView
|
|
android:id="@+id/drawer_header_logo"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@null"
|
|
android:maxWidth="96dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/nextcloud_logo" />
|
|
|
|
<TextView
|
|
android:id="@+id/drawer_header_server_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/standard_half_margin"
|
|
android:ellipsize="end"
|
|
android:fontFamily="sans-serif"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="2"
|
|
android:textColor="@color/text_color_inverse"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:visibility="gone"
|
|
tools:ignore="RtlHardcoded"
|
|
tools:text="Nextcloud" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/drawer_ecosystem_apps"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/standard_half_margin"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/drawer_ecosystem_assistant"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginEnd="30dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:background="?android:selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/white_outline"
|
|
android:contentDescription="@string/ecosystem_apps_talk"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_assistant"
|
|
app:tint="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/ecosystem_apps_display_assistant"
|
|
android:textColor="@color/white"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/drawer_ecosystem_talk"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/white_outline"
|
|
android:contentDescription="@string/ecosystem_apps_talk"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_talk"
|
|
app:tint="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/ecosystem_apps_display_talk"
|
|
android:textColor="@color/white"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/drawer_ecosystem_notes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/standard_double_margin"
|
|
android:background="?android:selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/white_outline"
|
|
android:contentDescription="@string/ecosystem_apps_notes"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_notes"
|
|
app:tint="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/ecosystem_apps_display_notes"
|
|
android:textColor="@color/white"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/drawer_ecosystem_more"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/white_outline"
|
|
android:contentDescription="@string/ecosystem_apps_more"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_more_apps"
|
|
app:tint="@color/white" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/ecosystem_apps_display_more"
|
|
android:textColor="@color/white"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|