如何在网格RecycleView中获取"向上滚动以加载更多"的不确定循环指示符?
该模式在那里描述:http://www.google.com/design/spec/components/progress-activity.html#progress-activity-behavior in"两阶段加载"和"示例2:向上滚动以加载更多"示例视频.
我正在尝试使用新的RecyclerView来实现这一点,但是我找不到一种"不太苛刻"的方式来做到这一点,首先是因为没有办法在网格中添加覆盖整行的页脚.有什么建议?
我无法找到如何让一个变量(或不变)的类型String,比如typeof(variable),与科特林语言.怎么做到这一点?
我想在CoordinatorLayout中添加一个WebView,在AppBarLayout中使用CollapsingToolbarLayout.问题是WebView的高度会缩小,并且不会填充工具栏下方的空间,使其无法使用.我还尝试使用WebView作为NestedScrollView的子代:最初它不起作用(它缩小我的WebView的高度),但滚动我缩小的WebView使它填充视口.
这是我使用的布局:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="256dp"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:expandedTitleMarginEnd="64dp"
app:expandedTitleMarginStart="48dp"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<ImageView
android:id="@+id/backdrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<WebView
android:id="@+id/article"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
Run Code Online (Sandbox Code Playgroud) 我想用Qt4库来实现这种效果:一个按钮组,它附加在它旁边的每个按钮。在Gtk3中,我仅将“链接”类应用于容器小部件。如何在Qt4中完成?

我有一个数据类,MyThing1其中有一个 ID。数据类 MyThing1(val id: String)\n我有另一个数据类,我们不关心它的内容,但让 \xe2\x80\x99s 调用它MyThing2\n我有一个返回列表的函数MyThing1
fun myEmitter1(): Flow<List<MyThing1>>\nRun Code Online (Sandbox Code Playgroud)\n我有另一个 Flow,它接受输入 ID 并返回对象流,所以
\nfun myEmitter2(id: String): Flow<MyThing2>\nRun Code Online (Sandbox Code Playgroud)\nMyThing1对于从流中收到的每个消息,我想将其与MyThing2发出的最新消息结合起来myEmitter2,并返回Flow<List<CombinedThing>>给定的CombinedThingis
data class CombinedThing(val myThing1: MyThing1, val myThing2: MyThing2) .\nRun Code Online (Sandbox Code Playgroud)\n每次 myThing1 发生变化时,它都会观察myEmitter2(id)并每次myThing2发出时,都会发出CombinedThing.
在图表中,我想要这样的东西:
\n[mt11,mt12]--------------------------------------------------------------------------\nobserve for id 1 ----mt211-----------------------------------------------------------\n--[observe for id 2]------------------------mt212-------------------------------------\n\n---------------------[CT(mt11,mt211(1))]----[CT(mt11,mt211(1)),CT(mt2,mt212)]---------\nRun Code Online (Sandbox Code Playgroud)\n