首页 > 解决方案 > 上滑面板 android 构建失败

问题描述

我正在尝试创建一个向上滑动的面板,我已经从 nuget 下载了 umano 向上滑动面板。这是我的xml

<?xml version="1.0" encoding="utf-8"?><!--suppress ALL -->
<com.sothree.slidinguppanel.SlidingUpPanelLayout
     xmlns:sothree="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="bottom"
    android:gravity="bottom"
    sothree:umanoPanelHeight="68dp"
    sothree:umanoShadowHeight="4dp"
    >
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="main"/>
</com.sothree.slidinguppanel.SlidingUpPanelLayout>

我正在输入严重性代码描述项目文件行抑制状态解析 XML 时出错:未绑定前缀我该如何解决这个问题?

标签: javaandroidxamarin

解决方案


您尚未将androidxml 命名空间添加到您的 SlidingUpPanelLayout。将此添加到您的 SlidingUpPanelLayout :

    xmlns:android="http://schemas.android.com/apk/res/android"

推荐阅读