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.

overlapping cardviews

i used margin cardview not working.

i find answer. container view set rtl(right left). change ltr , fixed problem.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -