【发布时间】:2014-12-10 09:19:41
【问题描述】:
我想创建一个滑动来刷新布局,但是这个异常被提出了。 异常详细信息记录在 Window > Show View > Error Log 找不到以下类:- android.support.v4.widget.SwipeRefreshLayout(修复构建路径,编辑 XML,创建类)
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:text="swipe"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:gravity="center"/>
</ScrollView>
</android.support.v4.widget.SwipeRefreshLayout>
【问题讨论】:
标签: android android-layout android-support-library swiperefreshlayout