Replace apps list with a RecyclerView

this is way faster, more efficient - and it even enables the app to show 
app icone, which Closes #31
This commit is contained in:
Finn M Glas 2020-05-27 10:59:19 +02:00
parent c8f202d570
commit 4c131e4aed
No known key found for this signature in database
GPG key ID: 25037A2E81AB459C
5 changed files with 161 additions and 59 deletions

View file

@ -58,25 +58,19 @@
</com.google.android.material.appbar.AppBarLayout>
<ScrollView
android:layout_width="0dp"
android:layout_height="0dp"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/activity_choose_apps_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_marginTop="86dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:scrollbars="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/activity_choose_app_bar">
<LinearLayout
android:id="@+id/activity_choose_apps_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
app:layout_constraintTop_toBottomOf="@id/activity_choose_app_bar" />
</androidx.constraintlayout.widget.ConstraintLayout>