maxwen | cbe9ed7 | 2017-01-23 02:17:43 +0100 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Performance Control - An Android CPU Control application |
| 4 | Copyright (C) Brandon Valosek, 2011 <bvalosek@gmail.com> |
| 5 | Copyright (C) 2012 James Roberts |
| 6 | |
| 7 | This program is free software: you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation, either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | --> |
| 20 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
| 23 | android:orientation="vertical" |
| 24 | android:paddingStart="10dp" |
| 25 | android:paddingEnd="10dp" > |
| 26 | <LinearLayout |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="wrap_content" |
| 29 | android:orientation="horizontal" |
| 30 | android:paddingStart="10dp" > |
| 31 | <TextView |
| 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" |
| 34 | android:layout_gravity="center_vertical" |
| 35 | android:text="@string/spinner_type_title"/> |
| 36 | <Spinner |
| 37 | android:id="@+id/list_type_select" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:gravity="center_vertical" /> |
| 41 | </LinearLayout> |
| 42 | <LinearLayout |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:orientation="horizontal" |
| 46 | android:paddingStart="10dp" > |
| 47 | <LinearLayout |
| 48 | android:layout_width="0dp" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:orientation="horizontal" |
| 51 | android:gravity="center_vertical" |
| 52 | android:layout_weight="0.5" > |
| 53 | <TextView |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_gravity="center_vertical" |
| 57 | android:text="@string/spinner_period_title"/> |
| 58 | <Spinner |
| 59 | android:id="@+id/period_type_select" |
| 60 | android:layout_width="match_parent" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:gravity="center_vertical" /> |
| 63 | </LinearLayout> |
| 64 | <LinearLayout |
| 65 | android:id="@+id/state_time_select_group" |
| 66 | android:layout_width="0dp" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:orientation="horizontal" |
| 69 | android:gravity="center_vertical|end" |
| 70 | android:visibility="gone" |
| 71 | android:paddingStart="10dp" |
| 72 | android:layout_weight="0.5"> |
| 73 | <TextView |
| 74 | android:layout_width="wrap_content" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:layout_gravity="center_vertical" |
| 77 | android:text="@string/spinner_state_time_title"/> |
| 78 | <Spinner |
| 79 | android:id="@+id/state_time_select" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:gravity="center_vertical" /> |
| 83 | </LinearLayout> |
| 84 | </LinearLayout> |
| 85 | <LinearLayout |
| 86 | android:id="@+id/ui_state_time" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="wrap_content" |
| 89 | android:orientation="horizontal" |
| 90 | android:paddingStart="10dp" |
| 91 | android:paddingEnd="10dp" |
| 92 | android:paddingBottom="10dp" |
| 93 | android:paddingTop="10dp" > |
| 94 | <TextView |
| 95 | android:id="@+id/ui_total_state_time" |
| 96 | android:layout_width="0dp" |
| 97 | android:layout_height="wrap_content" |
| 98 | android:layout_gravity="center_vertical" |
| 99 | android:layout_weight="1" /> |
| 100 | <TextView |
| 101 | android:id="@+id/ui_total_wakelock_time" |
| 102 | android:layout_width="wrap_content" |
| 103 | android:layout_height="wrap_content" |
| 104 | android:layout_gravity="center_vertical|end" /> |
| 105 | </LinearLayout> |
| 106 | <View |
| 107 | android:layout_width="match_parent" |
| 108 | android:layout_height="2dp" |
| 109 | android:paddingStart="10dp" |
| 110 | android:paddingEnd="10dp" |
| 111 | android:background="#28ffffff" /> |
| 112 | <ScrollView |
| 113 | android:layout_width="match_parent" |
| 114 | android:layout_height="match_parent" |
| 115 | android:orientation="vertical" |
| 116 | android:paddingStart="10dp" |
| 117 | android:paddingEnd="10dp" |
| 118 | android:paddingTop="10dp" |
| 119 | android:scrollbarStyle="insideInset" > |
| 120 | <LinearLayout |
| 121 | android:layout_width="match_parent" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:orientation="vertical" > |
| 124 | <LinearLayout |
| 125 | android:id="@+id/ui_states_view" |
| 126 | android:layout_width="match_parent" |
| 127 | android:layout_height="wrap_content" |
| 128 | android:orientation="vertical" |
| 129 | android:paddingBottom="10dp" /> |
| 130 | <TextView |
| 131 | android:id="@+id/ui_kernel_wakelock_warning" |
| 132 | android:layout_width="match_parent" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:padding="15dp" |
| 135 | android:text="@string/no_kernel_wakelock_file_found" |
| 136 | android:textSize="20sp" |
| 137 | android:visibility="gone" /> |
| 138 | <LinearLayout |
| 139 | android:id="@+id/ui_progress" |
| 140 | android:layout_width="match_parent" |
| 141 | android:layout_height="wrap_content" |
| 142 | android:gravity="center" |
| 143 | android:orientation="vertical" |
| 144 | android:visibility="gone" > |
| 145 | <ProgressBar |
| 146 | android:layout_width="wrap_content" |
| 147 | android:layout_height="wrap_content" /> |
| 148 | </LinearLayout> |
| 149 | </LinearLayout> |
| 150 | </ScrollView> |
| 151 | </LinearLayout> |