Merge remote-tracking branch 'remotes/upstream/resizedImages' into beta
[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:textSize="16dip"
34 android:text="@string/username"
35 android:id="@+id/userOrGroupName"
36 android:layout_margin="12dp"
37 android:textColor="@color/textColor"
38 android:singleLine="true"
39 android:ellipsize="middle"/>
40
41 <ImageView
42 android:layout_width="wrap_content"
43 android:layout_height="match_parent"
44 android:layout_weight="0.1"
45 android:id="@+id/unshareButton"
46 android:src="@drawable/ic_cancel"
47 android:layout_marginRight="8dp"
48 android:layout_marginLeft="4dp"
49 android:layout_gravity="center_horizontal"/>
50 </LinearLayout>
51
52 <View
53 android:layout_width="match_parent"
54 android:layout_height="1dp"
55 android:background="@color/list_divider_background"></View>
56 </LinearLayout>