cost 278 ms
鍵盤正在使用 NestedScrollView 和 RcyclerView 推動部分布局

[英]Keyboard is pushing part of the layout with NestedScrollView and RcyclerView

我有這樣的布局 但是,鍵盤正在推動底部的黑色視圖(第二個屏幕截圖)。 如果我刪除RecyclerView然后鍵盤按預期工作,黑色視圖在下面(第一個屏幕截圖)。 我嘗試了app:layout_behavior="@string/appbar_scrolling_view_behavior" .. ...

com.google.android.material.appbar.AppBarLayout$LayoutParams 不能轉換為 androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams

[英]com.google.android.material.appbar.AppBarLayout$LayoutParams cannot be cast to androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams

我使用了 CoordinatorLayout + AppBarLayout,因此工具欄可以在滾動時消失,並將 Recycler View 放在 tablayout 下方。 但是在我更改了模型邏輯並在工具欄中添加了子元素之后,這個致命錯誤不斷發生。 將根布局更改為 LinearLayout 或 Fra ...

LazyColumn 可以與 CoordinatorLayout 一起使用嗎?

[英]Can LazyColumn work along with CoordinatorLayout?

我正在將應用程序遷移到 Jetpack Compose,並且在查看/撰寫混合屏幕上出現以下情況: 布局根元素是一個 CoordinatorLayout,它有一個可折疊的頂欄。 內容是一個 FragmentViewPager,其中一個頁面是我要遷移到 Compose 的 Fragment。 當我在這 ...

FloatingActionButton 未固定在 RecyclerView 中

[英]FloatingActionButton is not pinning in RecyclerView

我想每次都顯示FloatingActionButton右下角(同時滾動)。 但是當我將它與RecyclerView一起使用時,它不會顯示在RecyclerView上。 它顯示在RecyclerView下。 這是我的布局: 如何每次都顯示 FAB 右下角而不是RecyclerView下? ...

在 CoordinatorLayot 中翻譯后查看不可點擊

[英]View not clickable after translate in CoordinatorLayot

我在應用程序的右下角有一個包含我的 FAB 部分的 ConstraintLayout。 我使用布局而不僅僅是按鈕,因為我在 FAB 周圍有更多視圖(在下面的示例中省略了它們,實際布局更復雜)。 該布局有一個 CoordinatorLayout 作為主要父級。 我有兩個 FAB,一個靠近另一個,當我單 ...

工具欄不在協調器布局中滾動

[英]Toolbar not scrolling in Coordinator Layout

我有一個協調器布局,其中包含一個 ViewPager,后者又包含一個 RecyclerView。 我面臨的問題是,當我滾動我的 RecyclerView 時,工具欄沒有調整大小。 我看過很多帖子,但看不出我做錯了什么。 很感謝任何形式的幫助。 我在 MainActivity 或其他任何操作工具欄的地 ...

Android 材質工具欄出現在片段后面

[英]Android Material Toolbar appearing behind fragment

我有一個應用程序,我需要一個底部欄作為我的主導航和工具欄的標題和設置圖標。 到目前為止,我所取得的成就是: 活動.xml 一切正常,除了工具欄出現在片段后面。 只有當我在<fragment> android:layout_height="match_parent"更改為android:l ...

如何在框架布局中使用協調器布局?

[英]How to use coordinator layout with frame layout?

我正在創建一個視圖,該視圖具有一個帶有浮動操作按鈕和自定義工具欄的導航抽屜。 它看起來像這樣: 問題是:我應該在框架布局中使用協調器布局,如下所示: 或協調器布局內的框架布局,如下所示: 它們似乎都工作得很好,但我想知道哪個更好,為什么? ...

協調器模式沒有推送到 NextViewController

[英]coordinator pattern is not pushing to the NextViewController

這是 AppDelegate.swift 實現/配置: 這是 MainCoordinator.swift 在 MainVC 內部,在收集視圖的 didselectItemAt IndexPath 方法中應該觸發到下一個 VC,但是,VC 沒有被觸發並顯示在屏幕上,但是“NsLog”打印消息..任何 ...

如何使用 CoordinatorLayout、EditText 和 ListView 實現此布局

[英]How can I achieve this layout with a CoordinatorLayout, EditText, and ListView

我正在從RelativeLayout切換到CoordinatorLayout ,這樣我就可以利用 FAB 並使用Snackbar移動。 我的問題是我能夠使用layout_below為布局中的項目提供層次結構和順序。 但是,當我使用 CoordinatorLayout 運行應用程序時,一切似乎 go ...

在協調器布局中折疊布局后保留圖像並設置最小高度

[英]Keep the image after collapse the layout in coordinator layout and set min height

我在collapseToolbarLayout中工作,在appBar的設計中,它應該是appBar底部錨點中的圖像(大多數設計放置了一個floatingActionButton .. 在這里我使用的是圖像)我需要在向上滾動時部分折疊,但不完全。 所以我得到了一些解決方案來從這個自定義高度為 appB ...

以編程方式滾動到 CoordinatorLayout 中的特定視圖,或粘性行為

[英]Programmatically scrolling to specific view in CoordinatorLayout, or sticky behaviour

我有一個 CoordinatorLayout,我需要以編程方式垂直滾動以將特定視圖固定在頂部作為粘性視圖。 粘性通過在我想要粘性的視圖上設置一個帶有app:layout_scrollFlags="scroll|snap" 。 CoordinatorLayout 的編程滾動被證明是有問題的。 C ...

在 CoordinatorLayout 內觸發 AppBar 回到其正常的 position

[英]Trigger AppBar back to its normal position inside CoordinatorLayout

我有下一個布局: 當用戶在列表中向下滾動時,這將隱藏應用欄,並在用戶向上滾動時顯示它。 我的問題是,在NestedScrollView的末尾我有一個“返回頂部”按鈕,單擊該按鈕將觸發 scrollView 向上滾動: scrollView.smoothScrollTo(0, 0); 問題是 app ...

Android Tabs和CoordinatorLayout,需要添加一行textViews

[英]Android Tabs and CoordinatorLayout, need to add a row of textViews

Android Studio 3.5.1。 使用選項卡式活動模板。 我真的不明白 CoordinatorLayout 的東西。 這很好用。 在每個選項卡上使用帶有 ListView 的選項卡等。 但是,在屏幕底部,我想添加一行包含不同狀態信息的 TextView。 (例如,自開始以來的時間、計 ...

WebView 在帶有 CollapsibleToolBarLayout 的 NestedScrollView 中不滾動

[英]WebView doesn't scroll in NestedScrollView with CollapsibleToolBarLayout

我目前有這樣的布局設置: 雖然這大部分工作正常,但當我想確保其內容填充視口時,webview 的滾動存在問題。 如果我將android:fillViewport="true"屬性添加到 NestedScrollView ,則視口會正確填充並且折疊工具欄仍然折疊,但 webview 本身無法再滾動。 ...

協調器布局未顯示在預覽上

[英]Coordinator layout is not displaying on preview

我有一個協調器布局,我想在其中顯示帶有nestedScrollView的底部工作表。 但是我的協調器布局無法正常工作,因為它沒有顯示任何預覽。 這是預覽 xml文件: gradle文件依賴性: ...

如何在搜索欄啟動時隱藏它

[英]How to hide the searchbar as it starts

我有一個標題和圖標的頂部欄和一個搜索欄。 當我向上滾動隱藏它和它的確定。 但是我希望在活動開始時隱藏搜索欄,並在首先向下滾動時顯示。 (與ios whatsapp應用程序一樣,默認為隱藏) 有沒有任何scrolllflags。 謝謝你的幫助。 對不起我糟糕的英語。 ...

Android @ string / appbar_scrolling_view_behavior被標記為未解決的參考

[英]Android @string/appbar_scrolling_view_behavior is marked as unresolved reference

我正在使用androidx依賴項,一切工作正常。 但是,lint假定@ string / appbar_scrolling_view_behavior是未解決的引用。 見下圖: 代碼本身可以正常工作,沒有問題。 我只是想擺脫棉絨/檢查,以使錯誤消失。 似乎很奇怪,我已經嘗試過 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM