The available dreams will now be shown in a grid, with a preview button at the bottom. Screenshot (white placeholder image used): http://screen/6pe6EoACPoQN8TZ.png http://screen/4nR6Wg5pN7pL6Wb.png Phone (single column layout): http://screen/4WFqzZR8Yf9H3VZ.png Colors and margins will be finalized once final mocks are done. Bug: 207681076 Bug: 214250590 Test: locally on device Change-Id: Ie68bdc60e74e72dc3c3cee3f1ffd40f5613109b9
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2022 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.constraintlayout.widget.ConstraintLayout
|
|
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:padding="@dimen/dream_picker_padding">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/dream_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="true"
|
|
android:nestedScrollingEnabled="false"/>
|
|
|
|
<Button
|
|
android:id="@+id/preview_button"
|
|
style="@style/ActionPrimaryButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/dream_preview_button_title"
|
|
app:layout_constraintTop_toBottomOf="@+id/dream_list"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|