Many contextual cards will be built as slices, so we need a controller and a renderer for them. Change-Id: I3816db09ba0181399810652fb18fbe11ce273267 Fixes: 115709730 Test: robotests
40 lines
1.7 KiB
XML
40 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2018 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.
|
|
-->
|
|
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/homepage_card_top_margin"
|
|
android:layout_marginBottom="@dimen/homepage_card_bottom_margin"
|
|
android:layout_marginStart="@dimen/homepage_card_side_margin"
|
|
android:layout_marginEnd="@dimen/homepage_card_side_margin"
|
|
app:cardCornerRadius="@dimen/homepage_card_corner_radius"
|
|
app:cardElevation="@dimen/homepage_card_elevation">
|
|
|
|
<androidx.slice.widget.SliceView
|
|
android:id="@+id/slice_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/homepage_card_padding_start"
|
|
android:paddingEnd="@dimen/homepage_card_padding_end"
|
|
android:paddingTop="@dimen/homepage_card_padding_top"
|
|
android:paddingBottom="@dimen/homepage_card_padding_bottom"/>
|
|
|
|
</androidx.cardview.widget.CardView>
|