Thursday, June 13, 2013

[android help] Extra space when orientation changes


Extra space when orientation changes


android - Extra space when orientation changes - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I have a gridview which works fine ...but when i change the orientation i get extra space at the starting ..example if below is my app in portrait mode



X X X

X X X

X X X


when orientation change below is landscape mode



X X X X
X X X X
X X X X


can you see the space at the beginning ? below is my grid view



android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:verticalSpacing="8dip"
android:horizontalSpacing="4dip"
android:numColumns="auto_fit"
android:columnWidth="145dip"
android:stretchMode="columnWidth"
android:background="#ffffff"
android:paddingTop="6dip"
android:paddingLeft="6dip"
android:paddingRight="2dip"
android:paddingBottom="6dip"
android:drawSelectorOnTop="true"
android:scrollingCache="true"
android:textFilterEnabled="true"
android:visibility="visible" />


















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default






.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...