nickbug / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

A Tab Widget can only be obtained by TabHost layout! #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Well, this sound reasonable.
Unfortunately it isn't, after creating a TabHost layout and trying to  drag a 
Tab Widget into it afterwards the above mentioned message appeared.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
A Tab Widget in a TabHost layout ;)

What version of the product are you using? On what operating system?
latest, OSX

Please provide any additional information below.

Original issue reported on code.google.com by CoboltFo...@googlemail.com on 26 Dec 2010 at 5:58

GoogleCodeExporter commented 9 years ago
Same issue. Drag on a TabHost layout, then when dragging on a Tab Widget the 
message appears. This is the only thing I needed DroidDraw for, so bump this 
priority up ;)

Thanks!

Original comment by DanWadli...@gmail.com on 27 Dec 2010 at 7:09

GoogleCodeExporter commented 9 years ago
This is working as intended, see:

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

The TabHost must be the root (top level) layout for the entire layout for 
tabbing to work.  Then it should contain a LinearLayout, then the TabWidget.

However, the error message isn't as clear as it could be, and probably, I 
should remove TabHost from the list of addable layouts, since its invalid to 
add a TabHost as anything other than the root layout.

Original comment by brendan....@gmail.com on 3 Jan 2011 at 10:30