For #8759 - Allow recently used in share fragment to scroll
parent
2dd0a3cb9e
commit
ead3194d86
|
@ -45,6 +45,7 @@ class ShareToAppsView(
|
|||
|
||||
fun setRecentShareTargets(recentTargets: List<AppShareOption>) {
|
||||
if (recentTargets.isEmpty()) {
|
||||
recentAppsContainer.visibility = View.GONE
|
||||
return
|
||||
}
|
||||
progressBar.visibility = View.GONE
|
||||
|
|
|
@ -1,10 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<HorizontalScrollView 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_gravity="center_horizontal">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/apps_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ProgressBar
|
||||
|
@ -34,11 +40,11 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/recent_apps_link_header"
|
||||
android:paddingStart="@dimen/share_recent_apps_padding"
|
||||
android:paddingEnd="@dimen/share_recent_apps_padding"
|
||||
style="@style/ShareHeaderTextStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/share_recent_apps_padding"
|
||||
android:paddingEnd="@dimen/share_recent_apps_padding"
|
||||
android:text="@string/share_link_recent_apps_subheader" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
|
@ -67,7 +73,7 @@
|
|||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/appsList"
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/share_all_apps_list_margin"
|
||||
android:clipToPadding="false"
|
||||
|
@ -80,5 +86,6 @@
|
|||
app:layout_constraintStart_toEndOf="@+id/recentAppsContainer"
|
||||
app:layout_constraintTop_toBottomOf="@id/apps_link_header"
|
||||
app:spanCount="2" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
|
|
Loading…
Reference in New Issue