Item Layout
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/top_panel"
android:background="@drawable/transback"
app:cardCornerRadius="10dp"
android:layout_marginBottom="1dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp">
<ImageView
android:id="@+id/categoryImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY" />
</android.support.v7.widget.CardView>
I want to set image size square like screen width = image height
this is my item which i use for recycler view
how it is possible..?