i'm trying make calendar activity, uses grid view display days in month. needs display 7 elements per row correspond 7 days of week. however, when try implement it, doesn't stretch elements across entire width of screens, there small gap @ right end of screen seen in picture. calendar picture
this xml code use grid view:
<gridview android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/grid_view" android:numcolumns="7" android:stretchmode="columnwidth"> </gridview>
i'm using genymotion emulator haven't tested on real device.
please, check paddingright
property of gridview
parent.
Comments
Post a Comment