This commit is contained in:
lunaticbum 2024-08-02 16:30:05 +09:00
parent f107c7c84d
commit c249e79e9a
20 changed files with 598 additions and 491 deletions

View File

@ -36,6 +36,9 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
dataBinding true
}
}
dependencies {

View File

@ -18,8 +18,7 @@
<activity
android:name=".activity.Intro"
android:launchMode="singleInstance"
android:screenOrientation="nosensor"
android:launchMode="singleTask"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="true">
<intent-filter>

View File

@ -1,6 +1,7 @@
package com.mime.dualscreenview.activity
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import android.graphics.Bitmap
@ -10,7 +11,10 @@ import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.text.InputType
import android.text.SpannableStringBuilder
import android.text.style.RelativeSizeSpan
import android.util.Log
import android.view.Gravity
import android.view.KeyEvent
import android.view.View
import android.view.View.*
@ -22,9 +26,11 @@ import android.widget.EditText
import android.widget.ImageButton
import android.widget.ProgressBar
import android.widget.TextView
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.widget.AppCompatButton
import androidx.constraintlayout.utils.widget.ImageFilterButton
import com.google.gson.Gson
import com.mime.dualscreenview.R
import com.mime.dualscreenview.common.Blog
@ -125,12 +131,12 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
contentsSaver?.clearSslPreferences();
}
findViewById<View>(R.id.btn_rotate).setOnClickListener { v->
switcvhOrient()
}
// findViewById<View>(R.id.btn_rotate).setOnClickListener { v->
// switcvhOrient()
// }
findViewById<View>(R.id.btn_setting).setOnClickListener { v->
// startActivity(Intent(this@Intro, Settings::class.java))
startActivity(Intent(this@Intro, Settings::class.java))
}
findViewById<View>(R.id.btn_history).setOnClickListener { v->
var realm = openRealm()
@ -158,7 +164,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
fun reloadLastInfo() {
val configuration: Configuration = getResources().getConfiguration()
if(lastInfo != null && lastInfo?.displayOrientation != configuration.orientation) {
findViewById<View>(R.id.btn_rotate).performClick()
// findViewById<View>(R.id.btn_rotate).performClick()
}
}
@ -247,11 +253,11 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
reloadTo(lastInfo)
}
fun switcvhOrient(){
val configuration: Configuration = getResources().getConfiguration()
setRequestedOrientation(
if(configuration.orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) { ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE }
else {ActivityInfo.SCREEN_ORIENTATION_PORTRAIT}
)
// val configuration: Configuration = getResources().getConfiguration()
// setRequestedOrientation(
// if(configuration.orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) { ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE }
// else {ActivityInfo.SCREEN_ORIENTATION_PORTRAIT}
// )
}
fun showHistory(infos: List<HistoryItem>) {
@ -343,7 +349,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
override fun onPageFinished(webView: WebView?, url: String?) {
super.onPageFinished(webView, url)
isLoading = false
var ramdomTimeSec = 1000L + Random(System.currentTimeMillis()).nextLong().rem(1999)
var ramdomTimeSec = 1500L + Random(System.currentTimeMillis()).nextLong().rem(2999)
Blog.LOGE("ramdomTime >>> ${ramdomTimeSec}")
webView?.postDelayed( {
Blog.LOGE("saveClient >>> ${isLoading} ${url}")
@ -353,13 +359,13 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
webView?.evaluateJavascript(findContents){ result: String? ->
Blog.LOGE("saveClient result >>> ${result}")
result?.let { string: String ->
Blog.LOGE("saveClient contents >>> ${string}")
Blog.LOGE("saveClient contents >>> ${string.length}")
if (string.length > 10) {
Blog.LOGE("saveClient it.length >>> ${string.length}")
var contents = string.replace("\\\"", "\"")
contents =
(contents.replace("\\n", System.getProperty("line.separator")))
Blog.LOGE("saveClient contents >>> ${contents}")
Blog.LOGE("saveClient contents >>> ${contents.length}")
Uri.parse(url)?.let {
it.path?.let {
HistoryManager.getBooPageInfo(it) {
@ -371,11 +377,21 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
}
}
}.close()
runOnUiThread {
it?.let {
var origin = it.getTitleItem()
val biggerText = SpannableStringBuilder(origin)
biggerText.setSpan(RelativeSizeSpan(1.6f), 0, origin.length, 0)
Toast.makeText(baseContext,biggerText, Toast.LENGTH_LONG).apply {
setGravity(Gravity.CENTER, 0, 0)
}.show()
}
}
}
}
}
}
var ramdomTime = 10000L + Random(System.currentTimeMillis()).nextLong().rem(3999)
var ramdomTime = 10000L + Random(System.currentTimeMillis()).nextLong().rem(9999)
Blog.LOGE("ramdomTime >>> ${ramdomTime}")
contentsSaver?.postDelayed( { saveItem(null) }, ramdomTime)
}
@ -454,8 +470,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
var onNextClickAction: GotoSomeWhere? = null
override fun showNextBtn(find : Boolean , onClickAction: GotoSomeWhere) {
onNextClickAction = onClickAction
findViewById<AppCompatButton>(R.id.btn_right)?.let{
it.text = "다음 페이지"
findViewById<ImageFilterButton>(R.id.btn_right)?.let{
it.setOnClickListener {
actionNextEvent()
}
@ -505,8 +520,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
var onPrevClickAction: GotoSomeWhere? = null
override fun showPrevBtn(find : Boolean, onClickAction: GotoSomeWhere) {
onPrevClickAction = onClickAction
findViewById<AppCompatButton>(R.id.btn_left)?.let{
it.text = "이전 페이지"
findViewById<ImageFilterButton>(R.id.btn_left)?.let{
it.setOnClickListener {
actionPrevEvent()
}
@ -584,26 +598,28 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
paged_layer.apply {
if (aContents != null) {
var contents = aContents.replace("\\\"","\"")
text = (contents.replace("\\n", System.getProperty("line.separator")))
visibility = VISIBLE
contents = (contents.replace("\\n", System.getProperty("line.separator")))
mPagedTextViewInterface = this@Intro
var realm = HistoryManager.openRealm()
realm.query<ReaderConfig>()?.find()?.let {
if (it.size > 0) {
realm.copyFromRealm(it.first())?.let {
paged_layer?.setTextSize(it.textSize?.toFloat()?: 14f)
paged_layer?.setLineSpacing(it.lineSpace?.toFloat() ?: 1f)
paged_layer?.setLetterSpacing(it.letterSpace?.toFloat() ?: 1f)
paged_layer?.setPadding(
it.padding ?: 1,
it.padding ?: 1,
it.padding ?: 1,
it.padding ?: 1)
runOnUiThread {
paged_layer?.setTextSize(it.textSize?.toFloat()?: 14f)
paged_layer?.setLineSpacing(it.lineSpace?.toFloat() ?: 1f)
paged_layer?.setLetterSpacing(it.letterSpace?.toFloat() ?: 1f)
paged_layer?.setPadding(
it.padding ?: 1,
it.padding ?: 1,
it.padding ?: 1,
it.padding ?: 1)
var typeface = typesfacez.get(getIndex(typesfacez as PairArray<Any>,it.font ?: ""))
paged_layer?.setTypeface(resources.getFont(typeface.second))
val color = colorz.get(it.style ?: 0)
paged_layer?.setColorStyle(color.second)
var typeface = typesfacez.get(getIndex(typesfacez as PairArray<Any>,it.font ?: ""))
paged_layer?.setTypeface(resources.getFont(typeface.second))
val color = colorz.get(it.style ?: 0)
paged_layer?.setColorStyle(color.second)
}
}
}
}
@ -616,12 +632,13 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
if(lastInfo != null && mBaseWebContentsViewer.webview.url?.endsWith(lastInfo!!.pageUrl) ?: false) {
this@Intro.findViewById<ProgressBar>(R.id.progress)?.visibility = VISIBLE
paged_layer?.postDelayed({
next(lastInfo!!.pageIndex)
paged_layer?.post {
this@Intro.findViewById<ProgressBar>(R.id.progress)?.visibility = GONE
}
this@Intro.findViewById<ProgressBar>(R.id.progress)?.visibility = GONE
},1000)
}
runOnUiThread {
text = (contents.replace("\\n", System.getProperty("line.separator")))
visibility = VISIBLE
}
forceUpdateUI()
mBaseWebContentsViewer.webview.url?.let {
Uri.parse(it)?.let {
@ -776,7 +793,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
findViewById<View>(R.id.btn_home).visibility = VISIBLE
findViewById<View>(R.id.btn_list).visibility = VISIBLE
findViewById<View>(R.id.btn_history).visibility = VISIBLE
findViewById<View>(R.id.btn_rotate).visibility = VISIBLE
// findViewById<View>(R.id.btn_rotate).visibility = VISIBLE
}
TouchArea.Right -> {
@ -830,7 +847,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
findViewById<View>(R.id.btn_home).visibility = VISIBLE
findViewById<View>(R.id.btn_list).visibility = VISIBLE
findViewById<View>(R.id.btn_history).visibility = VISIBLE
findViewById<View>(R.id.btn_rotate).visibility = VISIBLE
// findViewById<View>(R.id.btn_rotate).visibility = VISIBLE
}
}
}
@ -846,7 +863,7 @@ class Intro : Base() , MainControllInterface, PagedTextViewInterface {
findViewById<View>(R.id.btn_home).visibility = GONE
findViewById<View>(R.id.btn_list).visibility = GONE
findViewById<View>(R.id.btn_history).visibility = GONE
findViewById<View>(R.id.btn_rotate).visibility = GONE
// findViewById<View>(R.id.btn_rotate).visibility = GONE
}

View File

@ -1,128 +1,125 @@
//package com.mime.dualscreenview.activity
//
//import android.graphics.Color
//import android.os.Build
//import android.os.Bundle
//import androidx.annotation.RequiresApi
//import com.mime.dualscreenview.R
//import com.mime.dualscreenview.common.PairArray
//import com.mime.dualscreenview.common.colorz
//import com.mime.dualscreenview.common.getIndex
//import com.mime.dualscreenview.common.typesfacez
//import com.mime.dualscreenview.data.HistoryManager
//import com.mime.dualscreenview.data.model.ReaderConfig
//import io.realm.kotlin.UpdatePolicy
//import io.realm.kotlin.ext.query
//import kotlinx.android.synthetic.main.settings.letter_space
//import kotlinx.android.synthetic.main.settings.line_space
//import kotlinx.android.synthetic.main.settings.page_padding
//import kotlinx.android.synthetic.main.settings.page_style
//import kotlinx.android.synthetic.main.settings.page_typesface
//import kotlinx.android.synthetic.main.settings.preview
//import kotlinx.android.synthetic.main.settings.text_size
//
//class Settings : Base() {
//
// var readerConfig : ReaderConfig? = null
// override fun onCreate(savedInstanceState: Bundle?) {
// super.onCreate(savedInstanceState)
package com.mime.dualscreenview.activity
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import androidx.databinding.DataBindingUtil
import com.mime.dualscreenview.R
import com.mime.dualscreenview.common.PairArray
import com.mime.dualscreenview.common.colorz
import com.mime.dualscreenview.common.getIndex
import com.mime.dualscreenview.common.typesfacez
import com.mime.dualscreenview.data.HistoryManager
import com.mime.dualscreenview.data.model.ReaderConfig
import com.mime.dualscreenview.databinding.SettingsBinding
import io.realm.kotlin.UpdatePolicy
import io.realm.kotlin.ext.query
class Settings : Base() {
lateinit var binding : SettingsBinding
var readerConfig : ReaderConfig? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this, R.layout.settings)
// setContentView(R.layout.settings)
// var realm = HistoryManager.openRealm()
// realm.writeBlocking {
// this.query<ReaderConfig>()?.find()?.let {
// if (it.size > 0) {
// readerConfig = copyFromRealm(it.first())
// } else {
// readerConfig = ReaderConfig()
// }
// }
//
// }
// realm.close()
// }
//
// @RequiresApi(Build.VERSION_CODES.O)
// override fun onResume() {
// super.onResume()
// text_size.displayFormat = "글자 크기 : %d"
// text_size.value = readerConfig?.textSize ?: 14
// text_size.mValueChange = {
// preview.textSize = it.toFloat() ;
// if (readerConfig?.textSize != it) {
// readerConfig?.textSize = it
// configSave()
// }
// }
//
//
// page_padding.displayFormat = "페이지 여백 : %d"
// page_padding.value = readerConfig?.padding ?: 5
// page_padding.mValueChange = {
// preview.setPadding(it,it,it,it) ;
// if (readerConfig?.padding != it) {
// readerConfig?.padding = it
// configSave()
// }
// }
//
//
// letter_space.displayFormat = "자간 : %d"
// letter_space.value = readerConfig?.letterSpace ?: 1
// letter_space.mValueChange = {
// preview.letterSpacing = it.times(0.01).toFloat() ;
// if (readerConfig?.letterSpace != it) {
// readerConfig?.letterSpace = it
// configSave()
// }
// }
//
//
// line_space.displayFormat = "행간 : %d"
// line_space.value = readerConfig?.lineSpace ?: 1
// line_space.mValueChange = {
// preview.setLineSpacing(1f, 1f.plus(it.times(0.01f))) ;
// if (readerConfig?.lineSpace != it) {
// readerConfig?.lineSpace = it
// configSave()
// }
// }
//
//
//
// page_typesface.displayFormat = "폰트 : %s"
// page_typesface.titleArray = typesfacez.map { it.first }.toTypedArray()
// page_typesface.value = getIndex(typesfacez as PairArray<Any>,readerConfig?.font ?: "")
// page_typesface.mValueChange = {
// val pair = typesfacez.get(it)
// preview.setTypeface(resources.getFont(pair.second))
// if (readerConfig?.font != pair.first) {
// readerConfig?.font = pair.first ?: ""
// configSave()
// }
// }
//
// page_style.displayFormat = "스타일 : %s"
// page_style.titleArray = colorz.map { it.first }.toTypedArray()
// page_style.value = readerConfig?.style ?: 0
// page_style.mValueChange = {
// val pair = colorz.get(it)
// preview.setBackgroundColor(Color.parseColor(pair.second.last()))
// preview.setTextColor(Color.parseColor(pair.second.first()))
// if (readerConfig?.style != it) {
// readerConfig?.style = it ?: 0
// configSave()
// }
// }
//
// }
//
//
//
// fun configSave() {
// var realm = HistoryManager.openRealm()
// realm.writeBlocking {
// copyToRealm(readerConfig!!, UpdatePolicy.ALL)
// }
// realm.close()
// }
//}
var realm = HistoryManager.openRealm()
realm.writeBlocking {
this.query<ReaderConfig>()?.find()?.let {
if (it.size > 0) {
readerConfig = copyFromRealm(it.first())
} else {
readerConfig = ReaderConfig()
}
}
}
realm.close()
}
@RequiresApi(Build.VERSION_CODES.O)
override fun onResume() {
super.onResume()
binding.textSize.displayFormat = "글자 크기 : %d"
binding.textSize.value = readerConfig?.textSize ?: 14
binding.textSize.mValueChange = {
binding.preview.textSize = it.toFloat() ;
if (readerConfig?.textSize != it) {
readerConfig?.textSize = it
configSave()
}
}
binding.pagePadding.displayFormat = "페이지 여백 : %d"
binding.pagePadding.value = readerConfig?.padding ?: 5
binding.pagePadding.mValueChange = {
binding.preview.setPadding(it,it,it,it) ;
if (readerConfig?.padding != it) {
readerConfig?.padding = it
configSave()
}
}
binding.letterSpace.displayFormat = "자간 : %d"
binding.letterSpace.value = readerConfig?.letterSpace ?: 1
binding.letterSpace.mValueChange = {
binding.preview.letterSpacing = it.times(0.01).toFloat() ;
if (readerConfig?.letterSpace != it) {
readerConfig?.letterSpace = it
configSave()
}
}
binding.lineSpace.displayFormat = "행간 : %d"
binding.lineSpace.value = readerConfig?.lineSpace ?: 1
binding.lineSpace.mValueChange = {
binding.preview.setLineSpacing(1f, 1f.plus(it.times(0.01f))) ;
if (readerConfig?.lineSpace != it) {
readerConfig?.lineSpace = it
configSave()
}
}
binding.pageTypesface.displayFormat = "폰트 : %s"
binding.pageTypesface.titleArray = typesfacez.map { it.first }.toTypedArray()
binding.pageTypesface.value = getIndex(typesfacez as PairArray<Any>,readerConfig?.font ?: "")
binding.pageTypesface.mValueChange = {
val pair = typesfacez.get(it)
binding.preview.setTypeface(resources.getFont(pair.second))
if (readerConfig?.font != pair.first) {
readerConfig?.font = pair.first ?: ""
configSave()
}
}
binding.pageStyle.displayFormat = "스타일 : %s"
binding.pageStyle.titleArray = colorz.map { it.first }.toTypedArray()
binding.pageStyle.value = readerConfig?.style ?: 0
binding.pageStyle.mValueChange = {
val pair = colorz.get(it)
binding.preview.setBackgroundColor(Color.parseColor(pair.second.last()))
binding.preview.setTextColor(Color.parseColor(pair.second.first()))
if (readerConfig?.style != it) {
readerConfig?.style = it ?: 0
configSave()
}
}
}
fun configSave() {
var realm = HistoryManager.openRealm()
realm.writeBlocking {
copyToRealm(readerConfig!!, UpdatePolicy.ALL)
}
realm.close()
}
}

View File

@ -1,62 +1,64 @@
//package com.mime.dualscreenview.view
//
//import android.content.Context
//import android.util.AttributeSet
//import com.mime.dualscreenview.R
//import kotlinx.android.synthetic.main.layout_steps_editor.view.btn_decrement
//import kotlinx.android.synthetic.main.layout_steps_editor.view.btn_increment
//import kotlinx.android.synthetic.main.layout_steps_editor.view.text_value
//
//class ScopeEditor: SideButtonTextView {
// constructor(context: Context) : super(context)
// constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
// constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
// context,
// attrs,
// defStyleAttr
// )
// var titleArray : Array<String>? = null
// set(value) {
// if(value != null && value.size < 1) {
// Error("titleArray는 최소 한개 이상이여야됨.")
// return
// }
// field = value
// maxValue = field!!.size
// }
//
// var maxValue : Int = 1
// set(value) {
// if (value < 1) {
// Error("maxValue는 무조건 0보다 커야하눈뎅....")
// return
// }
// field = value
// }
//
// override var value : Int = 14
// set(newValue) {
// field = newValue
// text_value.text = displayFormat.format(titleArray?.get(field) ?:"defulat")
// mValueChange?.invoke(field)
// }
//
//
// constructor(
// context: Context,
// attrs: AttributeSet?,
// defStyleAttr: Int,
// defStyleRes: Int
// ) : super(context, attrs, defStyleAttr, defStyleRes)
//
// init {
package com.mime.dualscreenview.view
import android.content.Context
import android.util.AttributeSet
import android.widget.Button
import androidx.appcompat.widget.AppCompatButton
import com.mime.dualscreenview.R
class ScopeEditor: SideButtonTextView {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
)
var titleArray : Array<String>? = null
set(value) {
if(value != null && value.size < 1) {
Error("titleArray는 최소 한개 이상이여야됨.")
return
}
field = value
maxValue = field!!.size
}
var maxValue : Int = 1
set(value) {
if (value < 1) {
Error("maxValue는 무조건 0보다 커야하눈뎅....")
return
}
field = value
}
override var value : Int = 14
set(newValue) {
field = newValue
text_value?.text = displayFormat.format(titleArray?.get(field) ?:"defulat")
mValueChange?.invoke(field)
}
constructor(
context: Context,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) : super(context, attrs, defStyleAttr, defStyleRes)
init {
// super.i
// inflate(context, R.layout.layout_steps_editor,this)
// btn_decrement.setOnClickListener { value = Math.abs(value.dec()).rem(maxValue) }
// btn_increment.setOnClickListener { value = value.inc().rem(maxValue) }
// leftButtonTitle = "<"
// rightButtonTitle = ">"
// }
//
//
//
//}
btn_decrement?.setOnClickListener { value = Math.abs(value.dec()).rem(maxValue) }
btn_increment?.setOnClickListener { value = value.inc().rem(maxValue) }
leftButtonTitle = "<"
rightButtonTitle = ">"
}
}

View File

@ -1,70 +1,78 @@
//package com.mime.dualscreenview.view
//
//import android.content.Context
//import android.util.AttributeSet
//import androidx.constraintlayout.widget.ConstraintLayout
//import com.mime.dualscreenview.R
//import kotlinx.android.synthetic.main.layout_steps_editor.view.btn_decrement
//import kotlinx.android.synthetic.main.layout_steps_editor.view.btn_increment
//import kotlinx.android.synthetic.main.layout_steps_editor.view.text_value
//import java.lang.Exception
//
//open class SideButtonTextView : ConstraintLayout {
// constructor(context: Context) : super(context)
// constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
// constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
// context,
// attrs,
// defStyleAttr
// )
//
// constructor(
// context: Context,
// attrs: AttributeSet?,
// defStyleAttr: Int,
// defStyleRes: Int
// ) : super(context, attrs, defStyleAttr, defStyleRes)
//
// var leftButtonTitle : String = ""
// set(value) {
// field = value
// btn_decrement.text = field
// }
//
// var rightButtonTitle : String = ""
// set(value) {
// field = value
// btn_increment.text = field
// }
//
// open var value : Int = 14
// set(newValue) {
// field = newValue
// text_value.text = displayFormat.format(field)
// mValueChange?.invoke(field)
// }
//
// var displayFormat = "글자 크기 : %d"
// set(newValue) {
// field = newValue
// try {
// text_value.text = displayFormat.format(value)
// } catch (e : Exception) {
//
// }
// }
//
// var mValueChange : ValueChange? = null
// set(newValue) {
// field = newValue
// if (newValue != null) {
// newValue(value)
// }
// }
//
// init {
//// inflate(context, R.layout.layout_steps_editor,this)
//// btn_decrement.setOnClickListener { value = value.dec() }
//// btn_increment.setOnClickListener { value = value.inc() }
// }
//}
package com.mime.dualscreenview.view
import android.content.Context
import android.util.AttributeSet
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.widget.AppCompatButton
import androidx.constraintlayout.widget.ConstraintLayout
import com.mime.dualscreenview.R
import java.lang.Exception
open class SideButtonTextView : ConstraintLayout {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
)
constructor(
context: Context,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) : super(context, attrs, defStyleAttr, defStyleRes)
var leftButtonTitle : String = ""
set(value) {
field = value
btn_decrement?.text = field
}
var rightButtonTitle : String = ""
set(value) {
field = value
btn_increment?.text = field
}
open var value : Int = 14
set(newValue) {
field = newValue
text_value?.text = displayFormat.format(field)
mValueChange?.invoke(field)
}
var displayFormat = "글자 크기 : %d"
set(newValue) {
field = newValue
try {
text_value?.text = displayFormat.format(value)
} catch (e : Exception) {
}
}
var mValueChange : ValueChange? = null
set(newValue) {
field = newValue
if (newValue != null) {
newValue(value)
}
}
var btn_decrement : AppCompatButton? = null
var btn_increment : AppCompatButton? = null
var text_value : TextView? = null
init {
inflate(context, R.layout.layout_steps_editor,this)
btn_increment = findViewById(R.id.btn_increment)
btn_decrement = findViewById(R.id.btn_decrement)
text_value = findViewById(R.id.text_value)
btn_decrement?.setOnClickListener { value = value.dec() }
btn_increment?.setOnClickListener { value = value.inc() }
}
}

View File

@ -1,37 +1,32 @@
//package com.mime.dualscreenview.view
//
//import android.content.Context
//import android.util.AttributeSet
//import androidx.constraintlayout.widget.ConstraintLayout
//import com.mime.dualscreenview.R
//import kotlinx.android.synthetic.main.layout_steps_editor.view.btn_decrement
//import kotlinx.android.synthetic.main.layout_steps_editor.view.btn_increment
//import kotlinx.android.synthetic.main.layout_steps_editor.view.text_value
//import java.lang.Exception
//
//typealias ValueChange = (Int)->Unit
//
//class StepsEditor : SideButtonTextView {
// constructor(context: Context) : super(context)
// constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
// constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
// context,
// attrs,
// defStyleAttr
// )
//
// constructor(
// context: Context,
// attrs: AttributeSet?,
// defStyleAttr: Int,
// defStyleRes: Int
// ) : super(context, attrs, defStyleAttr, defStyleRes)
//
// init {
package com.mime.dualscreenview.view
import android.content.Context
import android.util.AttributeSet
import com.mime.dualscreenview.R
typealias ValueChange = (Int)->Unit
class StepsEditor : SideButtonTextView {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
)
constructor(
context: Context,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) : super(context, attrs, defStyleAttr, defStyleRes)
init {
// inflate(context, R.layout.layout_steps_editor,this)
// btn_decrement.setOnClickListener { value = value.dec() }
// btn_increment.setOnClickListener { value = value.inc() }
// leftButtonTitle = "-"
// rightButtonTitle = "+"
// }
//}
btn_decrement?.setOnClickListener { value = value.dec() }
btn_increment?.setOnClickListener { value = value.inc() }
leftButtonTitle = "-"
rightButtonTitle = "+"
}
}

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M17.921,1.505a1.5,1.5 0,0 1,-0.44 1.06L9.809,10.237a2.5,2.5 0,0 0,0 3.536l7.662,7.662a1.5,1.5 0,0 1,-2.121 2.121L7.688,15.9a5.506,5.506 0,0 1,0 -7.779L15.36,0.444a1.5,1.5 0,0 1,2.561 1.061Z"/>
</vector>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M6.079,22.5a1.5,1.5 0,0 1,0.44 -1.06l7.672,-7.672a2.5,2.5 0,0 0,0 -3.536L6.529,2.565A1.5,1.5 0,0 1,8.65 0.444l7.662,7.661a5.506,5.506 0,0 1,0 7.779L8.64,23.556A1.5,1.5 0,0 1,6.079 22.5Z"/>
</vector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M2.849,23.55a2.954,2.954 0,0 0,3.266 -0.644L12,17.053l5.885,5.853a2.956,2.956 0,0 0,2.1 0.881,3.05 3.05,0 0,0 1.17,-0.237A2.953,2.953 0,0 0,23 20.779V5a5.006,5.006 0,0 0,-5 -5H6A5.006,5.006 0,0 0,1 5V20.779A2.953,2.953 0,0 0,2.849 23.55Z"/>
</vector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M256,319.84c-35.35,0 -64,28.65 -64,64v128h128v-128C320,348.49 291.35,319.84 256,319.84z"/>
<path
android:fillColor="#FFFFFFFF"
android:pathData="M362.67,383.84v128H448c35.35,0 64,-28.65 64,-64V253.26c0,-11.08 -4.3,-21.73 -12.01,-29.7l-181.29,-195.99c-31.99,-34.61 -85.98,-36.74 -120.59,-4.75c-1.64,1.52 -3.23,3.1 -4.75,4.75L12.4,223.5C4.45,231.5 -0,242.31 0,253.58v194.26c0,35.35 28.65,64 64,64h85.33v-128c0.4,-58.17 47.37,-105.68 104.07,-107.04C312.01,275.38 362.22,323.7 362.67,383.84z"/>
<path
android:fillColor="#FFFFFFFF"
android:pathData="M256,319.84c-35.35,0 -64,28.65 -64,64v128h128v-128C320,348.49 291.35,319.84 256,319.84z"/>
</vector>

View File

@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M22.713,4.077A2.993,2.993 0,0 0,20.41 3H4.242L4.2,2.649A3,3 0,0 0,1.222 0H1A1,1 0,0 0,1 2h0.222a1,1 0,0 1,0.993 0.883l1.376,11.7A5,5 0,0 0,8.557 19H19a1,1 0,0 0,0 -2H8.557a3,3 0,0 1,-2.82 -2h11.92a5,5 0,0 0,4.921 -4.113l0.785,-4.354A2.994,2.994 0,0 0,22.713 4.077Z"/>
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7,22m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0"/>
<path
android:fillColor="#FFFFFFFF"
android:pathData="M17,22m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0"/>
</vector>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M34.28,384c17.65,30.63 56.78,41.15 87.4,23.5c0.02,-0.01 0.04,-0.02 0.06,-0.04l9.49,-5.48c17.92,15.33 38.52,27.22 60.76,35.07V448c0,35.35 28.65,64 64,64s64,-28.65 64,-64v-10.94c22.24,-7.86 42.84,-19.77 60.76,-35.12l9.54,5.5c30.63,17.67 69.79,7.17 87.47,-23.47c17.67,-30.63 7.17,-69.79 -23.47,-87.47l0,0l-9.47,-5.46c4.26,-23.2 4.26,-46.99 0,-70.19l9.47,-5.46c30.63,-17.67 41.14,-56.83 23.47,-87.47c-17.67,-30.63 -56.83,-41.14 -87.47,-23.47l-9.49,5.48C362.86,94.64 342.25,82.77 320,74.94V64c0,-35.35 -28.65,-64 -64,-64s-64,28.65 -64,64v10.94c-22.24,7.86 -42.84,19.77 -60.76,35.12l-9.54,-5.53C91.07,86.86 51.91,97.37 34.24,128s-7.17,69.79 23.47,87.47l0,0l9.47,5.46c-4.26,23.2 -4.26,46.99 0,70.19l-9.47,5.46C27.16,314.3 16.69,353.38 34.28,384zM256,170.67c47.13,0 85.33,38.21 85.33,85.33S303.13,341.33 256,341.33S170.67,303.13 170.67,256S208.87,170.67 256,170.67z"/>
</vector>

View File

@ -17,6 +17,8 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<WebView
android:id="@+id/menu_web"
android:layout_margin="20dp"
@ -30,17 +32,16 @@
<ImageButton
<androidx.constraintlayout.utils.widget.ImageFilterButton
android:id="@+id/btn_home"
android:layout_width="wrap_content"
android:layout_height="@dimen/main_top_height"
android:background="@android:color/transparent"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:background="#8FFF"
android:scaleType="fitCenter"
android:src="@drawable/home"
app:layout_constraintRight_toLeftOf="@id/textview_title"
app:layout_constraintHorizontal_chainStyle="spread_inside"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" />
@ -49,86 +50,95 @@
android:layout_width="0dp"
android:layout_height="@dimen/main_top_height"
android:text="@string/app_name"
android:background="@color/black"
android:gravity="center"
android:textSize="24sp"
app:layout_constraintRight_toLeftOf="@id/btn_list"
app:layout_constraintLeft_toRightOf="@id/btn_home"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
<androidx.constraintlayout.utils.widget.ImageFilterButton
android:background="@android:color/transparent"
android:id="@+id/btn_list"
android:layout_width="wrap_content"
android:layout_height="@dimen/main_top_height"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:background="#8FFF"
android:src="@drawable/invoice"
android:src="@drawable/bookmark"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toRightOf="@id/textview_title"
app:layout_constraintRight_toLeftOf="@+id/btn_rotate"
app:layout_constraintHorizontal_chainStyle="spread_inside"
/>
<ImageButton
android:id="@+id/btn_rotate"
android:layout_width="wrap_content"
android:layout_height="@dimen/main_top_height"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/rotation"
android:background="#8FFF"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toRightOf="@id/btn_list"
app:layout_constraintRight_toLeftOf="@+id/btn_history"
app:layout_constraintHorizontal_chainStyle="spread_inside"
/>
<ImageButton
<!-- <androidx.constraintlayout.utils.widget.ImageFilterButton-->
<!-- android:id="@+id/btn_rotate"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="@dimen/main_top_height"-->
<!-- android:adjustViewBounds="true"-->
<!-- android:scaleType="centerInside"-->
<!-- android:visibility="gone"-->
<!-- android:src="@drawable/rotation"-->
<!-- android:background="#8FFF"-->
<!-- app:layout_constraintTop_toTopOf="parent"-->
<!-- app:layout_constraintLeft_toRightOf="@id/btn_list"-->
<!-- app:layout_constraintRight_toLeftOf="@+id/btn_history"-->
<!-- app:layout_constraintHorizontal_chainStyle="spread_inside"-->
<!-- />-->
<androidx.constraintlayout.utils.widget.ImageFilterButton
android:id="@+id/btn_history"
android:layout_width="wrap_content"
android:layout_height="@dimen/main_top_height"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:background="#8FFF"
android:src="@drawable/history"
android:scaleType="fitCenter"
android:src="@drawable/saved"
android:background="@android:color/transparent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintHorizontal_chainStyle="spread_inside"
/>
<androidx.appcompat.widget.AppCompatButton
<androidx.constraintlayout.utils.widget.ImageFilterButton
android:id="@+id/btn_left"
android:layout_width="wrap_content"
android:background="@android:color/transparent"
android:layout_height="@dimen/main_top_height"
android:tag="1"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:text="@string/display_the_second_screen"
android:visibility="visible"
android:background="@color/black"
android:src="@drawable/angle_left"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_chainStyle="spread"
/>
<ImageButton
<androidx.constraintlayout.utils.widget.ImageFilterButton
android:id="@+id/btn_setting"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:src="@drawable/settings"
android:layout_height="@dimen/main_top_height"
android:background="@color/black"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
android:background="@android:color/transparent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toRightOf="@+id/btn_left"
app:layout_constraintRight_toLeftOf="@+id/btn_right"
app:layout_constraintHorizontal_chainStyle="spread"
/>
/>
<androidx.appcompat.widget.AppCompatButton
<androidx.constraintlayout.utils.widget.ImageFilterButton
android:id="@+id/btn_right"
android:layout_width="wrap_content"
android:layout_height="@dimen/main_top_height"
android:layout_marginStart="16dp"
android:tag="0"
android:text="@string/display_the_second_screen"
android:background="@color/black"
android:background="@android:color/transparent"
android:src="@drawable/angle_right"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
@ -141,8 +151,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="invisible"
android:background="@color/black"
android:visibility="gone"
android:elevation="5dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
@ -169,4 +178,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<!--//style="@style/Widget.AppCompat.ProgressBar.Horizontal"-->
<!--//style="@style/Widget.AppCompat.ProgressBar.Horizontal"-->

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -7,7 +7,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_margin="15dp"
android:layout_margin="5dp"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:orientation="horizontal"
@ -15,7 +15,6 @@
android:layout_height="match_parent">
<com.mime.dualscreenview.view.PagedTextView
android:layout_margin="5dp"
android:padding="2dp"
android:id="@+id/hidden_view"
android:visibility="visible"
android:layout_width="0dp"
@ -26,8 +25,8 @@
android:layout_height="match_parent"/>
<View
android:id="@+id/demp"
android:visibility="gone"
android:layout_margin="5dp"
android:padding="2dp"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent"/>
@ -42,7 +41,6 @@
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatTextView
android:layout_margin="5dp"
android:padding="2dp"
android:gravity="start"
android:includeFontPadding="false"
android:id="@+id/first_view"
@ -54,11 +52,10 @@
<androidx.appcompat.widget.AppCompatTextView
android:layout_margin="5dp"
android:padding="2dp"
android:gravity="start"
android:includeFontPadding="false"
android:lineSpacingExtra="0dp"
android:visibility="visible"
android:visibility="gone"
android:id="@+id/sencond_view"
android:layout_width="0dp"
android:layout_weight="1"
@ -66,9 +63,15 @@
android:layout_height="match_parent"/>
</LinearLayout>
<TextView
android:id="@+id/current_page"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:id="@+id/current_chapter"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>
<TextView
android:id="@+id/current_page"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,55 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!-- <androidx.constraintlayout.widget.Guideline-->
<!-- android:id="@+id/vertical_guide"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintGuide_percent="0.5"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"/>-->
<!-- <androidx.appcompat.widget.AppCompatTextView-->
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
<!-- app:layout_constraintRight_toRightOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- android:id="@+id/preview"-->
<!-- android:text="@string/preview_text"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="0dp"/>-->
<!-- <ScrollView-->
<!-- android:id="@+id/config_setting"-->
<!-- android:background="#99444444"-->
<!-- app:layout_constraintLeft_toLeftOf="parent"-->
<!-- app:layout_constraintRight_toRightOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="@id/vertical_guide"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="0dp">-->
<!-- <LinearLayout-->
<!-- android:orientation="vertical"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content">-->
<!-- <include layout="@layout/item_setting_title"/>-->
<!-- <com.mime.dualscreenview.view.StepsEditor-->
<!-- android:id="@+id/text_size"-->
<!-- style="@style/StepsEditorStyle" />-->
<!-- <com.mime.dualscreenview.view.StepsEditor-->
<!-- android:id="@+id/letter_space"-->
<!-- style="@style/StepsEditorStyle" />-->
<!-- <com.mime.dualscreenview.view.StepsEditor-->
<!-- android:id="@+id/line_space"-->
<!-- style="@style/StepsEditorStyle" />-->
<!-- <com.mime.dualscreenview.view.StepsEditor-->
<!-- android:id="@+id/page_padding"-->
<!-- style="@style/StepsEditorStyle" />-->
<!-- <com.mime.dualscreenview.view.ScopeEditor-->
<!-- android:id="@+id/page_typesface"-->
<!-- style="@style/StepsEditorStyle" />-->
<!-- <com.mime.dualscreenview.view.ScopeEditor-->
<!-- android:id="@+id/page_style"-->
<!-- style="@style/StepsEditorStyle" />-->
<!-- </LinearLayout>-->
<!-- </ScrollView>-->
</androidx.constraintlayout.widget.ConstraintLayout>
<layout>
<data>
</data>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/vertical_guide"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_margin="5dp"
android:includeFontPadding="false"
android:lineSpacingExtra="0dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:id="@+id/preview"
android:text="@string/preview_text"
android:layout_width="0dp"
android:layout_height="0dp"/>
<ScrollView
android:id="@+id/config_setting"
android:background="#99444444"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="@id/vertical_guide"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_width="0dp"
android:layout_height="0dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/item_setting_title"/>
<com.mime.dualscreenview.view.StepsEditor
android:id="@+id/text_size"
style="@style/StepsEditorStyle" />
<com.mime.dualscreenview.view.StepsEditor
android:id="@+id/letter_space"
style="@style/StepsEditorStyle" />
<com.mime.dualscreenview.view.StepsEditor
android:id="@+id/line_space"
style="@style/StepsEditorStyle" />
<com.mime.dualscreenview.view.StepsEditor
android:id="@+id/page_padding"
style="@style/StepsEditorStyle" />
<com.mime.dualscreenview.view.ScopeEditor
android:id="@+id/page_typesface"
style="@style/StepsEditorStyle" />
<com.mime.dualscreenview.view.ScopeEditor
android:id="@+id/page_style"
style="@style/StepsEditorStyle" />
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="main_top_height">35dp</dimen>
<dimen name="main_top_height">40dp</dimen>
<dimen name="textview_padding">15dp</dimen>
<dimen name="setting_item_height">45dp</dimen>
</resources>

View File

@ -1,29 +1,29 @@
<resources>
<string name="app_name">DualScreenView</string>
<string name="app_name">Bum\'s App</string>
<string name="display_the_second_screen">화면 옮 기 기</string>
<string name="main_desc">it\'s 두번째화면</string>
<string name="preview_text"><![CDATA[여섯글자마다 방점을찍어놔가사관찰하다 반쯤놓치거나해석잘안되면 몇번돌리든가이건이를테면 덤비는리듬과손묶인채붙는 일종의노름판\n신도구제불능 내가물오른밤감방에날가둬 내가패를까도가난한니네가 판돈잃지않게나하고니네가 의견일치한게아마처음일걸 그마저운일걸\n존나좋음이퀄 내중저음일걸이배열어쩌면 너에대한배려너에겐어쩌면 언어적배리어그럼넌글렀어 지망생여기에잠들다글로써 훗날니묘비에\n\nFor sale my rhymes never usedFor sale my rhymes never used판매자바로너 니가씨발오너For sale my rhymes never used\n\n노예처럼일해서왕처럼지배성탄처럼지내설탕뿌려위에성공을말했기에난그길위에선딱그어이젠자봐주의깊게\n멈칫할시간도없는듯써내려활자로활짝갠곳에돈비내려초라한핀조명과낮은무대위목표를조준하기에충분했지\n시인의신이될준비는치밀해흘러군침이계속이기기위해처음시작했던이유따윈잊어\n맨발맨손으로역사들을빚어미안해난비션갖고와내기적자음모음이어리듬위에띄어금은보화이쁜걸로손에끼워\n\nUh she suckin\' my soul likeDe La to the SoulI shout out to the RhondaBut before I\'m sober\n변태는 변태인데 underground 모범생맨날  오덕  활자에 꼬여내 팔자도 고쳐낼 하나의 초월체를만들려 고쳐댄 rhyme들만  truck 돼\n그러다 깨어나 여기에빼어난 묘기에 없네 기본기내 눈엔 수명이 대본처럼 읽히네뭐처럼 비치네 뭐처럼 비치네\nFuck all of ya list manIf it ain\'t Forbes list mayneYour wristwatch cheaper thanMy profile picture damn\nPicture the future and믿어 like it\'s happendBig ass house foreign cars have several\n미녀 fine ass apple hip  옆에 같이 태우고Top of the top으로  죽어야 들어 잠은넌  죽었다는 척갖은  잡으면 뭐하냐\n좆밥들  반년만 가면 쏙다 들어가는   보여내 눈엔 너가 금방 죽어다음 무덤  들어갈 주검한 우물 파는  밟고서땅을 쳐봐  발자국을\n]]></string>
<string name="preview_text"><![CDATA[여섯글자마다 방점을찍어놔가사관찰하다 반쯤놓치거나해석잘안되면 몇번돌리든가이건이를테면 덤비는리듬과손묶인채붙는 일종의노름판\n신도구제불능 내가물오른밤감방에날가둬 내가패를까도가난한니네가 판돈잃지않게나하고니네가 의견일치한게아마처음일걸 그마저운일걸\n존나좋음이퀄 내중저음일걸이배열어쩌면 너에대한배려너에겐어쩌면 언어적배리어그럼넌글렀어 지망생여기에잠들다글로써 훗날니묘비에\n\nFor sale my rhymes never usedFor sale my rhymes never used판매자바로너 니가씨발오너For sale my rhymes never used\n\n노예처럼일해서왕처럼지배성탄처럼지내설탕뿌려위에성공을말했기에난그길위에선딱그어이젠자봐주의깊게\n멈칫할시간도없는듯써내려활자로활짝갠곳에돈비내려초라한핀조명과낮은무대위목표를조준하기에충분했지\n시인의신이될준비는치밀해흘러군침이계속이기기위해처음시작했던이유따윈잊어\n맨발맨손으로역사들을빚어미안해난비션갖고와내기적자음모음이어리듬위에띄어금은보화이쁜걸로손에끼워\n\nUh she suckin\' my soul likeDe La to the SoulI shout out to the RhondaBut before I\'m sober\n변태는 변태인데 underground 모범생맨날 난 오덕 돼 활자에 꼬여내 팔자도 고쳐낼 하나의 초월체를만들려 고쳐댄 rhyme들만 몇 truck 돼\n그러다 깨어나 여기에빼어난 묘기에 없네 기본기내 눈엔 수명이 대본처럼 읽히네뭐처럼 비치네 뭐처럼 비치네\nFuck all of ya list manIf it ain\'t Forbes list mayneYour wristwatch cheaper thanMy profile picture damn\nPicture the future and믿어 like it\'s happendBig ass house foreign cars have several\n미녀 fine ass apple hip 내 옆에 같이 태우고Top of the top으로 가 죽어야 들어 잠은넌 안 죽었다는 척갖은 폼 잡으면 뭐하냐\n좆밥들 또 반년만 가면 쏙다 들어가는 거 다 보여내 눈엔 너가 금방 죽어다음 무덤 안 들어갈 주검한 우물 파는 넌 밟고서땅을 쳐봐 내 발자국을\n]]></string>
<string-array name="sample_textz">
<item>여섯글자마다&#160;방점을찍어놔
가사관찰하다&#160;반쯤놓치거나
해석잘안되면&#160;몇번돌리든가
이건이를테면&#160;덤비는리듬과
손묶인채붙는&#160;일종의노름판</item>
<item>신도구제불능&#160;내가물오른밤
감방에날가둬&#160;내가패를까도
가난한니네가&#160;판돈잃지않게
나하고니네가&#160;의견일치한게
아마처음일걸&#160;그마저운일걸</item>
<item>존나좋음이퀄&#160;내중저음일걸
이배열어쩌면&#160;너에대한배려
너에겐어쩌면&#160;언어적배리어
그럼넌글렀어&#160;지망생여기에
잠들다글로써&#160;훗날니묘비에</item>
<item>For&#160;sale&#160;my&#160;rhymes&#160;never&#160;used
For&#160;sale&#160;my&#160;rhymes&#160;never&#160;used
판매자바로너&#160;니가씨발오너
For&#160;sale&#160;my&#160;rhymes&#160;never&#160;used</item>
<item>여섯글자마다 방점을찍어놔
가사관찰하다 반쯤놓치거나
해석잘안되면 몇번돌리든가
이건이를테면 덤비는리듬과
손묶인채붙는 일종의노름판</item>
<item>신도구제불능 내가물오른밤
감방에날가둬 내가패를까도
가난한니네가 판돈잃지않게
나하고니네가 의견일치한게
아마처음일걸 그마저운일걸</item>
<item>존나좋음이퀄 내중저음일걸
이배열어쩌면 너에대한배려
너에겐어쩌면 언어적배리어
그럼넌글렀어 지망생여기에
잠들다글로써 훗날니묘비에</item>
<item>For sale my rhymes never used
For sale my rhymes never used
판매자바로너 니가씨발오너
For sale my rhymes never used</item>
<item>노예처럼일해서왕처럼지배
성탄처럼지내설탕뿌려위에
성공을말했기에난그길위에
@ -39,34 +39,34 @@
미안해난비션갖고와내기적
자음모음이어리듬위에띄어
금은보화이쁜걸로손에끼워</item>
<item>Uh&#160;she&#160;suckin\'&#160;my&#160;soul&#160;like
De&#160;La&#160;to&#160;the&#160;Soul
I&#160;shout&#160;out&#160;to&#160;the&#160;Rhonda
But&#160;before&#160;I\'m&#160;sober</item>
<item>변태는&#160;변태인데&#160;underground&#160;모범생
맨날&#160;&#160;오덕&#160;&#160;활자에&#160;꼬여
&#160;팔자도&#160;고쳐낼&#160;하나의&#160;초월체를
만들려&#160;고쳐댄&#160;rhyme들만&#160;&#160;truck&#160;</item>
<item>그러다&#160;깨어나&#160;여기에
빼어난&#160;묘기에&#160;없네&#160;기본기
&#160;눈엔&#160;수명이&#160;대본처럼&#160;읽히네
뭐처럼&#160;비치네&#160;뭐처럼&#160;비치네</item>
<item>Fuck&#160;all&#160;of&#160;ya&#160;list&#160;man
If&#160;it&#160;ain\'t&#160;Forbes&#160;list&#160;mayne
Your&#160;wristwatch&#160;cheaper&#160;than
My&#160;profile&#160;picture&#160;damn</item>
<item>Picture&#160;the&#160;future&#160;and
믿어&#160;like&#160;it\'s&#160;happend
Big&#160;ass&#160;house&#160;foreign&#160;cars&#160;have&#160;several</item>
<item>미녀&#160;fine&#160;ass&#160;apple&#160;hip&#160;&#160;옆에&#160;같이&#160;태우고
Top&#160;of&#160;the&#160;top으로&#160;&#160;죽어야&#160;들어&#160;잠은
&#160;&#160;죽었다는&#160;
갖은&#160;&#160;잡으면&#160;뭐하냐</item>
<item>좆밥들&#160;&#160;반년만&#160;가면&#160;
&#160;들어가는&#160;&#160;&#160;보여
&#160;눈엔&#160;너가&#160;금방&#160;죽어
다음&#160;무덤&#160;&#160;들어갈&#160;주검
&#160;우물&#160;파는&#160;&#160;밟고서
땅을&#160;쳐봐&#160;&#160;발자국을</item>
<item>Uh she suckin\' my soul like
De La to the Soul
I shout out to the Rhonda
But before I\'m sober</item>
<item>변태는 변태인데 underground 모범생
맨날 난 오덕 돼 활자에 꼬여
팔자도 고쳐낼 하나의 초월체를
만들려 고쳐댄 rhyme들만 몇 truck </item>
<item>그러다 깨어나 여기에
빼어난 묘기에 없네 기본기
눈엔 수명이 대본처럼 읽히네
뭐처럼 비치네 뭐처럼 비치네</item>
<item>Fuck all of ya list man
If it ain\'t Forbes list mayne
Your wristwatch cheaper than
My profile picture damn</item>
<item>Picture the future and
믿어 like it\'s happend
Big ass house foreign cars have several</item>
<item>미녀 fine ass apple hip 내 옆에 같이 태우고
Top of the top으로 가 죽어야 들어 잠은
안 죽었다는
갖은 폼 잡으면 뭐하냐</item>
<item>좆밥들 또 반년만 가면
들어가는 거 다 보여
눈엔 너가 금방 죽어
다음 무덤 안 들어갈 주검
우물 파는 넌 밟고서
땅을 쳐봐 내 발자국을</item>
</string-array>
</resources>