|
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | + ownCloud Android client application |
| 3 | +
|
| 4 | + Copyright (C) 2026 ownCloud GmbH. |
| 5 | +
|
| 6 | + This program is free software: you can redistribute it and/or modify |
| 7 | + it under the terms of the GNU General Public License version 2, |
| 8 | + as published by the Free Software Foundation. |
| 9 | +
|
| 10 | + This program is distributed in the hope that it will be useful, |
| 11 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + GNU General Public License for more details. |
| 14 | +
|
| 15 | + You should have received a copy of the GNU General Public License |
| 16 | + along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | +--> |
| 18 | + |
| 19 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | + android:layout_width="match_parent" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:orientation="vertical" |
| 23 | + android:filterTouchesWhenObscured="true" |
| 24 | + xmlns:tools="http://schemas.android.com/tools"> |
| 25 | + |
| 26 | + <LinearLayout |
| 27 | + android:id="@+id/public_link_item_layout" |
| 28 | + android:layout_width="match_parent" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:layout_marginTop="@dimen/standard_quarter_margin" |
| 31 | + android:orientation="horizontal" |
| 32 | + android:focusable="true"> |
| 33 | + |
| 34 | + <LinearLayout |
| 35 | + android:layout_width="0dp" |
| 36 | + android:layout_height="wrap_content" |
| 37 | + android:layout_weight="1" |
| 38 | + android:orientation="vertical" |
| 39 | + android:layout_marginStart="@dimen/standard_half_margin" |
| 40 | + android:layout_marginEnd="@dimen/standard_half_margin"> |
| 41 | + |
| 42 | + <TextView |
| 43 | + android:id="@+id/public_link_display_name" |
| 44 | + android:layout_width="wrap_content" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:layout_marginTop="@dimen/standard_half_margin" |
| 47 | + android:layout_marginStart="@dimen/standard_half_margin" |
| 48 | + android:layout_gravity="center_vertical" |
| 49 | + android:text="@string/placeholder_filename" |
| 50 | + android:textSize="@dimen/two_line_primary_text_size" |
| 51 | + android:textColor="@color/textColor" |
| 52 | + android:textStyle="bold" |
| 53 | + android:ellipsize="middle" |
| 54 | + android:maxLines="1"/> |
| 55 | + |
| 56 | + <LinearLayout |
| 57 | + android:layout_width="wrap_content" |
| 58 | + android:layout_height="wrap_content" |
| 59 | + android:orientation="horizontal"> |
| 60 | + |
| 61 | + <TextView |
| 62 | + android:id="@+id/public_link_type" |
| 63 | + android:layout_width="wrap_content" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:layout_marginStart="@dimen/standard_half_margin" |
| 66 | + android:layout_marginEnd="@dimen/standard_half_margin" |
| 67 | + android:layout_marginBottom="@dimen/standard_half_margin" |
| 68 | + android:text="@string/placeholder_sentence" |
| 69 | + android:textSize="13sp" |
| 70 | + android:textColor="@color/textColor" |
| 71 | + android:ellipsize="middle" |
| 72 | + android:maxLines="1"/> |
| 73 | + |
| 74 | + <ImageView |
| 75 | + android:id="@+id/expiration_calendar_icon" |
| 76 | + android:layout_width="20dp" |
| 77 | + android:layout_height="20dp" |
| 78 | + android:layout_marginEnd="@dimen/standard_half_margin" |
| 79 | + android:src="@drawable/file_calendar" |
| 80 | + android:visibility="gone" |
| 81 | + tools:visibility="visible"/> |
| 82 | + |
| 83 | + <TextView |
| 84 | + android:id="@+id/expiration_date" |
| 85 | + android:layout_width="wrap_content" |
| 86 | + android:layout_height="wrap_content" |
| 87 | + android:text="@string/placeholder_sentence" |
| 88 | + android:textSize="13sp" |
| 89 | + android:textColor="@color/textColor" |
| 90 | + android:ellipsize="middle" |
| 91 | + android:visibility="gone" |
| 92 | + tools:visibility="visible"/> |
| 93 | + |
| 94 | + </LinearLayout> |
| 95 | + |
| 96 | + </LinearLayout> |
| 97 | + |
| 98 | + <ImageButton |
| 99 | + android:id="@+id/copy_public_link_button" |
| 100 | + android:layout_width="40dp" |
| 101 | + android:layout_height="40dp" |
| 102 | + android:layout_gravity="center_vertical" |
| 103 | + android:layout_marginStart="@dimen/standard_half_margin" |
| 104 | + android:layout_marginEnd="@dimen/standard_margin" |
| 105 | + android:scaleType="centerCrop" |
| 106 | + android:padding="@dimen/standard_half_padding" |
| 107 | + android:background="?android:attr/selectableItemBackground" |
| 108 | + android:focusable="true" |
| 109 | + android:src="@drawable/copy_link" |
| 110 | + android:visibility="visible"/> |
| 111 | + |
| 112 | + </LinearLayout> |
| 113 | + |
| 114 | + <View |
| 115 | + android:layout_width="match_parent" |
| 116 | + android:layout_height="1dp" |
| 117 | + android:layout_marginTop="@dimen/standard_quarter_margin" |
| 118 | + android:background="@android:color/darker_gray" |
| 119 | + android:alpha="0.5"/> |
| 120 | + |
| 121 | +</LinearLayout> |
0 commit comments