Clean and Refractor code.

Split up the `SettingsActivity` into the smaller Fragments, Rename many 
ids... overall cleaner code.

It is 03:56 am and I did not sleep yet... I won't today ^^
This commit is contained in:
Finn M Glas 2020-05-24 03:59:25 +02:00
parent ff72364983
commit 0eecdff99f
No known key found for this signature in database
GPG key ID: 25037A2E81AB459C
21 changed files with 530 additions and 406 deletions

View file

@ -1,15 +1,16 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:id="@+id/activity_choose_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorPrimary"
tools:context=".ChooseActivity">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:id="@+id/activity_choose_app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
@ -22,7 +23,7 @@
android:layout_height="match_parent">
<TextView
android:id="@+id/heading"
android:id="@+id/activity_choose_heading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
@ -35,8 +36,8 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.finnmglas.launcher.FontAwesome
android:id="@+id/close_chooser"
<com.finnmglas.launcher.extern.FontAwesome
android:id="@+id/activity_choose_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
@ -69,10 +70,10 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/app_bar">
app:layout_constraintTop_toBottomOf="@id/activity_choose_app_bar">
<LinearLayout
android:id="@+id/apps_list"
android:id="@+id/activity_choose_apps_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />