Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using AQGridView for different sub-layouts of screen

 
Femi Byte
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking to use AQGridView to layout a screen that has 3 different sub-layouts. The top part of the screen should be laid out in a 2x5 grid, with each cell being occupied by a different graphic. This I have successfully accomplished. The middle portion of the screen should be a single image that occupies the entire width of the screen, spanning across columns and of height 2 cells.

The bottom portion of the screen should be another grid layout with dimensions that may vary, but should fill up the remaining space. My question is, what's the best way to achieve this? Should I use 3 separate AQGridViews, one for each section, since the grid layouts are different, or can I fit the layout all in the same AQGridView? I have tried the latter approach, but I am having great difficulty in getting the image in the middle portion of the screen to properly span across cells. It is skewed to one side.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I think it would be saner to break it apart into multiple views or multiple GridViews. Or wrapper GridViews. You could have an outer GridView with 1 row three columns. Then in each column have a GridView, the left being 2x5, the middle just a single view, sounds like it doesn't have to be a gridview, and the right however you need it.

Hope that helps.

Always try to go the easy route. If something is becoming difficult. stop and think there has got to be a better way and then go find it.

Mark
 
Femi Byte
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Spritzler wrote:Personally, I think it would be saner to break it apart into multiple views or multiple GridViews. Or wrapper GridViews. You could have an outer GridView with 1 row three columns. Then in each column have a GridView, the left being 2x5, the middle just a single view, sounds like it doesn't have to be a gridview, and the right however you need it.

Hope that helps.

Always try to go the easy route. If something is becoming difficult. stop and think there has got to be a better way and then go find it.

Mark

Thanks, my sentiments exactly. I was thinking the same thing
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic