feat: 优化

pull/209/head
kunfei 5 years ago
parent d7d42dd8b3
commit c710aff4c4
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt

@ -144,6 +144,7 @@ class ContentView(context: Context) : FrameLayout(context) {
ConstraintUtil(ll_header).begin() ConstraintUtil(ll_header).begin()
.clear(R.id.tv_header_left, 2) .clear(R.id.tv_header_left, 2)
.setWidth(R.id.tv_header_left, ViewGroup.LayoutParams.WRAP_CONTENT) .setWidth(R.id.tv_header_left, ViewGroup.LayoutParams.WRAP_CONTENT)
.setHorizontalWeight(R.id.tv_footer_left, 0f)
.commit() .commit()
tv_header_left tv_header_left
} }
@ -153,6 +154,7 @@ class ContentView(context: Context) : FrameLayout(context) {
ConstraintUtil(ll_header).begin() ConstraintUtil(ll_header).begin()
.clear(R.id.tv_footer_left, 2) .clear(R.id.tv_footer_left, 2)
.setWidth(R.id.tv_footer_left, ViewGroup.LayoutParams.WRAP_CONTENT) .setWidth(R.id.tv_footer_left, ViewGroup.LayoutParams.WRAP_CONTENT)
.setHorizontalWeight(R.id.tv_footer_left, 0f)
.commit() .commit()
tv_footer_left tv_footer_left
} }

Loading…
Cancel
Save