45 lines
1.8 KiB
XML
45 lines
1.8 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!--
|
||
|
~ Copyright (C) 2015 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.
|
||
|
-->
|
||
|
|
||
|
<com.android.tv.menu.ItemListRowView
|
||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:lb="http://schemas.android.com/apk/res-auto"
|
||
|
android:id="@+id/item_list"
|
||
|
style="@style/menu_row_view">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/title"
|
||
|
style="@style/menu_row_title_view" />
|
||
|
|
||
|
<!-- The animation of this view includes an alpha animation, while one of its child is scaled
|
||
|
to out of bounds of this view. This results in visual artifacts while animating, because
|
||
|
alpha animation only occurs within the bounds of the view.
|
||
|
|
||
|
To work around, this view takes up extra space up to its neighbors using negative margins,
|
||
|
and compensate the same space with padding.
|
||
|
|
||
|
The accurate layout height is set in MenuRowView.onBind(). -->
|
||
|
<androidx.leanback.widget.HorizontalGridView
|
||
|
android:id="@+id/list_view"
|
||
|
style="@style/menu_row_contents_view"
|
||
|
android:clipChildren="false"
|
||
|
android:clipToPadding="false"
|
||
|
android:focusable="true"
|
||
|
lb:horizontalMargin="@dimen/menu_inter_card_spacing" />
|
||
|
|
||
|
</com.android.tv.menu.ItemListRowView>
|