nextcloud-android/src/main/res/layout/activity_list_item.xml

104 lines
4.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Nextcloud Android client application
Copyright (C) 2017 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/>.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingRight="@dimen/standard_padding"
android:paddingBottom="@dimen/standard_padding"
android:paddingLeft="@dimen/standard_padding"
android:background="@color/bg_default">
<ImageView
android:id="@+id/activity_icon"
android:layout_width="@dimen/activity_icon_width"
android:layout_height="@dimen/activity_icon_height"
android:layout_alignParentTop="true"
android:layout_marginTop="@dimen/standard_margin"
android:alpha="0.5"
android:padding="2dp"
android:background="@drawable/round_bgnd_icons"
android:contentDescription="@string/activity_icon"
android:src="@drawable/ic_activity" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@id/activity_icon"
android:layout_toEndOf="@id/activity_icon">
<TextView
android:id="@+id/activity_subject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:paddingEnd="@dimen/zero"
android:paddingLeft="@dimen/activity_icon_layout_right_end_margin"
android:paddingRight="@dimen/zero"
android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
android:paddingTop="@dimen/standard_padding"
tools:text="@string/placeholder_filename"
android:textAppearance="?android:attr/textAppearanceListItem" />
<TextView
android:id="@+id/activity_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="@dimen/zero"
android:paddingLeft="@dimen/activity_icon_layout_right_end_margin"
android:paddingRight="@dimen/zero"
android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
android:ellipsize="end"
tools:text="@string/placeholder_sentence"
android:textAppearance="?android:attr/textAppearanceListItem"/>
<GridLayout
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/alternate_half_margin"
android:layout_marginLeft="@dimen/activity_list_item_grid_layout_left_start_margin"
android:layout_marginStart="@dimen/activity_list_item_grid_layout_left_start_margin"
android:paddingEnd="@dimen/zero"
android:paddingLeft="@dimen/activity_icon_layout_right_end_margin"
android:paddingRight="@dimen/zero"
android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
android:columnCount="3" />
<TextView
android:id="@+id/activity_datetime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:ellipsize="end"
android:paddingEnd="@dimen/zero"
android:paddingLeft="@dimen/activity_icon_layout_right_end_margin"
android:paddingRight="@dimen/zero"
android:paddingStart="@dimen/activity_icon_layout_right_end_margin"
tools:text="@string/placeholder_sentence"
android:textColor="?android:attr/textColorSecondary"/>
</LinearLayout>
</RelativeLayout>