diff options
Diffstat (limited to 'java/com/android/incallui/answer/impl/res/values')
-rw-r--r-- | java/com/android/incallui/answer/impl/res/values/attrs.xml | 26 | ||||
-rw-r--r-- | java/com/android/incallui/answer/impl/res/values/dimens.xml | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/java/com/android/incallui/answer/impl/res/values/attrs.xml b/java/com/android/incallui/answer/impl/res/values/attrs.xml new file mode 100644 index 000000000..1086e1ca5 --- /dev/null +++ b/java/com/android/incallui/answer/impl/res/values/attrs.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2017 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. +--> +<resources> + <declare-styleable name="FixedAspectSurfaceView"> + <attr name="aspectRatio" format="float" /> + <attr name="scaleWidth" format="boolean"/> + <attr name="scaleHeight" format="boolean"/> + </declare-styleable> + + <item name="match_parent" type="dimen">-1</item> + <item name="wrap_content" type="dimen">-2</item> +</resources>
\ No newline at end of file diff --git a/java/com/android/incallui/answer/impl/res/values/dimens.xml b/java/com/android/incallui/answer/impl/res/values/dimens.xml index 8329707a6..50aec0328 100644 --- a/java/com/android/incallui/answer/impl/res/values/dimens.xml +++ b/java/com/android/incallui/answer/impl/res/values/dimens.xml @@ -14,7 +14,6 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> - <resources> <dimen name="answer_contact_name_text_size">24sp</dimen> <dimen name="answer_contact_name_min_size">24sp</dimen> @@ -22,5 +21,7 @@ <dimen name="answer_avatar_size">0dp</dimen> <dimen name="answer_importance_margin_bottom">0dp</dimen> <bool name="answer_important_call_allowed">false</bool> + <bool name="scale_width">true</bool> + <bool name="scale_height">false</bool> <integer name="answer_animate_entry_millis">1000</integer> </resources> |