Commit 8d8c226a authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fix main screen bottom margin

parent db96e964
...@@ -148,17 +148,14 @@ class RoomParkMainActivity( ...@@ -148,17 +148,14 @@ class RoomParkMainActivity(
bottomNavigation.setGone(false) bottomNavigation.setGone(false)
bottomNavigation.setGone(false) bottomNavigation.setGone(false)
val params = conductorContainer.layoutParams as CoordinatorLayout.LayoutParams val params = conductorContainer.layoutParams as CoordinatorLayout.LayoutParams
params.bottomMargin = bottomNavigation.height params.bottomMargin = resources.getDimensionPixelSize(R.dimen.bottom_navigation_height)
conductorContainer.requestLayout() conductorContainer.requestLayout()
} }
override fun showAll() { override fun showAll() {
// appBar.setExpanded(true,false)
// appBar.visibility= View.VISIBLE
topAppBar.visibility = View.VISIBLE topAppBar.visibility = View.VISIBLE
val params = conductorContainer.layoutParams as CoordinatorLayout.LayoutParams val params = conductorContainer.layoutParams as CoordinatorLayout.LayoutParams
params.behavior = AppBarLayout.ScrollingViewBehavior() params.behavior = AppBarLayout.ScrollingViewBehavior()
conductorContainer.requestLayout() conductorContainer.requestLayout()
......
...@@ -47,16 +47,16 @@ class FeedsScreenController : ...@@ -47,16 +47,16 @@ class FeedsScreenController :
override fun onCameraSelected(): Observable<WebCamModel> = override fun onCameraSelected(): Observable<WebCamModel> =
(camsRecyclerView.adapter as CamsListAdapter).onItemClicked (camsRecyclerView.adapter as CamsListAdapter).onItemClicked
.debounce (1220L, TimeUnit.MILLISECONDS) .debounce (120L, TimeUnit.MILLISECONDS)
override fun onArticleSelected(): Observable<ArticlePreviewModel> = override fun onArticleSelected(): Observable<ArticlePreviewModel> =
(feedsRecyclerView.adapter as ArticlesPreviewAdapter).onItemClicked (feedsRecyclerView.adapter as ArticlesPreviewAdapter).onItemClicked
.debounce (1220L, TimeUnit.MILLISECONDS) .debounce (120L, TimeUnit.MILLISECONDS)
override fun onAlbumSelected(): Observable<AlbumPreviewModel> = override fun onAlbumSelected(): Observable<AlbumPreviewModel> =
(devProgressRecyclerView.adapter as AlbumsPreviewAdapter).onItemClicked (devProgressRecyclerView.adapter as AlbumsPreviewAdapter).onItemClicked
.debounce (1220L, TimeUnit.MILLISECONDS) .debounce (120L, TimeUnit.MILLISECONDS)
override fun feedsTabSelected(): Observable<String> override fun feedsTabSelected(): Observable<String>
= feedsTabs.selections() = feedsTabs.selections()
......
...@@ -33,7 +33,6 @@ class FeedsScreenPresenter @Inject constructor( ...@@ -33,7 +33,6 @@ class FeedsScreenPresenter @Inject constructor(
override fun attachView(view: FeedsScreen) { override fun attachView(view: FeedsScreen) {
Timber.d("AttachView ") Timber.d("AttachView ")
super.attachView(view) super.attachView(view)
} }
......
...@@ -10,4 +10,6 @@ ...@@ -10,4 +10,6 @@
<dimen name="ceil_grid_padding">8dp</dimen> <dimen name="ceil_grid_padding">8dp</dimen>
<dimen name="tab_max_width">999dp</dimen> <dimen name="tab_max_width">999dp</dimen>
<dimen name="bottom_navigation_height">56dp</dimen>
</resources> </resources>
\ No newline at end of file
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