Jelajahi Sumber

fix: alignment

beautusg 7 tahun lalu
induk
melakukan
e667ca894f

+ 6 - 9
app/src/main/res/layout/notes_fragment.xml

@@ -24,17 +24,14 @@
         android:id="@+id/notes_fragment_create_note"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_marginTop="@dimen/_8sdp"
-        android:layout_marginEnd="@dimen/_8sdp"
-        android:layout_marginRight="@dimen/_8sdp"
-        android:alpha="0.5"
-        android:padding="@dimen/_12sdp"
+        android:layout_marginTop="16dp"
+        android:layout_marginEnd="16dp"
+        android:layout_marginRight="16dp"
+        android:padding="12dp"
         android:text="@string/notes_fragment_create_new_note"
-        android:textAppearance="@style/TextAppearance.AppCompat"
-        android:textSize="@dimen/_18ssp"
+        android:textSize="18sp"
         app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintBottom_toBottomOf="@id/notes_fragment_title"
-        app:layout_constraintTop_toTopOf="@+id/notes_fragment_title" />
+        app:layout_constraintTop_toTopOf="parent" />
 
     <androidx.recyclerview.widget.RecyclerView
         android:id="@+id/notes_fragment_list"

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -50,7 +50,7 @@
     <string name="menu_rename">Rename</string>
     <string name="menu_remove">Remove</string>
     <string name="choose_theme_dialog_title">Choose Theme</string>
-    <string name="notes_fragment_create_new_note">Create</string>
+    <string name="notes_fragment_create_new_note">CREATE</string>
     <string name="add_apps_fragment_search_apps">Search apps</string>
     <string name="tasks_fragment_list_item_complete">&lt;strike>%s&lt;/strike></string>
     <string name="tasks_fragment_sort">Sort</string>