【发布时间】:2017-07-22 20:43:10
【问题描述】:
我在 Android Studio 上收到此错误。
渲染问题 注意:此项目包含 Java 编译错误,这可能导致自定义视图的渲染失败。首先修复编译问题。 找不到以下类:
<com.makeuprewardz.app.ui.view.BottomBar (Fix Build Path, Edit XML, Create Class)
提示:尝试构建项目。
这是我的 XML 文件
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fancy="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:background="@android:color/transparent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/fl_container"
android:layout_marginBottom="@dimen/bottombar_height"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<ImageView
android:layout_width="match_parent"
android:background="@drawable/actionbar_shadow_up"
android:layout_gravity="bottom"
android:layout_marginBottom="@dimen/bottombar_height"
android:layout_height="wrap_content"
tools:ignore="ContentDescription" />
<com.makeuprewardz.app.ui.view.BottomBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="@dimen/bottombar_height"
android:layout_gravity="bottom" />
【问题讨论】: