diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 9 | ||||
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadKeyButton.java | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index c976a9e74..406612288 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -53,6 +53,7 @@ import android.text.style.RelativeSizeSpan; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; +import android.util.TypedValue; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.Menu; @@ -626,10 +627,12 @@ public class DialpadFragment extends Fragment R.string.dialpad_8_letters, R.string.dialpad_9_letters, R.string.dialpad_star_letters, R.string.dialpad_pound_letters}; + final Resources resources = getResources(); + DialpadKeyButton dialpadKey; TextView numberView; TextView lettersView; - final Resources resources = getResources(); + for (int i = 0; i < buttonIds.length; i++) { dialpadKey = (DialpadKeyButton) fragmentView.findViewById(buttonIds[i]); dialpadKey.setLayoutParams(new TableRow.LayoutParams( @@ -642,6 +645,10 @@ public class DialpadFragment extends Fragment dialpadKey.setContentDescription(numberString); if (lettersView != null) { lettersView.setText(resources.getString(letterIds[i])); + if (buttonIds[i] == R.id.zero) { + lettersView.setTextSize(TypedValue.COMPLEX_UNIT_PX, resources.getDimension( + R.dimen.dialpad_key_plus_size)); + } } } diff --git a/src/com/android/dialer/dialpad/DialpadKeyButton.java b/src/com/android/dialer/dialpad/DialpadKeyButton.java index 9aae631a5..9a20993d6 100644 --- a/src/com/android/dialer/dialpad/DialpadKeyButton.java +++ b/src/com/android/dialer/dialpad/DialpadKeyButton.java @@ -25,7 +25,7 @@ import android.view.View; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityManager; import android.view.accessibility.AccessibilityNodeInfo; -import android.widget.RelativeLayout; +import android.widget.FrameLayout; /** * Custom class for dialpad buttons. @@ -33,7 +33,7 @@ import android.widget.RelativeLayout; * This class implements lift-to-type interaction when touch exploration is * enabled. */ -public class DialpadKeyButton extends RelativeLayout { +public class DialpadKeyButton extends FrameLayout { /** Accessibility manager instance used to check touch exploration state. */ private AccessibilityManager mAccessibilityManager; |