android - gridview overlap horizontally in pre lollipop device -
i used hacky gridview because need gridview wraps content in scrollview used custom gridview this site . in prelollipop version ok in lollipop there no border content of grid view. set vertical spacing below.
<bazit.utils.wrapcontentheightgridview android:id="@+id/four_items_gridview" android:layout_width="match_parent" android:layout_height="wrap_content" android:numcolumns="3" android:gravity="center" android:stretchmode="columnwidth" android:verticalspacing="@dimen/home_category_items" android:horizontalspacing="@dimen/home_category_items"> </bazit.utils.wrapcontentheightgridview>
and using cardview image in after cards overlap in pre-lollipop version device. , cardviews shift right little.
i used margin cardview not working.
i find answer. container view set rtl(right left). change ltr , fixed problem.
Comments
Post a Comment