Owen Lin | bc552bd | 2011-09-09 13:33:44 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
Chih-Chung Chang | 710db77 | 2011-09-19 11:09:39 +0800 | [diff] [blame] | 16 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | android:orientation="vertical" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content"> |
| 20 | <RelativeLayout |
| 21 | android:layout_width="fill_parent" |
| 22 | android:layout_height="40dp"> |
| 23 | <TextView android:id="@+id/status" |
| 24 | android:layout_width="wrap_content" |
| 25 | android:layout_height="wrap_content" |
| 26 | android:layout_centerVertical="true" |
| 27 | android:layout_centerHorizontal="true" /> |
| 28 | <ProgressBar android:id="@+id/progress" |
| 29 | style="?android:attr/progressBarStyleHorizontal" |
| 30 | android:max="100" |
| 31 | android:progress="30" |
| 32 | android:secondaryProgress="65" |
| 33 | android:layout_marginTop="2dp" |
| 34 | android:layout_marginBottom="2dp" |
| 35 | android:layout_width="130dp" |
| 36 | android:layout_height="4dp" |
| 37 | android:layout_below="@id/status" |
| 38 | android:layout_centerHorizontal="true"/> |
| 39 | </RelativeLayout> |
| 40 | <RelativeLayout android:layout_width="fill_parent" |
| 41 | android:layout_height="@dimen/manage_cache_bottom_height" |
| 42 | android:background="#1f1f1f"> |
| 43 | <TextView android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:text="@string/make_available_offline" |
| 46 | android:layout_alignParentLeft="true" |
| 47 | android:layout_centerVertical="true" |
Chih-Chung Chang | fa7e581 | 2011-09-21 14:04:34 +0800 | [diff] [blame^] | 48 | android:gravity="center_vertical" |
Chih-Chung Chang | 8f81d50 | 2011-09-21 11:42:07 +0800 | [diff] [blame] | 49 | android:drawableLeft="@drawable/ic_menu_make_offline" |
Chih-Chung Chang | 710db77 | 2011-09-19 11:09:39 +0800 | [diff] [blame] | 50 | android:drawablePadding="3dp"/> |
Owen Lin | bc552bd | 2011-09-09 13:33:44 +0800 | [diff] [blame] | 51 | <Button android:id="@+id/done" |
Chih-Chung Chang | 710db77 | 2011-09-19 11:09:39 +0800 | [diff] [blame] | 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="match_parent" |
| 54 | android:text="@string/done" |
| 55 | android:layout_alignParentRight="true"/> |
| 56 | </RelativeLayout> |
| 57 | </LinearLayout> |