i need layout have done every thing first gridview having 1 item need align center can,t like
i need item 1 center
here code
<gridview android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/gridview_desc" android:layout_margin="20dp" android:gravity="center" android:horizontalspacing="0dp" android:numcolumns="auto_fit" android:stretchmode="columnwidth" android:verticalspacing="0dp" android:minwidth="180dp" android:listselector="#00000000" > </gridview>
any 1 please help.....
use listview instead, , create item layout relativelayout , put linearlayout inside centered. , in code need calculate real positions of every item put , can set position tag, , set onclicklistener handle click event. may want remove listselector well.
Comments
Post a Comment