|
|
@ -4,6 +4,7 @@ import android.app.Activity |
|
|
|
import android.content.Intent |
|
|
|
import android.content.Intent |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
|
|
|
|
import android.text.method.ScrollingMovementMethod |
|
|
|
import android.view.Menu |
|
|
|
import android.view.Menu |
|
|
|
import android.view.MenuItem |
|
|
|
import android.view.MenuItem |
|
|
|
import androidx.lifecycle.Observer |
|
|
|
import androidx.lifecycle.Observer |
|
|
@ -53,6 +54,7 @@ class BookInfoActivity : |
|
|
|
|
|
|
|
|
|
|
|
override fun onActivityCreated(savedInstanceState: Bundle?) { |
|
|
|
override fun onActivityCreated(savedInstanceState: Bundle?) { |
|
|
|
title_bar.background.alpha = 0 |
|
|
|
title_bar.background.alpha = 0 |
|
|
|
|
|
|
|
tv_intro.movementMethod = ScrollingMovementMethod.getInstance() |
|
|
|
viewModel.bookData.observe(this, Observer { showBook(it) }) |
|
|
|
viewModel.bookData.observe(this, Observer { showBook(it) }) |
|
|
|
viewModel.isLoadingData.observe(this, Observer { upLoading(it) }) |
|
|
|
viewModel.isLoadingData.observe(this, Observer { upLoading(it) }) |
|
|
|
viewModel.chapterListData.observe(this, Observer { showChapter(it) }) |
|
|
|
viewModel.chapterListData.observe(this, Observer { showChapter(it) }) |
|
|
|