2016-06-15 3 views
0

을 인식 파일이 없습니다 .axml하지만 .axml에서이 같은 좀 도와 recognized.Can되지 않습니다. RecyclerView 용 누 겟 패키지를 다운로드했습니다. cs 부분에서는 recyclerview를 감지하지만 .axml 부분에서는 감지하지 않습니다. 도와주세요. 있는 LinearLayout이나 RelativeLayout의 내부에 직접 지원 라이브러리 위젯을 사용하는 경우RecyclerView는 내가 안드로이드 개발을위한 비주얼 스튜디오에서 RecyclerView를 사용하는 것을 시도하고있다

비주얼 스튜디오 .axml 편집기 내 경험에

Please find the error

답변

0

, 이러한 경고가 표시됩니다. 그러나 일반적으로 코드를 작성하고 실행하는 데 영향을주지는 않습니다. ViewSwitcher의 내부 RecyclerView하지 않는 동안 다음 코드에서

는 SwipeRefreshLayout, 당신은 점점 같은 경고가 있습니다. RecyclerView가있는 LinearLayout에 위로 이동 된 경우, 동일한 경고를 보여줄 것입니다하지만 코드는 여전히 제대로 컴파일 것입니다.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@color/very_light_gray"> 
<android.support.v4.widget.SwipeRefreshLayout 
    android:id="@+id/swipeRefreshLayout" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="@color/middle_gray"> 
    <ViewSwitcher 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:id="@+id/switcher" 
     android:background="@color/middle_gray"> 
     <android.support.v7.widget.RecyclerView 
      android:id="@+id/paperworkRecyclerView" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" /> 
     <TextView 
      android:id="@+id/text_empty" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:text="No Load Offers Available" 
      android:background="@color/middle_gray" 
      android:gravity="center" /> 
    </ViewSwitcher> 
</android.support.v4.widget.SwipeRefreshLayout> 

당신이 문제의 건물을 가진 또는 코드를 실행하는 경우, 당신은 RecyclerView 지원 패키지가 의존하는 Support.v4 패키지의 일치 버전이 및 오류에 대한 자세한 정보를 제공해야합니다 당신은 빌드/실행에 도착.

관련 문제