Fixed. App crash when setting a path without slash
[pub/Android/ownCloud.git] / res / layout-v11 / notification_with_progress_bar.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4 Copyright (C) 2014 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 >
22 <ImageView android:id="@+id/icon"
23 android:layout_width="@android:dimen/notification_large_icon_width"
24 android:layout_height="@android:dimen/notification_large_icon_height"
25 android:scaleType="center"
26 />
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:layout_gravity="center"
31 android:minHeight="64dp"
32 android:orientation="vertical"
33 android:paddingRight="12dp"
34 android:paddingLeft="12dp"
35 >
36 <TextView android:id="@+id/title"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:singleLine="true"
40 android:ellipsize="marquee"
41 android:fadingEdge="horizontal"
42 style="@style/Theme.ownCloud.NotificationText.Title"
43 />
44 <TextView android:id="@+id/text"
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:layout_marginTop="-2dp"
48 android:layout_marginBottom="-2dp"
49 android:singleLine="true"
50 android:fadingEdge="horizontal"
51 android:ellipsize="marquee"
52 style="@style/Theme.ownCloud.NotificationText.Content"
53 />
54 <FrameLayout android:id="@+id/progressHolder"
55 android:layout_width="match_parent"
56 android:layout_height="12dp"
57 >
58 <!-- the FrameLayout is needed to change visibility of the
59 progress bar in Android 2.2, even though
60 https://code.google.com/p/android/issues/detail?id=11040 -->
61 <ProgressBar
62 android:id="@+id/progress"
63 android:layout_width="match_parent"
64 android:layout_height="match_parent"
65 style="?android:attr/progressBarStyleHorizontal"
66 />
67 </FrameLayout>
68 </LinearLayout>
69 </LinearLayout>