Android 带有羊皮纸库错误的水平ListView
我只是想用library添加一个水平列表视图,但它对我不起作用 我按照所有说明在Eclipse中将羊皮纸添加为Android库,这一步没问题。问题是,当我试图在xml文件中添加水平listView时,Eclipse显示错误:“错误:不允许字符串类型(在“方向”处,值为“水平”)”Android 带有羊皮纸库错误的水平ListView,android,listview,android-listview,horizontallistview,Android,Listview,Android Listview,Horizontallistview,我只是想用library添加一个水平列表视图,但它对我不起作用 我按照所有说明在Eclipse中将羊皮纸添加为Android库,这一步没问题。问题是,当我试图在xml文件中添加水平listView时,Eclipse显示错误:“错误:不允许字符串类型(在“方向”处,值为“水平”)” 你能帮忙吗 非常感谢文档中的xmlns是: xmlns:羊皮纸=”http://schemas.android.com/apk/res/“ 在您的代码中有一个: xmlns:羊皮纸=”http://schemas.
你能帮忙吗
非常感谢文档中的xmlns是:
xmlns:羊皮纸=”http://schemas.android.com/apk/res/“
在您的代码中有一个:
xmlns:羊皮纸=”http://schemas.android.com/apk/res/res-auto“
请检查文档xmlns is中的此项:
xmlns:羊皮纸=”http://schemas.android.com/apk/res/“
在您的代码中有一个:
xmlns:羊皮纸=”http://schemas.android.com/apk/res/res-auto“
请检查此项将以下内容添加到您的根标记中,
xmlns:羊皮纸=”http://schemas.android.com/apk/res-auto
此外,还可以简化LinearLayout.TextView 60 dp居中(垂直文本)
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:parchment="http://schemas.android.com/apk/res-auto">
<TextView
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="List App"
android:background="#ff5a5bff"
android:textColor="#fff"
android:textSize="25sp"
android:gravity="center_vertical" />
将以下内容添加到根标记中,
xmlns:羊皮纸=”http://schemas.android.com/apk/res-auto
此外,还可以简化LinearLayout.TextView 60 dp居中(垂直文本)
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:parchment="http://schemas.android.com/apk/res-auto">
<TextView
android:layout_width="wrap_content"
android:layout_height="60dp"
android:text="List App"
android:background="#ff5a5bff"
android:textColor="#fff"
android:textSize="25sp"
android:gravity="center_vertical" />
实际上“res auto”将自动使用当前软件包名称实际上“res auto”将自动使用当前软件包名称您知道RecyclerView bruh吗?您知道RecyclerView bruh吗?