代码拉取完成,页面将自动刷新
具体用法与Android中一致。
参考其他CollapsingToolbarLayout教程
<com.ryan.ohos.extension.nested.component.CollapsingToolbarLayout
ohos:id="$+id:toolBarLayout"
ohos:height="match_parent"
ohos:width="match_parent"
ohos:toolbarId="$+id:toolbar"
ohos:layout_scrollFlags="scroll|exitUntilCollapsed">
<Image
ohos:height="match_parent"
ohos:width="match_parent"
ohos:image_src="$media:ohos"
ohos:scale_mode="clip_center"
ohos:layout_collapseMode="parallax"/>
<com.ryan.ohos.extension.widget.toolbar.Toolbar
ohos:id="$+id:toolbar"
ohos:height="$float:toolbarHeight"
ohos:width="match_parent"
ohos:title="$string:mainability_description"
ohos:gravity="center"
ohos:hideNavigationIcon="true"
ohos:layout_collapseMode="pin"/>
</com.ryan.ohos.extension.nested.component.CollapsingToolbarLayout>
Toolbar的默认值可以查看src\main\resources\base\element\collapsing_toolbar.json
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。