diff options
author | Danny Baumann <dannybaumann@web.de> | 2016-09-14 15:27:41 +0200 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2017-01-07 01:31:38 +0200 |
commit | d1d21b03e76499e3e2f48bfac7928e9adcb8ace2 (patch) | |
tree | 45fa67462de4325f72e24037b6783e5b80051963 /res/layout | |
parent | 765faad61f38b7de37ecd7f88155e80a77ac1f29 (diff) | |
download | android_packages_apps_Dialer-d1d21b03e76499e3e2f48bfac7928e9adcb8ace2.tar.gz android_packages_apps_Dialer-d1d21b03e76499e3e2f48bfac7928e9adcb8ace2.tar.bz2 android_packages_apps_Dialer-d1d21b03e76499e3e2f48bfac7928e9adcb8ace2.zip |
Re-add call stats feature.
Change-Id: Ib00ab753077788670f1d3390b2031beecb3b65c4
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/call_log_spinner_item.xml | 34 | ||||
-rw-r--r-- | res/layout/call_spinner.xml | 21 | ||||
-rw-r--r-- | res/layout/call_stats_detail.xml | 109 | ||||
-rw-r--r-- | res/layout/call_stats_detail_info.xml | 239 | ||||
-rw-r--r-- | res/layout/call_stats_detail_line.xml | 45 | ||||
-rw-r--r-- | res/layout/call_stats_fragment.xml | 80 | ||||
-rw-r--r-- | res/layout/call_stats_list_item.xml | 88 | ||||
-rw-r--r-- | res/layout/double_date_picker_dialog.xml | 67 |
8 files changed, 683 insertions, 0 deletions
diff --git a/res/layout/call_log_spinner_item.xml b/res/layout/call_log_spinner_item.xml new file mode 100644 index 000000000..045deb737 --- /dev/null +++ b/res/layout/call_log_spinner_item.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation, Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/CallLogSpinnerStyle" + android:layout_width="match_parent" + android:layout_height="40dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" /> diff --git a/res/layout/call_spinner.xml b/res/layout/call_spinner.xml new file mode 100644 index 000000000..708d06919 --- /dev/null +++ b/res/layout/call_spinner.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingStart="@dimen/call_log_outer_margin" + android:paddingEnd="@dimen/call_log_outer_margin" + android:paddingBottom="@dimen/call_log_inner_margin"> + <Spinner + android:id="@+id/filter_sub_spinner" + android:layout_width="0dip" + android:layout_height="@dimen/list_section_divider_min_height" + android:layout_weight="1.2" + android:layout_marginTop="5dip" /> + <Spinner + android:id="@+id/filter_status_spinner" + android:layout_width="0dip" + android:layout_height="@dimen/list_section_divider_min_height" + android:layout_weight="2" + android:layout_marginTop="5dip" /> +</LinearLayout> diff --git a/res/layout/call_stats_detail.xml b/res/layout/call_stats_detail.xml new file mode 100644 index 000000000..9a47ad68e --- /dev/null +++ b/res/layout/call_stats_detail.xml @@ -0,0 +1,109 @@ +<?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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/call_stats_detail" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" + android:background="@color/background_dialer_call_log" > + + <!-- Caller information "card" --> + <LinearLayout + android:id="@+id/caller_information" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="@dimen/call_detail_horizontal_margin" + android:paddingTop="@dimen/call_detail_top_margin" + android:paddingBottom="@dimen/call_detail_bottom_margin" + android:baselineAligned="false" + android:orientation="horizontal" + android:elevation="@dimen/call_detail_elevation" + android:focusable="true" + android:background="@color/background_dialer_white" > + + <QuickContactBadge + android:id="@+id/quick_contact_photo" + android:layout_width="@dimen/contact_photo_size" + android:layout_height="@dimen/contact_photo_size" + android:layout_alignParentStart="true" + android:layout_gravity="top" + android:layout_marginTop="3dp" + android:focusable="true" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:orientation="vertical" + android:gravity="center_vertical" + android:layout_marginStart="@dimen/call_detail_horizontal_margin"> + + <TextView + android:id="@+id/caller_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" + android:includeFontPadding="false" + android:layout_marginBottom="5dp" + android:singleLine="true" /> + + <TextView + android:id="@+id/caller_number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="@dimen/call_log_secondary_text_size" + android:layout_marginBottom="1dp" + android:singleLine="true" /> + + <TextView + android:id="@+id/phone_account_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="@dimen/call_log_secondary_text_size" + android:singleLine="true" + android:visibility="gone" + /> + </LinearLayout> + + <ImageView + android:id="@+id/call_back_button" + android:layout_width="@dimen/call_log_list_item_primary_action_dimen" + android:layout_height="@dimen/call_log_list_item_primary_action_dimen" + android:layout_marginEnd="16dp" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:src="@drawable/ic_call_24dp" + android:scaleType="center" + android:tint="@color/call_log_list_item_primary_action_icon_tint" + android:contentDescription="@string/description_call_log_call_action" + android:visibility="gone" /> + + </LinearLayout> + + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <!-- The actual details --> + <include layout="@layout/call_stats_detail_info" /> + + </ScrollView> + +</LinearLayout> diff --git a/res/layout/call_stats_detail_info.xml b/res/layout/call_stats_detail_info.xml new file mode 100644 index 000000000..c1c2fd6f9 --- /dev/null +++ b/res/layout/call_stats_detail_info.xml @@ -0,0 +1,239 @@ +<?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="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingStart="@dimen/call_detail_horizontal_margin" + android:paddingEnd="@dimen/call_detail_horizontal_margin" + android:paddingTop="@dimen/call_log_inner_margin" + android:paddingBottom="@dimen/call_log_inner_margin"> + + <TextView + android:id="@+id/date_filter" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@color/secondary_text_color" /> + + <RelativeLayout + android:id="@+id/duration_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/date_filter"> + + <TextView + android:id="@+id/durations_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/call_stats_title_durations" + android:layout_marginBottom="@dimen/call_log_vertical_padding" + android:textColor="?android:attr/colorAccent" + style="@android:style/TextAppearance.Material.Subhead" /> + + <TextView + android:id="@+id/total_duration_total" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_below="@id/durations_header" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_toStartOf="@id/total_duration_total" + android:layout_alignBaseline="@id/total_duration_total" + android:text="@string/call_stats_title_of_total" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <com.android.dialer.widget.LinearColorBar + android:id="@+id/duration_total_percent_bar" + android:layout_width="match_parent" + android:layout_below="@id/total_duration_total" + style="@style/CallStatsBarStyle" /> + + <TextView + android:id="@+id/total_duration_number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_below="@id/duration_total_percent_bar" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_toStartOf="@id/total_duration_number" + android:layout_alignBaseline="@id/total_duration_number" + android:text="@string/call_stats_title_for_number" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <com.android.dialer.widget.LinearColorBar + android:id="@+id/duration_number_percent_bar" + android:layout_width="match_parent" + android:layout_below="@id/total_duration_number" + style="@style/CallStatsBarStyle" /> + + <include + android:id="@+id/in_duration" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/duration_number_percent_bar" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + <include + android:id="@+id/out_duration" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/in_duration" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + </RelativeLayout> + + <TextView + android:id="@+id/count_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/duration_container" + android:layout_marginTop="@dimen/call_log_vertical_padding" + android:layout_marginBottom="@dimen/call_log_vertical_padding" + android:text="@string/call_stats_title_count" + android:textColor="?android:attr/colorAccent" + style="@android:style/TextAppearance.Material.Subhead" /> + + <TextView + android:id="@+id/total_count_total" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_below="@id/count_header" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_toStartOf="@id/total_count_total" + android:layout_alignBaseline="@id/total_count_total" + android:text="@string/call_stats_title_of_total" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <com.android.dialer.widget.LinearColorBar + android:id="@+id/count_total_percent_bar" + android:layout_width="match_parent" + android:layout_below="@id/total_count_total" + style="@style/CallStatsBarStyle" /> + + <TextView + android:id="@+id/total_count_number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_below="@id/count_total_percent_bar" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_toStartOf="@id/total_count_number" + android:layout_alignBaseline="@id/total_count_number" + android:text="@string/call_stats_title_for_number" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <com.android.dialer.widget.LinearColorBar + android:id="@+id/count_number_percent_bar" + android:layout_width="match_parent" + android:layout_below="@id/total_count_number" + style="@style/CallStatsBarStyle" /> + + <include + android:id="@+id/in_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/count_number_percent_bar" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + <include + android:id="@+id/out_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/in_count" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + <include + android:id="@+id/missed_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/out_count" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + <include + android:id="@+id/blocked_count" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/missed_count" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + <TextView + android:id="@+id/average_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/blocked_count" + android:layout_marginTop="@dimen/call_log_vertical_padding" + android:layout_marginBottom="@dimen/call_log_vertical_padding" + android:text="@string/call_stats_title_average_duration" + android:textColor="?android:attr/colorAccent" + style="@android:style/TextAppearance.Material.Subhead" /> + + <include + android:id="@+id/in_average" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/average_header" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + + <include + android:id="@+id/out_average" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/in_average" + android:layout_marginBottom="@dimen/call_log_icon_margin" + layout="@layout/call_stats_detail_line" /> + +</RelativeLayout> diff --git a/res/layout/call_stats_detail_line.xml b/res/layout/call_stats_detail_line.xml new file mode 100644 index 000000000..579caa1ef --- /dev/null +++ b/res/layout/call_stats_detail_line.xml @@ -0,0 +1,45 @@ +<?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"> + + <com.android.dialer.calllog.CallTypeIconsView + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + <TextView + android:id="@+id/value" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginStart="@dimen/call_log_icon_margin" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <TextView + android:id="@+id/percent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/call_log_icon_margin" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="@dimen/call_log_secondary_text_size" /> + +</LinearLayout> diff --git a/res/layout/call_stats_fragment.xml b/res/layout/call_stats_fragment.xml new file mode 100644 index 000000000..d646caf88 --- /dev/null +++ b/res/layout/call_stats_fragment.xml @@ -0,0 +1,80 @@ +<?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. --> +<android.support.design.widget.CoordinatorLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:design="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/background_dialer_call_log" + design:statusBarBackground="@null" > + + <android.support.design.widget.AppBarLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:outlineProvider="bounds" + android:elevation="1dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + design:layout_scrollFlags="scroll|enterAlways"> + + <include layout="@layout/call_spinner" /> + + <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:visibility="gone" + 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" + android:visibility="gone" + android:background="@null" /> + </LinearLayout> + + </android.support.design.widget.AppBarLayout> + + <android.support.v7.widget.RecyclerView + android:id="@+id/recycler_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingStart="@dimen/call_log_horizontal_margin" + android:paddingEnd="@dimen/call_log_horizontal_margin" + design:layout_behavior="@string/appbar_scrolling_view_behavior" /> + + <com.android.dialer.widget.EmptyContentView + android:id="@+id/empty_list_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="gone" /> + +</android.support.design.widget.CoordinatorLayout> diff --git a/res/layout/call_stats_list_item.xml b/res/layout/call_stats_list_item.xml new file mode 100644 index 000000000..ea9cc0776 --- /dev/null +++ b/res/layout/call_stats_list_item.xml @@ -0,0 +1,88 @@ +<?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. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:ex="http://schemas.android.com/apk/res/com.android.dialer" + android:id="@+id/primary_action_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="@dimen/call_log_start_margin" + android:paddingEnd="@dimen/call_log_outer_margin" + android:paddingTop="@dimen/call_log_vertical_padding" + android:paddingBottom="@dimen/call_log_vertical_padding" + android:background="?android:attr/selectableItemBackground"> + + <QuickContactBadge + android:id="@+id/quick_contact_photo" + android:layout_width="@dimen/contact_photo_size" + android:layout_height="@dimen/contact_photo_size" + android:layout_marginEnd="@dimen/call_log_start_margin" + android:paddingTop="2dp" /> + + <TextView + android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toEndOf="@id/quick_contact_photo" + android:ellipsize="marquee" + android:singleLine="true" + android:textColor="?attr/call_log_primary_text_color" + android:textSize="@dimen/call_log_primary_text_size" /> + + <TextView + android:id="@+id/percent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toEndOf="@id/name" + android:layout_alignBaseline="@id/name" + android:layout_alignParentEnd="true" + android:gravity="end" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="@dimen/call_log_secondary_text_size" /> + + <com.android.dialer.widget.LinearColorBar + android:id="@+id/percent_bar" + android:layout_width="wrap_content" + android:layout_below="@id/name" + android:layout_toEndOf="@id/quick_contact_photo" + android:layout_alignParentEnd="true" + style="@style/CallStatsBarStyle" /> + + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/percent_bar" + android:layout_toEndOf="@id/quick_contact_photo" + android:layout_marginEnd="8dp" + android:singleLine="true" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="@dimen/call_log_secondary_text_size" /> + + <TextView + android:id="@+id/number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/percent_bar" + android:layout_toEndOf="@id/label" + android:layout_alignBaseline="@id/label" + android:singleLine="true" + android:textColor="?attr/call_log_secondary_text_color" + android:textSize="12sp" /> + +</RelativeLayout> 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> |