Commit 0af0d011 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fix toolbar show on article

parent e119bfde
......@@ -12,6 +12,7 @@ import androidx.core.text.HtmlCompat
import butterknife.BindView
import butterknife.OnClick
import com.biganto.visual.roompark.R
import com.biganto.visual.roompark.base.HeaderToolbarModel
import com.biganto.visual.roompark.base.RoomParkApplication
import com.biganto.visual.roompark.base.RoomParkMainActivity
import com.biganto.visual.roompark.conductor.BigantoBaseController
......@@ -81,24 +82,12 @@ class ArticleScreenController :
handleBack()
}
private fun setToolbar(){
toolBar.hideAll()
toolBar.appBar.setExpanded(false,false)
// toolBar.collapsingToolbarLayout.stateTitle = "ИЗБРАННОЕ"
// toolBar.appBar.liftOnScrollTargetViewId = R.id.Article_cards_recycler_view
toolBar.appBar.setLiftable(false)
toolBar.appBarScrollable(false)
// ArticleRecyclerView.isNestedScrollingEnabled = false
}
private fun bindRecycler() {
}
override fun onViewBound(v: View) {
setToolbar()
toolBar.setToolbar()
bindRecycler()
}
......
package com.biganto.visual.roompark.presentation.screen.feed_list
import android.view.View
import androidx.appcompat.widget.Toolbar
import androidx.core.os.bundleOf
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
......@@ -47,12 +46,7 @@ class ArticlesScreenController :
private fun setToolbar() {
toolBar.showAll()
toolBar.appBar.setExpanded(false, false)
toolBar.appBar.setLiftable(true)
toolBar.appBarScrollable(false)
articlesRecyclerView.isNestedScrollingEnabled = false
// articlesRecyclerView.isNestedScrollingEnabled = false
toolBar.setToolbar(
HeaderToolbarModel(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment