Я хочу отобразить список в кардвале.cardview не обертывает содержимое внутри swipeview
Это код, который я использовал:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar" />
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/toolbar"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingTop="20dp">
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/list_layout_with_fab_list_view_card"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
card_view:cardCornerRadius="4dp">
<ListView
android:id="@+id/list_layout_with_fab_list_view"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:divider="@null"
android:fastScrollEnabled="true"
android:listSelector="@android:color/transparent"
android:outlineProvider="none" />
</android.support.v7.widget.CardView>
</android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>
Если я удалить SwipeView CardView оборачивает содержание. но мне нужно как swipeview, так и CardView.
Есть ли что-нибудь, что я сделал неправильно ??
Thanks Man, The woked for me. – Vignesh
@ Vignesh вы можете проголосовать за мой ответ или отметить отметку, потому что я новичок в stackoverflow, который поможет мне улучшить мои навыки. ! и вы приветствуете. –