Gridview fill from bottom

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Gridview fill from bottom

Postby Merdica » Fri Aug 23, 2013 10:32 am

Hello,

I have a GridView which I fill with an List of Buttons. The Grid should have max. 9 elements.
The Grid is filled from top left to bottom right. But I want to invert order.
My first grid element should be on the bottom right.

Has anyone any idea or workaround?
Merdica
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Jun 06, 2011 9:40 pm

Top

Re: Gridview fill from bottom

Postby Merdica » Tue Aug 27, 2013 11:35 am

I've found the attribute "android:stackFromButton". Then the gridview is filled from right bottom and right-adjusted. Unfortunately I need it left-adjusted.

Any ideas?
Merdica
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Jun 06, 2011 9:40 pm

Re: Gridview fill from bottom

Postby iJiKe » Fri Aug 30, 2013 6:52 pm

i have a same question
iJiKe
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Aug 30, 2013 6:40 pm

Re: Gridview fill from bottom

Postby zhaoxin11232 » Sun Sep 01, 2013 5:40 am

hehe!I have a good idea.you can set the attr of some buttons is invisible so as to occupy the left position.which will looks like that your button is be on the bottom right.
zhaoxin11232
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Sep 01, 2013 5:29 am

Re: Gridview fill from bottom

Postby chicksen22 » Mon Sep 02, 2013 9:58 am

Thanks for that important information, its really helpful.
chicksen22
Freshman
Freshman
 
Posts: 5
Joined: Mon Sep 02, 2013 9:54 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests