diff options
author | Nancy Chen <nancychen@google.com> | 2014-10-21 18:53:11 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-10-22 17:38:13 -0700 |
commit | 90917145825ca7e8e34d407c72c80a15300fafdc (patch) | |
tree | d057175fc73c345fd621200ad35086f25fdd2403 /res/layout | |
parent | 14558de5e203f981433d51b46a795a3a980c3e33 (diff) | |
download | android_packages_apps_ContactsCommon-90917145825ca7e8e34d407c72c80a15300fafdc.tar.gz android_packages_apps_ContactsCommon-90917145825ca7e8e34d407c72c80a15300fafdc.tar.bz2 android_packages_apps_ContactsCommon-90917145825ca7e8e34d407c72c80a15300fafdc.zip |
Add an option to set the selected phone account as the default. (3/3)
Modify the phoneAccountSelected method to support the option to set the
selected phone account as the default for outgoing phone calls.
Add checkbox to the select account dialog for user interaction.
Bug: 18078232
Change-Id: I7e6af5238fe2ff95d7f1e0622f7fa24111147f4e
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/default_account_checkbox.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/res/layout/default_account_checkbox.xml b/res/layout/default_account_checkbox.xml new file mode 100644 index 00000000..15180761 --- /dev/null +++ b/res/layout/default_account_checkbox.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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/default_account_checkbox_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:orientation="vertical"> + <!-- Dummy to enable right-justification of checkbox --> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + <CheckBox + android:id="@+id/default_account_checkbox_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="20dip" + android:layout_marginLeft="20dip" + android:layout_marginBottom="20dip" + android:gravity="center" + android:textSize="14sp" + android:textAlignment="viewStart" + android:text="@string/set_default_account"/> +</LinearLayout>
\ No newline at end of file |