Show users/groups in Search Fragment list
[pub/Android/ownCloud.git] / res / layout / share_user_item.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4 Copyright (C) 2015 ownCloud Inc.
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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:orientation="vertical">
22
23 <LinearLayout
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content"
26 android:orientation="horizontal"
27 android:weightSum="1"
28 android:longClickable="true">
29 <TextView
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_weight="0.9"
33 android:textAppearance="?android:attr/textAppearanceMedium"
34 android:text="@string/username"
35 android:id="@+id/userOrGroupName"
36 android:layout_margin="12dp"
37 android:textColor="@color/textColor"/>
38
39 <ImageView
40 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
42 android:layout_weight="0.1"
43 android:id="@+id/unshareButton"
44 android:src="@drawable/ic_cancel"
45 android:layout_marginRight="8dp"
46 android:layout_marginLeft="4dp"
47 android:layout_gravity="center_horizontal"/>
48 </LinearLayout>
49
50 <View
51 android:layout_width="match_parent"
52 android:layout_height="1dp"
53 android:background="@color/list_divider_background"></View>
54 </LinearLayout>