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 ...@@ -12,6 +12,7 @@ import androidx.core.text.HtmlCompat
import butterknife.BindView import butterknife.BindView
import butterknife.OnClick import butterknife.OnClick
import com.biganto.visual.roompark.R 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.RoomParkApplication
import com.biganto.visual.roompark.base.RoomParkMainActivity import com.biganto.visual.roompark.base.RoomParkMainActivity
import com.biganto.visual.roompark.conductor.BigantoBaseController import com.biganto.visual.roompark.conductor.BigantoBaseController
...@@ -81,24 +82,12 @@ class ArticleScreenController : ...@@ -81,24 +82,12 @@ class ArticleScreenController :
handleBack() 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() { private fun bindRecycler() {
} }
override fun onViewBound(v: View) { override fun onViewBound(v: View) {
setToolbar() toolBar.setToolbar()
bindRecycler() bindRecycler()
} }
......
package com.biganto.visual.roompark.presentation.screen.feed_list package com.biganto.visual.roompark.presentation.screen.feed_list
import android.view.View import android.view.View
import androidx.appcompat.widget.Toolbar
import androidx.core.os.bundleOf import androidx.core.os.bundleOf
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
...@@ -47,12 +46,7 @@ class ArticlesScreenController : ...@@ -47,12 +46,7 @@ class ArticlesScreenController :
private fun setToolbar() { private fun setToolbar() {
toolBar.showAll() // articlesRecyclerView.isNestedScrollingEnabled = false
toolBar.appBar.setExpanded(false, false)
toolBar.appBar.setLiftable(true)
toolBar.appBarScrollable(false)
articlesRecyclerView.isNestedScrollingEnabled = false
toolBar.setToolbar( toolBar.setToolbar(
HeaderToolbarModel( 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