extracted shimmer element for user detail items

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-04-08 00:09:16 +02:00 committed by tobiasKaminsky
parent d497cdd895
commit e224e093b0
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
2 changed files with 44 additions and 80 deletions

View File

@ -130,89 +130,13 @@
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/iconized_single_line_item_layout_height"
android:orientation="horizontal">
<include layout="@layout/user_info_details_table_item_shimmer" />
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="@dimen/iconized_single_line_item_icon_size"
android:layout_height="@dimen/iconized_single_line_item_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
app:corners="100" />
<include layout="@layout/user_info_details_table_item_shimmer" />
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
android:layout_marginEnd="@dimen/standard_margin" />
<include layout="@layout/user_info_details_table_item_shimmer" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/iconized_single_line_item_layout_height"
android:orientation="horizontal">
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="@dimen/iconized_single_line_item_icon_size"
android:layout_height="@dimen/iconized_single_line_item_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
app:corners="100" />
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
android:layout_marginEnd="@dimen/standard_margin" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/iconized_single_line_item_layout_height"
android:orientation="horizontal">
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="@dimen/iconized_single_line_item_icon_size"
android:layout_height="@dimen/iconized_single_line_item_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
app:corners="100" />
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
android:layout_marginEnd="@dimen/standard_margin" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/iconized_single_line_item_layout_height"
android:orientation="horizontal">
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="@dimen/iconized_single_line_item_icon_size"
android:layout_height="@dimen/iconized_single_line_item_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
app:corners="100" />
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
android:layout_marginEnd="@dimen/standard_margin" />
</LinearLayout>
<include layout="@layout/user_info_details_table_item_shimmer" />
</LinearLayout>

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?><!--
Nextcloud Android client application
Copyright (C) 2021 Andy Scherzinger
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
License as published by the Free Software Foundation; either
version 3 of the License, or 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 <http://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/iconized_single_line_item_layout_height"
android:orientation="horizontal">
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="@dimen/iconized_single_line_item_icon_size"
android:layout_height="@dimen/iconized_single_line_item_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
app:corners="100" />
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/user_info_icon_horizontal_margin"
android:layout_marginEnd="@dimen/standard_margin" />
</LinearLayout>