Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2018 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 <FrameLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     xmlns:app="http://schemas.android.com/apk/res-auto"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:background="@color/contact_fragment_background"
     22     android:clipChildren="false">
     23 
     24     <androidx.car.widget.PagedListView
     25         android:id="@+id/list_view"
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:layout_marginTop="@dimen/car_app_bar_height"
     29         android:clipChildren="false"/>
     30 
     31     <FrameLayout
     32         android:id="@+id/contact_detail_container"
     33         android:background="@color/contact_detail_fragment_background_color"
     34         android:layout_width="match_parent"
     35         android:layout_height="match_parent"
     36         android:visibility="gone">
     37         <android.support.constraint.ConstraintLayout
     38             android:layout_width="match_parent"
     39             android:layout_height="@dimen/car_app_bar_height"
     40             android:background="@color/phone_theme_secondary">
     41             <ImageView
     42                 android:id="@+id/back_button"
     43                 android:layout_width="@dimen/car_touch_target_size"
     44                 android:layout_height="@dimen/car_touch_target_size"
     45                 android:scaleType="center"
     46                 android:src="@drawable/ic_arrow_back"
     47                 android:tint="@color/car_tint"
     48                 app:layout_constraintBottom_toBottomOf="parent"
     49                 app:layout_constraintStart_toStartOf="parent"
     50                 app:layout_constraintEnd_toEndOf="@+id/margin_guideline"
     51                 app:layout_constraintTop_toTopOf="parent"/>
     52             <android.support.constraint.Guideline
     53                 android:layout_width="wrap_content"
     54                 android:layout_height="wrap_content"
     55                 android:id="@+id/margin_guideline"
     56                 app:layout_constraintGuide_begin="@dimen/car_margin"
     57                 android:orientation="vertical"/>
     58             <TextView
     59                 android:id="@+id/title"
     60                 android:layout_width="wrap_content"
     61                 android:layout_height="wrap_content"
     62                 style="@style/TextAppearance.Car.Body1"
     63                 app:layout_constraintBottom_toBottomOf="parent"
     64                 app:layout_constraintStart_toEndOf="@+id/back_button"
     65                 app:layout_constraintTop_toTopOf="parent"/>
     66         </android.support.constraint.ConstraintLayout>
     67         <FrameLayout
     68             android:id="@+id/contact_detail_fragment_container"
     69             android:layout_marginTop="@dimen/car_app_bar_height"
     70             android:background="@android:color/transparent"
     71             android:layout_width="match_parent"
     72             android:layout_height="match_parent"/>
     73     </FrameLayout>
     74 </FrameLayout>