gpt4 book ai didi

android - 错误 : Error parsing xml: Unbound Prefix when using StaggeredGridView

转载 作者:行者123 更新时间:2023-11-29 21:12:33 26 4
gpt4 key购买 nike

我正在尝试实现 etsy Straggred GridView 但不幸的是我可以让我的布局工作。这是 xml

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bgg"
android:orientation="vertical">

<com.etsy.android.grid.StaggeredGridView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/gvgrigview"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clipChildren="true"
android:cacheColorHint="@android:color/transparent"
android:background="@android:color/transparent"
android:fastScrollEnabled="true"
app:item_margin="2dp"
app:column_count="@integer/grid_column_count">
</com.etsy.android.grid.StaggeredGridView>



</LinearLayout>

最佳答案

在您的 xml 的根布局中,您必须添加:xmlns:staggered="http://schemas.android.com/apk/res-auto"

关于android - 错误 : Error parsing xml: Unbound Prefix when using StaggeredGridView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22358216/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com