Is there a way to arrange buttons in circular pattern inside table? - libgdx

I have 8 different buttons, I want to arrange them in circular pattern inside table in scene 2D but I don't find any method to do so, All I can do is to arrange them in rows and columns, But that doesn't make it look ciruclar.

In the libgdx-utils package there is a class called CircularGroup which might be what you're looking for
https://github.com/libgdx/libgdx/wiki/libgdx-utils

Related

Having Issues with getting 1 out of 2 legends splitting into two columns when they are both formatted the same? arcmap 10.4

Although I have been able to split one of the legends into two columns on my map the other one is proving problematic in doing so. I cannot see any differences in the properties of each legend in terms of the item column customizing.
First of all, convert the legend to graphics (by right clicking the image and selecting convert to graphics). Follow this up by ungrouping the image into different elements. You can then just move the items across into a second column manually.

benefits of "class" vs "id" tags for a single use html element

I'm doing a code academy course and they ask me to use left and right column classes as opposed to id's. I'm not sure why...
It seems to me that I'm only going to have one Div that is left column, and one Div that is right column... so why would I use a class instead of an ID for this?
They probably want you to refer to the element in order to move it somehow to left. It is better to use a class because it is possible that at some point you'll want to move another element to left. If you use id instead of class there may be need to repeat the same CSS rule for two different elements (different IDs). Code repetition is considered a bad practice and should be avoided, if possible at design level (no need to rewrite anything later), hence the suggestion to use class instead of id.
IDs always perform well because they are unique per page, but somehow Code Academy could have the same ID. They might also want to avoid using IDs because of the dynamic application and structure, so we cannot predict how their skeleton is. I think it is as per their application logic.

how to make a form designer

The Problem in Hand:
I want to make a form designer where user can drag and drop fields of different type and design the layout too, some what similar to wufoo form builder but here the layout is limited to single column whereas I want to make something where user can make the layout as they want.
I understand how to do in single column view, but could not understand how to achieve multiple column layout eg: row 1 there could be 3 elements, row 2 one element stretched to full length, row 3 there could be just 2 elements etc.
What I tried:
I have tried with jquery UI sortable to make a single column layout with using div where new elements can be dragged and repositioned.
Any suggestion on how to proceed further will be helpful
I have tried searching StackOverFlow and google but could not find any link on a similar topic. If anyone could point me to the same, it will be also helpful.
When you reorder elements on wufoo form builder, you can only drag'n'drop up or down. Remove that restriction and as soon as one element is dragged across a certain threshold, it "belongs" to the next column. If the "old" column was the first or last one and the line that the element was moved over was to the "outside" of the form, add a new column there, until the maximal number of columns is reached.
If the used drags the last element of a column into another column, remove the now empty column on element-drop.
You could also remove the dynamic adding/removing of columns and juist have a button ("remove column" & "add column") to do it by code.
An example for the dropping in another column can be found here: http://jqueryui.com/sortable/#connect-lists
Hope this helped!
Edit:
http://jqueryui.com/sortable/#portlets and http://jqueryui.com/sortable/#empty-lists also have elements that you could look into. Good luck! Sounds like a nice project. Can we see any progress or beta?

GridView- binding to groups of different ViewModels? (Combining Images and Text articles)

I'm tying to figure out how to use the GridView with different classes for groups. In the GridApp template everything inherits from SampleDataCommon, do you always have to inherit from a common class in the GridView? The documentation seems.. lacking on this mater.
UPDATE:
Specifically the problem I'm trying to solve is to have a GridView with both image tiles and text news articles.
You can bind to any class type. I would suggest that they implement a common interface or class. If they cannot, then grouping them just does not make sense. You can display the items within the group by using a DataTemplateSelector. Here is a very simple example and a more complex sample

Combining a multiple strings and arrays to one dataProvider for a spark List

I'm struggling with this one, what I need to do is combine 5 arrays with 5 individual strings (which have come from a JSON webservice) into one single list item in FlashBuilder Burrito.
The web service returns data as follows
Title(String)
Array[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]]
Title_1(String)
Array_1[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]]
Title_2(String)
Array_2[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]]
Title_3(String)
Array_3[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]]
And so on. I've pulled these out successfully and each one traces in the debugger, although as I need them all in the same list I'm struggling to establish them as a dataprovider together.
If I push the strings and arrays together it is impossible to read properly, as the main Titles are at a different level to any descriptors for the products which are in the arrays. So I'm sort of stuck!!
Any advice on how best to approach this?
Cheers
Really depends on the design of the application on how to best approach this. If the list is going to be sortable on the properties (Name, Size, Price etc) then instead of labels you might want to push the "type" into the array and have a way of showing this in the item renderer. If the items are supposed to be separated by type, but also sortable you might want to look at using an accordion type control and having separate lists.
Anyhow what you want to do is concatenate the arrays into a single array and push the "Title" into the object as a property. This way you can at least sort on the title so the items appear in the correct order in the single list.
Otherwise you could just create a custom control with 5 different lists stacked on top of each other (With no scrollbars) and have the custom control handle scrolling of all 5 lists with a single scroll bar.