When child of CoordinatorLayout wants focus, show it!

The same logic is present in RecyclerView, ScrollView etc.
Android really should default to this behavior for all Views
with isScrollContainer = true
This commit is contained in:
Alexander 2019-09-20 16:16:21 +07:00 committed by Alexander--
parent 7dc4ccf144
commit 1bb96ef405
2 changed files with 65 additions and 2 deletions

View file

@ -10,7 +10,7 @@
android:orientation="horizontal"
android:baselineAligned="false">
<androidx.coordinatorlayout.widget.CoordinatorLayout
<org.schabi.newpipe.views.FocusAwareCoordinator
android:id="@+id/detail_main_content"
android:layout_width="0dp"
android:layout_height="match_parent"
@ -526,7 +526,7 @@
</com.google.android.material.tabs.TabLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</org.schabi.newpipe.views.FocusAwareCoordinator>
<FrameLayout
android:id="@+id/relatedStreamsLayout"