diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/data_usage_header.xml | 49 | ||||
-rw-r--r-- | res/layout/data_usage_summary.xml | 38 | ||||
-rw-r--r-- | res/layout/tab_indicator_thin_holo.xml | 33 |
3 files changed, 108 insertions, 12 deletions
diff --git a/res/layout/data_usage_header.xml b/res/layout/data_usage_header.xml new file mode 100644 index 0000000..4d8a5dd --- /dev/null +++ b/res/layout/data_usage_header.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:id="@+id/switches" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingLeft="16dip" + android:paddingRight="16dip"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/data_usage_cycle" /> + + <Spinner + android:id="@+id/cycles" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" /> + + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/data_usage_summary.xml b/res/layout/data_usage_summary.xml index 9a356ae..fc62465 100644 --- a/res/layout/data_usage_summary.xml +++ b/res/layout/data_usage_summary.xml @@ -14,20 +14,34 @@ limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<TabHost xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/tabhost" android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> + android:layout_height="match_parent"> - <FrameLayout - android:id="@+id/chart_container" + <LinearLayout android:layout_width="match_parent" - android:layout_height="200dip" /> + android:layout_height="match_parent" + android:orientation="vertical"> - <ListView - android:id="@+id/list" - android:layout_width="match_parent" - android:layout_height="0dip" - android:layout_weight="1" /> + <TabWidget + android:id="@android:id/tabs" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <!-- give an empty content area to make tabhost happy --> + <FrameLayout + android:id="@android:id/tabcontent" + android:layout_width="0dip" + android:layout_height="0dip" /> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" /> + + </LinearLayout> -</LinearLayout> +</TabHost> diff --git a/res/layout/tab_indicator_thin_holo.xml b/res/layout/tab_indicator_thin_holo.xml new file mode 100644 index 0000000..e4c4652 --- /dev/null +++ b/res/layout/tab_indicator_thin_holo.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="0dp" + android:layout_height="48dp" + android:layout_weight="1" + android:background="@*android:drawable/tab_indicator_holo"> + + <TextView + android:id="@android:id/title" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:singleLine="true" + android:ellipsize="marquee" + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceMedium" /> + +</RelativeLayout> |