Browse Source

Add no games text.

Miku AuahDark 3 years ago
parent
commit
39da32d7c5

+ 37 - 1
app/src/normal/res/layout/activity_main.xml

@@ -13,5 +13,41 @@
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent"
         app:layout_constraintTop_toTopOf="parent"
-        tools:listitem="@layout/row_game" />
+        tools:listitem="@layout/row_game">
+
+    </androidx.recyclerview.widget.RecyclerView>
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:padding="8dp"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent">
+
+        <TextView
+            android:id="@+id/textView2"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/no_games"
+            android:textSize="29sp"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent" />
+
+        <TextView
+            android:id="@+id/textView6"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="4dp"
+            android:gravity="center_horizontal"
+            android:text="@string/no_games_info"
+            android:textSize="18sp"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintHorizontal_bias="0.0"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toBottomOf="@+id/textView2" />
+
+    </androidx.constraintlayout.widget.ConstraintLayout>
 </androidx.constraintlayout.widget.ConstraintLayout>
 </androidx.constraintlayout.widget.ConstraintLayout>

+ 8 - 6
app/src/normal/res/values/strings.xml

@@ -1,6 +1,8 @@
-<resources>
-    <string name="version_info">Version %1$s</string>
-    <string name="copyright">Copyright © 2006–2022 LÖVE Development Team</string>
-    <string name="disclaimer">This software is provided \'as-is\', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.</string>
-    <string name="official_website">Official Website</string>
-</resources>
+<resources>
+    <string name="version_info">Version %1$s</string>
+    <string name="copyright">Copyright © 2006–2022 LÖVE Development Team</string>
+    <string name="disclaimer">This software is provided \'as-is\', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.</string>
+    <string name="official_website">Official Website</string>
+    <string name="no_games">No Games :(</string>
+    <string name="no_games_info">Looks like there are no LÖVE games found in the games folder. See the &quot;Game Folder&quot; in the options menu for more information.</string>
+</resources>