|
@@ -619,10 +619,10 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
}
|
|
}
|
|
|
|
|
|
private fun changeLeftToolbarType(type: LeftToolbarType) {
|
|
private fun changeLeftToolbarType(type: LeftToolbarType) {
|
|
- iv_readerActivity_thumbnail.setImageResource(R.drawable.ic_pagelist_thumbnail_nor)
|
|
|
|
- iv_readerActivity_bookmark.setImageResource(R.drawable.ic_pagelist_bookmk_nor)
|
|
|
|
- iv_readerActivity_outline.setImageResource(R.drawable.ic_pagelist_outline_nor)
|
|
|
|
- iv_readerActivity_search.setImageResource(R.drawable.ic_pagelist_search_nor)
|
|
|
|
|
|
+ iv_readerActivity_thumbnail.setImageResource(R.drawable.ic_left_toolbar_thumbnails)
|
|
|
|
+ iv_readerActivity_bookmark.setImageResource(R.drawable.ic_left_toolbar_bookmarks)
|
|
|
|
+ iv_readerActivity_outline.setImageResource(R.drawable.ic_left_toolbar_outline)
|
|
|
|
+ iv_readerActivity_search.setImageResource(R.drawable.ic_left_toolbar_search)
|
|
|
|
|
|
val width = when (type) {
|
|
val width = when (type) {
|
|
LeftToolbarType.THUMBNAIL -> w_240
|
|
LeftToolbarType.THUMBNAIL -> w_240
|
|
@@ -656,9 +656,9 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
thumbnailView.setHandlers(viewModel.pdfInfoHandler, viewModel.thumbnailHandler)
|
|
thumbnailView.setHandlers(viewModel.pdfInfoHandler, viewModel.thumbnailHandler)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(thumbnailView)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(thumbnailView)
|
|
}
|
|
}
|
|
- iv_readerActivity_thumbnail.setImageResource(R.drawable.ic_pagelist_thumbnail_h)
|
|
|
|
|
|
+ iv_readerActivity_thumbnail.setImageResource(R.drawable.ic_left_toolbar_thumbnails_selected)
|
|
} else {
|
|
} else {
|
|
- iv_readerActivity_thumbnail.setImageResource(R.drawable.ic_pagelist_thumbnail_nor)
|
|
|
|
|
|
+ iv_readerActivity_thumbnail.setImageResource(R.drawable.ic_left_toolbar_thumbnails)
|
|
}
|
|
}
|
|
leftToolbarType = type
|
|
leftToolbarType = type
|
|
}
|
|
}
|
|
@@ -673,9 +673,9 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
bookmarkView.setHandlers(viewModel.pdfInfoHandler, viewModel.thumbnailHandler, viewModel.bookmarkHandler)
|
|
bookmarkView.setHandlers(viewModel.pdfInfoHandler, viewModel.thumbnailHandler, viewModel.bookmarkHandler)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(bookmarkView)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(bookmarkView)
|
|
}
|
|
}
|
|
- iv_readerActivity_bookmark.setImageResource(R.drawable.ic_pagelist_bookmk_h)
|
|
|
|
|
|
+ iv_readerActivity_bookmark.setImageResource(R.drawable.ic_left_toolbar_bookmarks_selected)
|
|
} else {
|
|
} else {
|
|
- iv_readerActivity_bookmark.setImageResource(R.drawable.ic_pagelist_bookmk_nor)
|
|
|
|
|
|
+ iv_readerActivity_bookmark.setImageResource(R.drawable.ic_left_toolbar_bookmarks)
|
|
}
|
|
}
|
|
leftToolbarType = type
|
|
leftToolbarType = type
|
|
}
|
|
}
|
|
@@ -690,9 +690,9 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
outlineView.setHandlers(viewModel.pdfInfoHandler, viewModel.outlineHandler)
|
|
outlineView.setHandlers(viewModel.pdfInfoHandler, viewModel.outlineHandler)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(outlineView)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(outlineView)
|
|
}
|
|
}
|
|
- iv_readerActivity_outline.setImageResource(R.drawable.ic_pagelist_outline_h)
|
|
|
|
|
|
+ iv_readerActivity_outline.setImageResource(R.drawable.ic_left_toolbar_outline_selected)
|
|
} else {
|
|
} else {
|
|
- iv_readerActivity_outline.setImageResource(R.drawable.ic_pagelist_outline_nor)
|
|
|
|
|
|
+ iv_readerActivity_outline.setImageResource(R.drawable.ic_left_toolbar_outline)
|
|
}
|
|
}
|
|
leftToolbarType = type
|
|
leftToolbarType = type
|
|
}
|
|
}
|
|
@@ -707,9 +707,9 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
searchView.setHandlers(viewModel.pdfInfoHandler, viewModel.searchHandler)
|
|
searchView.setHandlers(viewModel.pdfInfoHandler, viewModel.searchHandler)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(searchView)
|
|
linearLayout_readerActivity_leftToolbarContainer.addView(searchView)
|
|
}
|
|
}
|
|
- iv_readerActivity_search.setImageResource(R.drawable.ic_pagelist_search_h)
|
|
|
|
|
|
+ iv_readerActivity_search.setImageResource(R.drawable.ic_left_toolbar_search_selected)
|
|
} else {
|
|
} else {
|
|
- iv_readerActivity_search.setImageResource(R.drawable.ic_pagelist_search_nor)
|
|
|
|
|
|
+ iv_readerActivity_search.setImageResource(R.drawable.ic_left_toolbar_search)
|
|
hideSearchViewSoftKeyboard()
|
|
hideSearchViewSoftKeyboard()
|
|
}
|
|
}
|
|
leftToolbarType = type
|
|
leftToolbarType = type
|