mirror of
https://github.com/nextcloud/android.git
synced 2024-12-23 01:00:26 +03:00
efa886b455
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me> Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com> Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
142 lines
5.4 KiB
XML
142 lines
5.4 KiB
XML
<!--
|
|
~
|
|
~ Nextcloud Android client application
|
|
~
|
|
~ @author Tobias Kaminsky
|
|
~ Copyright (C) 2022 Tobias Kaminsky
|
|
~ Copyright (C) 2022 Nextcloud GmbH
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU Affero General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU Affero General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Affero General Public License
|
|
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@android:id/background"
|
|
style="@style/Widget.Nextcloud.AppWidget.Container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:backgroundTint="@color/grey_200"
|
|
android:orientation="vertical"
|
|
android:theme="@style/Theme.ownCloud.Toolbar.AppWidgetContainer">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginStart="@dimen/standard_margin"
|
|
android:layout_marginTop="@dimen/standard_margin"
|
|
android:layout_marginEnd="@dimen/standard_margin"
|
|
android:layout_marginBottom="@dimen/standard_margin"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
|
android:contentDescription="@string/icon_of_dashboard_widget"
|
|
android:src="@drawable/ic_dashboard" />
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:textColor="@color/black"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/create"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:contentDescription="@string/create_new"
|
|
android:layout_marginEnd="@dimen/standard_margin"
|
|
android:src="@drawable/ic_plus" />
|
|
|
|
<ImageView
|
|
android:id="@+id/reload"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:contentDescription="@string/refresh_content"
|
|
android:src="@drawable/ic_sync" />
|
|
</LinearLayout>
|
|
|
|
<ListView
|
|
android:id="@+id/list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:divider="@null"
|
|
android:layout_marginStart="@dimen/standard_margin"
|
|
android:layout_marginEnd="@dimen/zero" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/empty_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
android:layout_margin="@dimen/standard_half_margin"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
android:paddingTop="@dimen/standard_margin">
|
|
|
|
<ImageView
|
|
android:id="@+id/empty_list_icon"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:src="@drawable/ic_check"
|
|
android:contentDescription="@string/icon_for_empty_list" />
|
|
|
|
<TextView
|
|
android:id="@+id/empty_list_view_headline"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:maxLines="2"
|
|
android:textColor="@color/black"
|
|
android:paddingTop="@dimen/standard_half_padding"
|
|
android:paddingBottom="@dimen/standard_half_padding"
|
|
android:text="@string/no_items"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/empty_list_view_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:textColor="@color/black"
|
|
android:paddingTop="@dimen/standard_half_padding"
|
|
android:paddingBottom="@dimen/standard_half_padding"
|
|
android:text="@string/check_back_later_or_reload" />
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/button"
|
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|