Feat: Added placeholder text when no fave or hidden apps.

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-07-13 13:13:42 +01:00
parent cfe2e0552c
commit 69742ab82f
6 changed files with 45 additions and 2 deletions

View File

@@ -36,6 +36,16 @@
android:layout_marginHorizontal="20dp"
android:layout_marginTop="92dp"
app:layout_constraintTop_toBottomOf="@id/topTextView" />
<TextView
android:id="@+id/noApps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="92dp"
android:text="@string/favorite_fragment_no_apps"
android:textSize="18sp"
android:visibility="gone" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -36,5 +36,15 @@
android:layout_marginHorizontal="20dp"
android:layout_marginTop="92dp"
app:layout_constraintTop_toBottomOf="@id/topTextView" />
<TextView
android:id="@+id/noApps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="92dp"
android:text="@string/hidden_fragment_no_apps"
android:textSize="18sp"
android:visibility="gone" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -14,6 +14,9 @@
<string name="favorite_fragment_name">Favorite Apps</string>
<string name="hidden_fragment_name">Hidden Apps</string>
<string name="favorite_fragment_no_apps">No Favorite Apps</string>
<string name="hidden_fragment_no_apps">No Hidden Apps</string>
<string name="search">Search</string>
<string name="bottom_dialog_app_rename">Rename</string>