Forráskód Böngészése

New: add edit button panel string to res

liweihao 6 éve
szülő
commit
227957a9a8

+ 5 - 5
src/main/res/layout/movie_edit_btn_panel_view.xml

@@ -19,7 +19,7 @@
         android:id="@+id/loopText"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:text="Loop"
+        android:text="@string/loop"
         android:textColor="@android:color/white"
         android:visibility="gone"
         app:layout_constraintBottom_toBottomOf="@+id/loopSwitch"
@@ -35,7 +35,7 @@
         android:drawableStart="@drawable/ic_delete_w"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="DELETE"
+        android:text="@string/delete"
         android:textColor="@android:color/white"
         android:visibility="gone"
         app:layout_constraintBottom_toBottomOf="parent"
@@ -54,7 +54,7 @@
         android:drawableStart="@drawable/ic_edit"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="EDIT"
+        android:text="@string/edit"
         android:visibility="gone"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toLeftOf="@+id/addMusic"
@@ -69,7 +69,7 @@
         android:drawableStart="@drawable/ic_music"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="ADD MUSIC"
+        android:text="@string/add_music"
         android:textSize="14sp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toLeftOf="@+id/save"
@@ -84,7 +84,7 @@
         android:drawableStart="@drawable/ic_save"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="SAVE&SHARE"
+        android:text="@string/save_and_share"
         android:textSize="14sp"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toRightOf="parent"

+ 7 - 0
src/main/res/values/strings.xml

@@ -64,6 +64,13 @@
     <string name="library">Library</string>
     <string name="device">Device</string>
 
+    <!--movie edit button panel-->
+    <string name="loop">Loop</string>
+    <string name="delete">Delete</string>
+    <string name="edit">Edit</string>
+    <string name="add_music">Add Music</string>
+    <string name="save_and_share">Save&amp;Share</string>
+
     <!--brush-->
     <string name="pencil">Pencil</string>
     <string name="crayon">Crayon</string>