diff options
author | Danny Baumann <dannybaumann@web.de> | 2014-09-05 11:39:16 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2014-11-17 14:55:48 +0100 |
commit | 315d9119f681048974e03080bca69290b73c9914 (patch) | |
tree | 1f1491d2eb3623a7f9fe4db9b77435fb4db0f6a9 /res/layout | |
parent | bb88afb43b92d9d7716ad64ebdd616e95a1d43cd (diff) | |
download | android_packages_apps_Dialer-315d9119f681048974e03080bca69290b73c9914.tar.gz android_packages_apps_Dialer-315d9119f681048974e03080bca69290b73c9914.tar.bz2 android_packages_apps_Dialer-315d9119f681048974e03080bca69290b73c9914.zip |
Rewrite speed dial feature.
Change-Id: I346bcf4552cdf2ddfd3c9b1219bc07c20332d1a2
Diffstat (limited to 'res/layout')
-rwxr-xr-x | res/layout/speed_dial_item.xml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/res/layout/speed_dial_item.xml b/res/layout/speed_dial_item.xml new file mode 100755 index 000000000..8140fcb3a --- /dev/null +++ b/res/layout/speed_dial_item.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 The CyanogenMod 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:paddingStart="16dip" + android:paddingEnd="16dip" + android:orientation="horizontal" + android:minHeight="?android:attr/listPreferredItemHeight"> + + <TextView + android:id="@+id/index" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginEnd="12dp" + android:textStyle="bold" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:orientation="vertical"> + + <TextView + android:id="@+id/name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <TextView + android:id="@+id/number" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <QuickContactBadge + android:id="@+id/photo" + android:layout_width="@dimen/contact_photo_size" + android:layout_height="@dimen/contact_photo_size" + android:layout_gravity="center_vertical" + android:layout_marginStart="8dp" /> + +</LinearLayout> + |