1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <!-- There seems to be a bug in layout inflation where it can't use a resource to inflate a view 17 group that sets layout_marginTop with a dimension. Work around by putting in a shell layout. 18 --> 19 <FrameLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:app="http://schemas.android.com/apk/res-auto" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:paddingTop="@dimen/car_app_bar_height"> 25 26 <android.support.constraint.ConstraintLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent"> 29 30 <FrameLayout 31 android:id="@+id/dialpad_fragment_container" 32 android:layout_height="wrap_content" 33 android:layout_width="wrap_content" 34 app:layout_constraintBottom_toBottomOf="parent" 35 app:layout_constraintStart_toStartOf="parent" 36 app:layout_constraintEnd_toStartOf="@+id/divider" 37 app:layout_constraintTop_toTopOf="parent"/> 38 39 <View 40 android:id="@+id/divider" 41 android:background="@color/car_list_divider" 42 android:layout_gravity="end|top" 43 android:layout_height="0dp" 44 android:layout_width="@dimen/line_divider_height" 45 app:layout_constraintBottom_toBottomOf="@+id/dialpad_fragment_container" 46 app:layout_constraintStart_toStartOf="parent" 47 app:layout_constraintEnd_toEndOf="parent" 48 app:layout_constraintTop_toTopOf="@+id/dialpad_fragment_container"/> 49 50 <FrameLayout 51 android:id="@+id/dialer_info_fragment_container" 52 android:layout_height="0dp" 53 android:layout_width="0dp" 54 android:paddingStart="@dimen/car_keyline_1" 55 android:paddingEnd="@dimen/car_keyline_1" 56 app:layout_constraintBottom_toBottomOf="@+id/dialpad_fragment_container" 57 app:layout_constraintStart_toEndOf="@+id/divider" 58 app:layout_constraintEnd_toEndOf="parent" 59 app:layout_constraintTop_toTopOf="@+id/dialpad_fragment_container"> 60 <include layout="@layout/dialer_info_fragment"/> 61 </FrameLayout> 62 </android.support.constraint.ConstraintLayout> 63 </FrameLayout> 64