Export to GitHub

droiddraw - issue #190

A Tab Widget can only be obtained by TabHost layout!


Posted on Dec 26, 2010 by Massive Ox

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.

Comment #1

Posted on Dec 27, 2010 by Grumpy Giraffe

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!

Comment #2

Posted on Jan 3, 2011 by Quick Dog

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.

Status: WontFix

Labels:
Type-Defect Priority-Medium