Browse Source

split bold and regular text

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
tobiasKaminsky 2 years ago
parent
commit
251159f15b
2 changed files with 25 additions and 10 deletions
  1. 23 9
      app/src/main/res/layout/activity_splash.xml
  2. 2 1
      app/src/main/res/values/setup.xml

+ 23 - 9
app/src/main/res/layout/activity_splash.xml

@@ -14,17 +14,31 @@
         app:layout_constraintStart_toStartOf="parent"
         app:srcCompat="@drawable/ic_magentacloud_splash_logo" />
 
-    <androidx.appcompat.widget.AppCompatTextView
-        android:id="@+id/tvSplash"
-        android:layout_width="wrap_content"
+    <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginTop="-10dp"
-        android:text="@string/app_name"
-        android:textColor="@color/white"
-        android:textSize="@dimen/txt_size_20sp"
+        android:orientation="horizontal"
+        android:gravity="center_horizontal"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@+id/guideline" />
+        app:layout_constraintTop_toBottomOf="@+id/guideline">
+
+        <androidx.appcompat.widget.AppCompatTextView
+            android:id="@+id/splashScreenBold"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/splashScreenBold"
+            android:textColor="@color/white"
+            android:textSize="@dimen/txt_size_20sp" />
+
+        <androidx.appcompat.widget.AppCompatTextView
+            android:id="@+id/splashScreenNormal"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/splashScreenNormal"
+            android:textColor="@color/white"
+            android:textSize="@dimen/txt_size_20sp" />
+    </LinearLayout>
 
 
     <androidx.constraintlayout.widget.Guideline
@@ -34,4 +48,4 @@
         android:orientation="horizontal"
         app:layout_constraintGuide_percent="0.45" />
 
-</androidx.constraintlayout.widget.ConstraintLayout>
+</androidx.constraintlayout.widget.ConstraintLayout>

+ 2 - 1
app/src/main/res/values/setup.xml

@@ -7,7 +7,8 @@
     <!-- App name  and other strings-->
     <string name="app_name">Nextcloud</string>
     <!-- required for NMC and will change to Magenta once branding changes applied -->
-    <string name="project_name">Next</string>
+    <string name="splashScreenBold">Magenta</string>
+    <string name="splashScreenNormal">CLOUD</string>
     <string name="account_type">nextcloud</string>     <!-- better if was a domain name; but changing it now would require migrate accounts when the app is updated -->
     <string name="authority">org.nextcloud</string>    <!-- better if was the app package with ".provider" appended ; it identifies the provider -->
     <string name="users_and_groups_search_authority">com.nextcloud.android.providers.UsersAndGroupsSearchProvider</string>