| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2020 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.car.ui.FocusArea |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <EditText |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:singleLine="true"/> |
| |
| <!-- Use contentDescription to enable rotary scrolling for this view. With rotary scrolling |
| enabled, rotation will scroll rather than moving the focus if moving the focus would |
| cause a lot of scrolling. Rotary scrolling should be enabled for scrolling views which |
| contain content which the user may want to see but can't interact with, either alone or |
| with interactive (focusable) content. --> |
| <com.android.car.ui.recyclerview.CarUiRecyclerView |
| android:id="@+id/rotary_scroll_view" |
| android:contentDescription="com.android.car.ui.utils.VERTICALLY_SCROLLABLE" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1"/> |
| <!-- TODO(b/171339427) Use app:rotaryScrollEnabled instead of contentDescription. --> |
| |
| <EditText |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:singleLine="true"/> |
| |
| </com.android.car.ui.FocusArea> |