diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/call_stats_detail.xml | 225 | ||||
-rw-r--r-- | res/layout/call_stats_detail_info.xml | 215 | ||||
-rw-r--r-- | res/layout/call_stats_fragment.xml | 85 | ||||
-rw-r--r-- | res/layout/call_stats_list_item.xml | 115 | ||||
-rw-r--r-- | res/layout/call_stats_nav_item.xml | 39 | ||||
-rw-r--r-- | res/layout/double_date_picker_dialog.xml | 67 |
6 files changed, 746 insertions, 0 deletions
diff --git a/res/layout/call_stats_detail.xml b/res/layout/call_stats_detail.xml new file mode 100644 index 000000000..656218ff2 --- /dev/null +++ b/res/layout/call_stats_detail.xml @@ -0,0 +1,225 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2009 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. +--> + +<com.android.dialer.widget.AnchoredScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:ex="http://schemas.android.com/apk/res/com.android.dialer" + android:layout_width="match_parent" + android:layout_height="match_parent" + ex:anchorView="@+id/photo_text_bar_dummy" + ex:anchoredView="@+id/controls" > + + <RelativeLayout + android:id="@+id/call_stats_detail" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" > + + <!-- This layout defines the position of the scroll anchor. + Sizes are supposed to match their counterpart in controls --> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_alignParentTop="true" > + + <!-- Contact photo placeholder --> + <com.android.contacts.common.widget.ProportionalLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:id="@+id/photo_dummy" + ex:direction="widthToHeight" + ex:ratio="0.5" > + + <!-- Proportional layout requires a view in it. --> + <View + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + </com.android.contacts.common.widget.ProportionalLayout> + + <!-- Contact name placeholder --> + <View + android:id="@+id/photo_text_bar_dummy" + android:layout_width="match_parent" + android:layout_height="42dip" + android:layout_alignBottom="@id/photo_dummy" + android:layout_alignParentStart="true" /> + + </RelativeLayout> + + <!-- The actual details --> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/controls" > + + <include layout="@layout/call_stats_detail_info" /> + </LinearLayout> + + <!-- The contents of the title block --> + + <RelativeLayout + android:id="@+id/controls" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" > + + <com.android.contacts.common.widget.ProportionalLayout + android:id="@+id/contact_background_sizer" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + ex:direction="widthToHeight" + ex:ratio="0.5" > + + <ImageView + android:id="@+id/contact_background" + android:layout_width="match_parent" + android:layout_height="0dip" + android:adjustViewBounds="true" + android:scaleType="centerCrop" /> + + </com.android.contacts.common.widget.ProportionalLayout> + + <LinearLayout + android:id="@+id/separator" + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_below="@+id/contact_background_sizer" + android:background="@color/background_dialer_light" /> + + <View + android:id="@+id/photo_text_bar" + android:layout_width="match_parent" + android:layout_height="42dip" + android:layout_alignBottom="@id/contact_background_sizer" + android:layout_alignParentStart="true" + android:background="#7F000000" /> + + <ImageView + android:id="@+id/main_action" + android:layout_width="wrap_content" + android:layout_height="0dip" + android:layout_alignBottom="@id/photo_text_bar" + android:layout_alignEnd="@id/photo_text_bar" + android:layout_alignTop="@id/photo_text_bar" + android:layout_marginEnd="@dimen/call_log_outer_margin" + android:scaleType="center" /> + + <TextView + android:id="@+id/header_text" + android:layout_width="wrap_content" + android:layout_height="0dip" + android:layout_alignBottom="@id/photo_text_bar" + android:layout_alignStart="@id/photo_text_bar" + android:layout_alignTop="@id/photo_text_bar" + android:layout_marginStart="@dimen/call_detail_contact_name_margin" + android:layout_marginEnd="@dimen/call_log_inner_margin" + android:layout_toStartOf="@id/main_action" + android:gravity="center_vertical" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?attr/call_log_header_color" /> + + <ImageButton + android:id="@+id/main_action_push_layer" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignBottom="@id/contact_background_sizer" + android:layout_alignStart="@id/contact_background_sizer" + android:layout_alignEnd="@id/contact_background_sizer" + android:layout_alignTop="@id/contact_background_sizer" + android:background="?android:attr/selectableItemBackground" /> + + <FrameLayout + android:id="@+id/call_and_sms" + android:layout_width="match_parent" + android:layout_height="@dimen/call_log_list_item_height" + android:layout_below="@id/main_action_push_layer" + android:layout_marginBottom="@dimen/call_detail_button_spacing" + android:layout_marginTop="@dimen/call_detail_button_spacing" + android:background="@color/background_dialer_list_items" + android:gravity="center_vertical" > + + <LinearLayout + android:id="@+id/call_and_sms_main_action" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?android:attr/selectableItemBackground" + android:focusable="true" + android:orientation="horizontal" > + + <LinearLayout + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="vertical" + android:paddingStart="@dimen/call_log_indent_margin" > + + <TextView + android:id="@+id/call_and_sms_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:paddingEnd="@dimen/call_log_icon_margin" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?attr/call_log_primary_text_color" /> + + <TextView + android:id="@+id/call_and_sms_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:paddingEnd="@dimen/call_log_icon_margin" + android:singleLine="true" + android:textAllCaps="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?attr/call_log_primary_text_color" /> + </LinearLayout> + + <View + android:id="@+id/call_and_sms_divider" + android:layout_width="1px" + android:layout_height="32dip" + android:layout_gravity="center_vertical" + android:background="@color/background_dialer_light" /> + + <ImageView + android:id="@+id/call_and_sms_icon" + android:layout_width="@color/call_log_voicemail_highlight_color" + android:layout_height="match_parent" + android:background="?android:attr/selectableItemBackground" + android:focusable="true" + android:gravity="center" + android:paddingStart="@dimen/call_log_inner_margin" + android:paddingEnd="@dimen/call_log_outer_margin" + android:scaleType="centerInside" /> + + </LinearLayout> + + </FrameLayout> + + </RelativeLayout> + + </RelativeLayout> + +</com.android.dialer.widget.AnchoredScrollView> diff --git a/res/layout/call_stats_detail_info.xml b/res/layout/call_stats_detail_info.xml new file mode 100644 index 000000000..70716700a --- /dev/null +++ b/res/layout/call_stats_detail_info.xml @@ -0,0 +1,215 @@ +<?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" + xmlns:ex="http://schemas.android.com/apk/res/com.android.dialer" + android:id="@+id/call_stats_info" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/call_detail_contact_name_margin" + android:layout_marginTop="@dimen/call_log_outer_margin" > + + <TextView + android:id="@+id/date_filter" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_marginBottom="@dimen/call_log_icon_margin" + android:textColor="@color/secondary_text_color" /> + + <LinearLayout + android:id="@+id/total_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/call_log_icon_margin" + android:layout_below="@id/date_filter" > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@drawable/ic_call_inout_holo_dark" /> + + <TextView + android:id="@+id/total_summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_below="@id/date_filter" + android:layout_marginStart="@dimen/call_log_icon_margin" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + <TextView + android:id="@+id/total_duration" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/total_container" + android:layout_marginBottom="@dimen/call_log_inner_margin" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + <com.android.dialer.widget.PieChartView + android:id="@+id/pie_chart" + android:layout_width="@dimen/call_stats_details_chart_size" + android:layout_height="@dimen/call_stats_details_chart_size" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:layout_below="@id/total_duration" + ex:outlineColor="@color/call_stats_bar_background" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_toStartOf="@id/pie_chart" + android:layout_below="@id/total_duration" + android:divider="?android:attr/dividerHorizontal" + android:orientation="vertical" + android:showDividers="middle" > + + <LinearLayout + android:id="@+id/in_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/call_log_icon_margin" + android:layout_marginTop="@dimen/call_log_icon_margin" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@drawable/ic_call_incoming_holo_dark" /> + + <TextView + android:id="@+id/in_summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginStart="@dimen/call_log_icon_margin" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + <TextView + android:id="@+id/in_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + <TextView + android:id="@+id/in_duration" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/out_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/call_log_icon_margin" + android:layout_marginTop="@dimen/call_log_icon_margin" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@drawable/ic_call_outgoing_holo_dark" /> + + <TextView + android:id="@+id/out_summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginStart="@dimen/call_log_icon_margin" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + <TextView + android:id="@+id/out_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + <TextView + android:id="@+id/out_duration" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/missed_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/call_log_icon_margin" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:src="@drawable/ic_call_missed_holo_dark" /> + + <TextView + android:id="@+id/missed_summary" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/call_log_icon_margin" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + <TextView + android:id="@+id/missed_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + </LinearLayout> + + </LinearLayout> + +</RelativeLayout> diff --git a/res/layout/call_stats_fragment.xml b/res/layout/call_stats_fragment.xml new file mode 100644 index 000000000..df121335b --- /dev/null +++ b/res/layout/call_stats_fragment.xml @@ -0,0 +1,85 @@ +<?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. +--> + +<!-- Layout parameters are set programmatically. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:divider="?android:attr/dividerHorizontal" + android:orientation="vertical" + android:showDividers="end" > + + <LinearLayout + android:id="@+id/call_stats_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingTop="@dimen/call_log_inner_margin" + android:visibility="gone" > + + <TextView + android:id="@+id/date_filter" + style="@style/ContactListSeparatorTextViewStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/call_log_outer_margin" + android:layout_marginEnd="@dimen/call_log_outer_margin" + android:background="@null" /> + + <TextView + android:id="@+id/sum_header" + style="@style/ContactListSeparatorTextViewStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/call_log_outer_margin" + android:layout_marginEnd="@dimen/call_log_outer_margin" + android:paddingBottom="@dimen/call_log_inner_margin" /> + + <View + android:id="@+id/call_stats_divider" + android:layout_width="match_parent" + android:layout_height="1px" + android:layout_gravity="bottom" + android:layout_marginStart="@dimen/call_log_outer_margin" + android:layout_marginEnd="@dimen/call_log_outer_margin" + android:background="#55ffffff" /> + </LinearLayout> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:divider="@null" + android:fadingEdge="none" + android:scrollbarStyle="outsideOverlay" /> + + <TextView + android:id="@android:id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="@dimen/empty_message_top_margin" + android:gravity="center" + android:text="@string/recentCalls_empty" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="?android:attr/textColorSecondary" /> + </FrameLayout> + +</LinearLayout> diff --git a/res/layout/call_stats_list_item.xml b/res/layout/call_stats_list_item.xml new file mode 100644 index 000000000..29d584daf --- /dev/null +++ b/res/layout/call_stats_list_item.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2007 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. +--> + +<view + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:ex="http://schemas.android.com/apk/res/com.android.dialer" + class="com.android.dialer.calllog.CallLogListItemView" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/call_log_list_item" + android:orientation="vertical" +> + + <GridLayout + android:id="@+id/primary_action_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginStart="@dimen/call_log_outer_margin" + android:layout_marginEnd="@dimen/call_log_outer_margin" + android:background="?android:attr/selectableItemBackground" + android:columnCount="3" + android:focusable="true" + android:nextFocusLeft="@+id/quick_contact_photo" > + + <QuickContactBadge + android:id="@+id/quick_contact_photo" + android:layout_width="@dimen/call_log_list_contact_photo_size" + android:layout_height="@dimen/call_log_list_contact_photo_size" + android:layout_marginBottom="@dimen/call_log_icon_margin" + android:layout_marginTop="@dimen/call_log_icon_margin" + android:layout_rowSpan="3" + android:focusable="true" + android:nextFocusRight="@id/primary_action_view" /> + + <TextView + android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_marginStart="@dimen/call_log_inner_margin" + android:layout_marginTop="@dimen/call_log_icon_margin" + android:ellipsize="marquee" + android:singleLine="true" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="18sp" /> + + <TextView + android:id="@+id/percent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="fill_horizontal|bottom" + android:gravity="end" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="14sp" /> + + <com.android.dialer.widget.LinearColorBar + android:id="@+id/percent_bar" + android:layout_height="10dp" + android:layout_columnSpan="2" + android:layout_gravity="fill_horizontal" + android:layout_marginBottom="@dimen/call_log_icon_margin" + android:layout_marginStart="@dimen/call_log_inner_margin" + android:layout_marginTop="@dimen/call_log_icon_margin" + android:orientation="horizontal" + android:paddingEnd="4dp" + android:paddingStart="4dp" + ex:backgroundColor="@color/call_stats_bar_background" + ex:blueColor="@color/call_stats_incoming" + ex:greenColor="@color/call_stats_outgoing" + ex:redColor="@color/call_stats_missed" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_columnSpan="2" + android:layout_marginStart="@dimen/call_log_inner_margin" + android:orientation="horizontal" > + + <TextView + android:id="@+id/number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="@dimen/call_log_icon_margin" + android:ellipsize="marquee" + android:singleLine="true" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="14sp" /> + + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="@dimen/call_log_icon_margin" + android:ellipsize="marquee" + android:singleLine="true" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="14sp" + android:textStyle="bold" /> + </LinearLayout> + </GridLayout> + +</view> diff --git a/res/layout/call_stats_nav_item.xml b/res/layout/call_stats_nav_item.xml new file mode 100644 index 000000000..c6852b888 --- /dev/null +++ b/res/layout/call_stats_nav_item.xml @@ -0,0 +1,39 @@ +<?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="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <ImageView + android:id="@+id/call_stats_nav_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:paddingStart="8dp" /> + + <TextView + android:id="@+id/call_stats_nav_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:minHeight="40dp" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:textAppearance="?android:attr/textAppearanceListItemSmall" /> + +</LinearLayout> diff --git a/res/layout/double_date_picker_dialog.xml b/res/layout/double_date_picker_dialog.xml new file mode 100644 index 000000000..ec4a1f25b --- /dev/null +++ b/res/layout/double_date_picker_dialog.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2007, 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="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:orientation="vertical" > + + <Spinner + android:id="@+id/date_quick_selection" + android:layout_marginTop="3dp" + android:layout_marginBottom="3dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="-12dp" + android:layout_marginRight="3dp" + android:layout_marginTop="3dp" + android:text="@string/call_stats_filter_from" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <DatePicker + android:id="@+id/date_picker_from" + android:datePickerMode="spinner" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_weight="1" + android:calendarViewShown="false" + android:spinnersShown="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="-12dp" + android:layout_marginRight="4dp" + android:text="@string/call_stats_filter_to" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <DatePicker + android:id="@+id/date_picker_to" + android:datePickerMode="spinner" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_weight="1" + android:calendarViewShown="false" + android:spinnersShown="true" /> + +</LinearLayout> |