5f8d1782a166688a0692775b7a0c5ba7891dc284
[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 android:textColor="?android:attr/textColorPrimary"
43 android:textSize="18sp"
44 android:textStyle="bold"
45 />
46 <TextView android:id="@+id/text"
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
49 android:layout_marginTop="-2dp"
50 android:layout_marginBottom="-2dp"
51 android:singleLine="true"
52 android:fadingEdge="horizontal"
53 android:ellipsize="marquee"
54 android:textColor="?android:attr/textColorSecondary"
55 android:textSize="16sp"
56 />
57 <FrameLayout android:id="@+id/progressHolder"
58 android:layout_width="match_parent"
59 android:layout_height="12dp"
60 >
61 <!-- the FrameLayout is needed to change visibility of the
62 progress bar in Android 2.2, even though
63 https://code.google.com/p/android/issues/detail?id=11040 -->
64 <ProgressBar
65 android:id="@+id/progress"
66 android:layout_width="match_parent"
67 android:layout_height="match_parent"
68 style="?android:attr/progressBarStyleHorizontal"
69 />
70 </FrameLayout>
71 </LinearLayout>
72 </LinearLayout>