Table is asking for a View object

48 views
Skip to first unread message

Ap Reinders

unread,
Nov 12, 2014, 6:56:49 AM11/12/14
to tablelay...@googlegroups.com
Hi there,
Dissatisfied with the way libgdx handled tables I gave a shot to table-layout. Only when I try to add a Label of a Button or something else the table constructor is asking me for a View-object, while Libgdx's buttons and Labels are different from that.
I downloaded your project from github and packed all into a jar. Then I added this jar to android libs and added it to the build path. The import looks like this : import com.esotericsoftware.tablelayout.android.Table;


However, in your example code I see you just adding the gdx objects. Definitely I am missing something, hope you can help me out...thanks in advance!
Ap

Nate

unread,
Nov 12, 2014, 12:16:57 PM11/12/14
to tablelay...@googlegroups.com
TableLayout is for use with Swing, Android, or TWL. If you are using libgdx then TableLayout already exists in libgdx. Use:
com.badlogic.gdx.scenes.scene2d.ui.Table

Cheers,
-Nate



--
--
You received this message because you are subscribed to the "tablelayout" group:
http://groups.google.com/group/tablelayout-users

---
You received this message because you are subscribed to the Google Groups "tablelayout-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tablelayout-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ap

unread,
Nov 14, 2014, 3:06:12 PM11/14/14
to tablelay...@googlegroups.com
Now I understand ! I then just deal with what libgdx offers me. Thanks for the quick reply!
Ap

You received this message because you are subscribed to a topic in the Google Groups "tablelayout-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tablelayout-users/GXxKPruaIgw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tablelayout-us...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages