Sfoglia il codice sorgente

muti-language-edit-scene

faterhenry 6 anni fa
parent
commit
8ca63f95ec

+ 4 - 0
src/main/java/com/bomostory/sceneeditmodule/EditTextDialog.kt

@@ -116,6 +116,7 @@ class EditTextDialog : DialogFragment() {
         val popupView = LayoutInflater.from(context).inflate(R.layout.popupview_set_color, null)
         popupView.sb_set_color_r.max = 255
         popupView.sb_set_color_r.progress = 255
+        popupView.tv_set_color_r.text = popupView.sb_set_color_r.progress.toString()
         popupView.sb_set_color_r.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener{
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 popupView.tv_set_color_r.text = progress.toString()
@@ -130,6 +131,7 @@ class EditTextDialog : DialogFragment() {
         })
         popupView.sb_set_color_g.max = 255
         popupView.sb_set_color_g.progress = 255
+        popupView.tv_set_color_g.text = popupView.sb_set_color_g.progress.toString()
         popupView.sb_set_color_g.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener{
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 popupView.tv_set_color_g.text = progress.toString()
@@ -144,6 +146,7 @@ class EditTextDialog : DialogFragment() {
         })
         popupView.sb_set_color_b.max = 255
         popupView.sb_set_color_b.progress = 255
+        popupView.tv_set_color_b.text = popupView.sb_set_color_b.progress.toString()
         popupView.sb_set_color_b.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener{
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 popupView.tv_set_color_b.text = progress.toString()
@@ -158,6 +161,7 @@ class EditTextDialog : DialogFragment() {
         })
         popupView.sb_set_color_a.max = 255
         popupView.sb_set_color_a.progress = 255
+        popupView.tv_set_color_a.text = popupView.sb_set_color_a.progress.toString()
         popupView.sb_set_color_a.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener{
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 popupView.tv_set_color_r.text = progress.toString()

+ 3 - 3
src/main/java/com/bomostory/sceneeditmodule/SceneEditActivity.kt

@@ -553,7 +553,7 @@ class SceneEditActivity : AppCompatActivity(), ActorAdapter.OnActorDragListener,
         timer.cancel()
         timer = Timer()
         recordingTime = 0L
-        tv_scene_activity_record_time.text = "Recording 00:00"
+        tv_scene_activity_record_time.text = resources.getString(R.string.uikit_edit_recording) + " 00:00"
         isRecord = false
         startRecord.setImageDrawable(resources.getDrawable(R.drawable.ic_btn_record))
         navigationBar.visibility = View.VISIBLE
@@ -602,7 +602,7 @@ class SceneEditActivity : AppCompatActivity(), ActorAdapter.OnActorDragListener,
                 timer.cancel()
                 timer = Timer()
                 recordingTime = 0L
-                tv_scene_activity_record_time.text = "Recording 00:00"
+                tv_scene_activity_record_time.text = resources.getString(R.string.uikit_edit_recording) + " 00:00"
                 isRecord = false
                 record.period = System.currentTimeMillis() - startRecordTime
                 if (!isAutoSwipe){
@@ -1019,7 +1019,7 @@ class SceneEditActivity : AppCompatActivity(), ActorAdapter.OnActorDragListener,
             popupWindow.isOutsideTouchable = false
             popupWindow.showAtLocation(sceneEditView, Gravity.START,actor.positionX,0)
             popupView.sb_opacity_dialog_opacity.progress = (actor.opacity * 100).toInt()
-            popupView.tv_opacity_dialog_opacity.text = "Opacity : " + (actor.opacity * 100).toInt().toString() + "%"
+            popupView.tv_opacity_dialog_opacity.text = resources.getString(R.string.uikit_edit_opacity) + " : " + (actor.opacity * 100).toInt().toString() + "%"
             popupView.sb_opacity_dialog_opacity.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener{
                 override fun onProgressChanged(p0: SeekBar?, p1: Int, p2: Boolean) {
                     popupView.tv_opacity_dialog_opacity.text = "Opacity : " + p1.toString() + "%"

+ 8 - 0
src/main/java/com/bomostory/sceneeditmodule/screen/draw/DrawActivity.kt

@@ -227,10 +227,15 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
 //    }
 
     private fun createPopupView(): View{
+        popupView.tv_set_color_r.text = popupView.sb_set_color_r.progress.toString()
+        popupView.tv_set_color_g.text = popupView.sb_set_color_g.progress.toString()
+        popupView.tv_set_color_b.text = popupView.sb_set_color_b.progress.toString()
+        popupView.tv_set_color_a.text = popupView.sb_set_color_a.progress.toString()
 
         popupView.sb_set_color_r.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 if (fromUser) onColorRValueChanged(progress)
+                popupView.tv_set_color_r.text = progress.toString()
             }
 
             override fun onStartTrackingTouch(seekBar: SeekBar?) {}
@@ -240,6 +245,7 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
         popupView.sb_set_color_g.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 if (fromUser) onColorGValueChanged(progress)
+                popupView.tv_set_color_g.text = progress.toString()
             }
 
             override fun onStartTrackingTouch(seekBar: SeekBar?) {}
@@ -250,6 +256,7 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
         popupView.sb_set_color_b.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 if (fromUser) onColorBValueChanged(progress)
+                popupView.tv_set_color_b.text = progress.toString()
             }
 
             override fun onStartTrackingTouch(seekBar: SeekBar?) {}
@@ -260,6 +267,7 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
         popupView.sb_set_color_a.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
             override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
                 if (fromUser) onColorAValueChanged(progress)
+                popupView.tv_set_color_a.text = progress.toString()
             }
 
             override fun onStartTrackingTouch(seekBar: SeekBar?) {}

+ 4 - 3
src/main/res/layout/actor_select_view.xml

@@ -17,7 +17,8 @@
             android:textSize="14sp"
             android:textColor="#ffecb3"
             android:background="#212121"
-            android:text="CHOOSE THEME"
+            android:text="@string/uikit_edit_choose_theme"
+            android:textAllCaps="true"
             android:drawableLeft="@drawable/ic_style"
             app:layout_constraintLeft_toLeftOf="parent"/>
         <Button
@@ -28,7 +29,7 @@
             android:textColor="#ffffff"
             android:background="#212121"
             android:drawableLeft="@drawable/ic_character"
-            android:text="Character"
+            android:text="@string/uikit_edit_character"
             android:layout_marginLeft="250dp"
             app:layout_constraintLeft_toRightOf="@id/btn_choose_theme"
             app:layout_constraintRight_toLeftOf="@id/btn_object"/>
@@ -39,7 +40,7 @@
             android:textSize="14sp"
             android:textColor="#ffffff"
             android:background="#212121"
-            android:text="Object"
+            android:text="@string/uikit_edit_objects"
             android:layout_marginLeft="35dp"
             android:drawableLeft="@drawable/ic_object"
             app:layout_constraintLeft_toRightOf="@id/btn_character"/>

+ 3 - 2
src/main/res/layout/add_scene_view.xml

@@ -16,7 +16,7 @@
                 android:layout_centerVertical="true"
                 android:textSize="14sp"
                 android:textColor="#ffecb3"
-                android:text="CHOOSE THEME"/>
+                android:text="@string/uikit_edit_choose_theme"/>
             <TextView
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
@@ -24,7 +24,8 @@
                 android:layout_centerHorizontal="true"
                 android:layout_centerVertical="true"
                 android:textColor="#ffffff"
-                android:text="THEME NAME"/>
+                android:textAllCaps="true"
+                android:text="@string/theme_name"/>
         </RelativeLayout>
         <android.support.v7.widget.RecyclerView
             android:id="@+id/new_scene_recycler_view"

+ 6 - 6
src/main/res/layout/control_actor_dialog.xml

@@ -23,7 +23,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Duplicate"/>
+            android:text="@string/uikit_edit_duplicate"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/opacity"
@@ -44,7 +44,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Opacity"/>
+            android:text="@string/uikit_edit_opacity"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/Mirror"
@@ -65,7 +65,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Mirror"/>
+            android:text="@string/uikit_edit_mirror"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/bring_to_front"
@@ -86,7 +86,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Bring to front"/>
+            android:text="@string/uikit_edit_bring_to_front"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/send_to_back"
@@ -107,7 +107,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Sene to back"/>
+            android:text="@string/uikit_edit_send_to_back"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/delete"
@@ -130,6 +130,6 @@
             android:layout_marginBottom="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Delete"/>
+            android:text="@string/uikit_home_delete"/>
     </LinearLayout>
 </android.support.constraint.ConstraintLayout>

+ 1 - 1
src/main/res/layout/dialogfragment_edit_text.xml

@@ -107,7 +107,7 @@
             android:layout_height="30dp" />
        <Button
             android:id="@+id/btn_edit_dialog_done"
-            android:text="DONE"
+            android:text="@string/uikit_edit_done"
             android:textColor="#ffecb3"
             android:background="#212121"
             android:layout_width="wrap_content"

+ 0 - 1
src/main/res/layout/item_scene.xml

@@ -23,7 +23,6 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_alignParentRight="true"
-            android:text="QQ"
             android:textSize="14sp"
             android:textColor="#ffffff" />
     </RelativeLayout>

+ 1 - 1
src/main/res/layout/layer_management_fragment.xml

@@ -13,7 +13,7 @@
         <TextView
             android:layout_width="match_parent"
             android:layout_height="36dp"
-            android:text="Layer Management"
+            android:text="@string/uikit_edit_layer_manager"
             android:gravity="center"
             android:textColor="#99000000"
             android:textSize="16sp"/>

+ 6 - 6
src/main/res/layout/navigation_bar_view.xml

@@ -28,7 +28,7 @@
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/scene_btn"
                 android:layout_centerInParent="true"
-                android:text="Pages"
+                android:text="@string/uikit_edit_pages"
                 android:textColor="#ffecb3"/>
         </RelativeLayout>
         <RelativeLayout
@@ -51,7 +51,7 @@
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/actor_btn"
                 android:layout_centerInParent="true"
-                android:text="Materials"
+                android:text="@string/uikit_edit_materials"
                 android:textColor="#ffecb3"/>
         </RelativeLayout>
         <RelativeLayout
@@ -73,7 +73,7 @@
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/brush_btn"
                 android:layout_centerInParent="true"
-                android:text="Brush"
+                android:text="@string/uikit_edit_brush"
                 android:textColor="#ffecb3"/>
         </RelativeLayout>
         <RelativeLayout
@@ -95,7 +95,7 @@
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/dialogue_btn"
                 android:layout_centerInParent="true"
-                android:text="Dialogue"
+                android:text="@string/uikit_edit_dialogue"
                 android:textColor="#ffecb3"/>
         </RelativeLayout>
         <RelativeLayout
@@ -117,7 +117,7 @@
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/image_btn"
                 android:layout_centerInParent="true"
-                android:text="Image"
+                android:text="@string/uikit_edit_image"
                 android:textColor="#ffecb3"/>
         </RelativeLayout>
         <RelativeLayout
@@ -139,7 +139,7 @@
                 android:layout_height="wrap_content"
                 android:layout_below="@+id/settings_btn"
                 android:layout_centerInParent="true"
-                android:text="Settings"
+                android:text="@string/uikit_edit_settings"
                 android:textColor="#ffecb3"/>
         </RelativeLayout>
     </RelativeLayout>

+ 3 - 3
src/main/res/layout/object_select_view.xml

@@ -17,7 +17,7 @@
             android:textSize="14sp"
             android:textColor="#ffecb3"
             android:background="#212121"
-            android:text="CHOOSE THEME"
+            android:text="@string/uikit_edit_choose_theme"
             android:drawableLeft="@drawable/ic_style"
             app:layout_constraintLeft_toLeftOf="parent"/>
         <Button
@@ -28,7 +28,7 @@
             android:textColor="#ffffff"
             android:background="#212121"
             android:drawableLeft="@drawable/ic_character"
-            android:text="Character"
+            android:text="@string/uikit_edit_character"
             android:layout_marginLeft="250dp"
             app:layout_constraintLeft_toRightOf="@id/btn_choose_theme"
             app:layout_constraintRight_toLeftOf="@id/btn_object"/>
@@ -39,7 +39,7 @@
             android:textSize="14sp"
             android:textColor="#ffffff"
             android:background="#212121"
-            android:text="Object"
+            android:text="@string/uikit_edit_objects"
             android:layout_marginLeft="35dp"
             android:drawableLeft="@drawable/ic_object"
             app:layout_constraintLeft_toRightOf="@id/btn_character"/>

+ 1 - 1
src/main/res/layout/popupview_color_dialog.xml

@@ -52,7 +52,7 @@
         app:layout_constraintLeft_toRightOf="@+id/iv_dialogue_set_color_green"/>
     <TextView
         android:id="@+id/tv_color_dialog_ok"
-        android:text="OK"
+        android:text="@string/ok"
         android:textSize="14sp"
         android:textColor="#4e342e"
         android:layout_width="64dp"

+ 1 - 2
src/main/res/layout/popupview_opacity_dialog.xml

@@ -11,7 +11,6 @@
         android:layout_height="wrap_content"
         android:layout_marginTop="24dp"
         android:layout_marginLeft="24dp"
-        android:text="Opacity : 100%"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
     <android.support.v7.widget.AppCompatSeekBar
@@ -23,7 +22,7 @@
         app:layout_constraintTop_toBottomOf="@+id/tv_opacity_dialog_opacity"/>
     <TextView
         android:id="@+id/tv_opacity_dialog_ok"
-        android:text="OK"
+        android:text="@string/ok"
         android:textSize="14sp"
         android:textColor="#4e342e"
         android:layout_marginBottom="10dp"

+ 7 - 10
src/main/res/layout/popupview_set_color.xml

@@ -24,7 +24,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:textSize="20sp"
-            android:text="R"/>
+            android:text="@string/r"/>
         <android.support.v7.widget.AppCompatSeekBar
             android:id="@+id/sb_set_color_r"
             android:layout_width="128dp"
@@ -34,8 +34,7 @@
             android:id="@+id/tv_set_color_r"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:textSize="20sp"
-            android:text="255"/>
+            android:textSize="20sp"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/layout_set_color_g"
@@ -49,7 +48,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:textSize="20sp"
-            android:text="G"/>
+            android:text="@string/g"/>
         <android.support.v7.widget.AppCompatSeekBar
             android:id="@+id/sb_set_color_g"
             android:layout_width="128dp"
@@ -59,8 +58,7 @@
             android:id="@+id/tv_set_color_g"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:textSize="20sp"
-            android:text="255"/>
+            android:textSize="20sp"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/layout_set_color_b"
@@ -74,7 +72,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:textSize="20sp"
-            android:text="B"/>
+            android:text="@string/b"/>
         <android.support.v7.widget.AppCompatSeekBar
             android:id="@+id/sb_set_color_b"
             android:layout_width="128dp"
@@ -84,8 +82,7 @@
             android:id="@+id/tv_set_color_b"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:textSize="20sp"
-            android:text="255"/>
+            android:textSize="20sp"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/layout_set_color_a"
@@ -99,7 +96,7 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:textSize="20sp"
-            android:text="A"/>
+            android:text="@string/a"/>
         <android.support.v7.widget.AppCompatSeekBar
             android:id="@+id/sb_set_color_a"
             android:layout_width="128dp"

+ 4 - 4
src/main/res/layout/popupview_setting.xml

@@ -8,14 +8,14 @@
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:text = "Settings"
+        android:text = "@string/uikit_edit_settings"
         android:textColor="#de000000"
         android:textSize="20sp"
         android:paddingBottom="24dp"/>
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:text = "Recording Mode"
+        android:text = "@string/uikit_edit_recording_mode"
         android:textColor="#99000000"
         android:textSize="16sp"
         android:paddingBottom="24dp"/>
@@ -30,7 +30,7 @@
             android:layout_height="wrap_content"
             android:textColor="#4e342e"
             android:textSize="16sp"
-            android:text="Manual"
+            android:text="@string/uikit_edit_manual"
             android:checked="true"/>
         <RadioButton
             android:id="@+id/rb_auto_swipe"
@@ -38,6 +38,6 @@
             android:layout_height="wrap_content"
             android:textColor="#4e342e"
             android:textSize="16sp"
-            android:text="Auto Swipe" />
+            android:text="@string/uikit_edit_auto_swipe" />
     </RadioGroup>
 </LinearLayout>

+ 2 - 2
src/main/res/layout/record_finish_view.xml

@@ -15,7 +15,7 @@
     android:drawableLeft="@drawable/ic_finish"
     android:paddingLeft="16dp"
     android:paddingRight="16dp"
-    android:text="Finish"
+    android:text="@string/finish"
     app:layout_constraintBottom_toBottomOf="parent"
     app:layout_constraintRight_toRightOf="parent"
     app:layout_constraintTop_toBottomOf="@+id/scene_recycler_view" />
@@ -30,7 +30,7 @@
     android:drawableLeft="@drawable/ic_forward"
     android:paddingLeft="16dp"
     android:paddingRight="16dp"
-    android:text="Next Scene"
+    android:text="@string/next_scene"
     app:layout_constraintBottom_toBottomOf="parent"
     app:layout_constraintRight_toLeftOf="@+id/finish"
     app:layout_constraintTop_toBottomOf="@+id/scene_recycler_view" />

+ 3 - 2
src/main/res/layout/scene_brush_view.xml

@@ -69,7 +69,7 @@
         android:id="@+id/tv_brush_view_size"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:text="Size:"
+        android:text="@string/uikit_edit_size"
         android:textColor="#ffffff"
         app:layout_constraintLeft_toLeftOf="@+id/seek_bar_brush_view_size"
         app:layout_constraintBottom_toTopOf="@id/seek_bar_brush_view_size"
@@ -210,7 +210,8 @@
         android:layout_marginRight="24dp"
         android:background="@drawable/btn_round_corner_main"
         android:drawableStart="@drawable/ic_done"
-        android:text="DONE"
+        android:text="@string/uikit_edit_done"
+        android:textAllCaps="true"
         android:textColor="#4e342e"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toRightOf="parent"

+ 2 - 2
src/main/res/layout/scene_control_view.xml

@@ -21,7 +21,7 @@
         android:layout_marginTop="36dp"
         android:background="@null"
         android:drawableTop="@drawable/ic_duplicate_w"
-        android:text="Duplicate"
+        android:text="@string/uikit_edit_duplicate"
         android:textColor="@android:color/white"
         app:layout_constraintRight_toLeftOf="@+id/addScene"
         app:layout_constraintTop_toTopOf="parent" />
@@ -34,7 +34,7 @@
         android:layout_marginEnd="24dp"
         android:background="@null"
         android:drawableTop="@drawable/ic_add_w"
-        android:text="New"
+        android:text="@string/new_page"
         android:textColor="@android:color/white"
         app:layout_constraintRight_toRightOf="parent"
         app:layout_constraintTop_toTopOf="parent" />

+ 7 - 8
src/main/res/layout/view_control_dialogue_dialog.xml

@@ -23,7 +23,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Edit Content"/>
+            android:text="@string/uikit_edit_edit_content"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/duplicate_dialogue"
@@ -44,7 +44,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Duplicate"/>
+            android:text="@string/uikit_edit_duplicate"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/layout_dialogue_dialog_color"
@@ -64,8 +64,7 @@
             android:layout_height="24dp"
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
-            android:background="#ffffff"
-            android:text="Color"/>
+            android:background="#ffffff"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/Mirror_dialogue"
@@ -86,7 +85,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Mirror"/>
+            android:text="@string/uikit_edit_mirror"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/bring_to_front_dialogue"
@@ -107,7 +106,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Bring to front"/>
+            android:text="@string/uikit_edit_bring_to_front"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/send_to_back_dialogue"
@@ -128,7 +127,7 @@
             android:layout_marginTop="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Sene to back"/>
+            android:text="@string/uikit_edit_send_to_back"/>
     </LinearLayout>
     <LinearLayout
         android:id="@+id/delete_dialogue"
@@ -151,6 +150,6 @@
             android:layout_marginBottom="20dp"
             android:layout_marginLeft="16dp"
             android:background="#ffffff"
-            android:text="Delete"/>
+            android:text="@string/delete"/>
     </LinearLayout>
 </android.support.constraint.ConstraintLayout>

+ 8 - 4
src/main/res/layout/view_edit_scene.xml

@@ -15,7 +15,8 @@
         android:drawableLeft="@drawable/ic_done"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="DONE"
+        android:text="@string/uikit_edit_done"
+        android:textAllCaps="true"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toRightOf="parent"/>
 
@@ -29,7 +30,8 @@
         android:drawableLeft="@drawable/ic_startover"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="START OVER"
+        android:text="@string/uikit_edit_start_over"
+        android:textAllCaps="true"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toLeftOf="@+id/btn_edit_scene_done"/>
 
@@ -43,7 +45,8 @@
         android:drawableLeft="@drawable/ic_replace"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="REPLACE"
+        android:text="@string/replace"
+        android:textAllCaps="true"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toLeftOf="@+id/btn_edit_scene_start_over" />
 
@@ -57,7 +60,8 @@
         android:drawableLeft="@drawable/ic_delete_w"
         android:paddingLeft="16dp"
         android:paddingRight="16dp"
-        android:text="DELETE"
+        android:text="@string/delete"
+        android:textAllCaps="true"
         android:textColor="#ffffff"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintRight_toLeftOf="@+id/btn_edit_scene_replace" />

+ 1 - 1
src/main/res/layout/view_front_cover_editor.xml

@@ -59,7 +59,7 @@
         app:layout_constraintLeft_toLeftOf="@id/iv_frontCoverEditor_coverMask"
         app:layout_constraintRight_toRightOf="@id/iv_frontCoverEditor_coverMask"
         app:layout_constraintTop_toBottomOf="@id/tv_frontCoverEditor_coverTitle"
-        tools:text="Author" />
+        tools:text="@string/uikit_edit_author" />
 
     <!-- TODO: remove enabled="false" after solve project rename issue -->
     <EditText

+ 1 - 1
src/main/res/layout/view_front_cover_scene_chooser.xml

@@ -84,7 +84,7 @@
         app:layout_constraintLeft_toLeftOf="@id/iv_frontCoverSceneChooserDialog_coverMask"
         app:layout_constraintRight_toRightOf="@id/iv_frontCoverSceneChooserDialog_coverMask"
         app:layout_constraintTop_toBottomOf="@id/tv_frontCoverSceneChooserDialog_coverTitle"
-        tools:text="Author" />
+        tools:text="@string/uikit_edit_author" />
 
     <Spinner
         android:id="@+id/spinner_frontCoverSceneChooserDialog_align"

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

@@ -3,7 +3,6 @@
 
     <string name="title_activity_movie_edit">MovieEditActivity</string>
     <string name="dummy_button">Dummy Button</string>
-    <string name="dummy_content">DUMMY\nCONTENT</string>
 
     <!-- TODO: Remove or change this placeholder text -->
     <string name="hello_blank_fragment">Hello blank fragment</string>
@@ -89,4 +88,14 @@
     <string name="g">G</string>
     <string name="b">B</string>
     <string name="a">A</string>
+
+    <!--scene edit -->
+    <string name="finish">Finish</string>
+    <string name="next_scene">Next Scene</string>
+    <string name="replace">Replace</string>
+    <string name="color">Color</string>
+    <string name="new_page">new</string>
+    <string name="theme_name">Theme Name</string>
+    <string name="ok">OK</string>
+    <string name="project_name">Project Name</string>
 </resources>