语言

Menu
Sites
Language
How to make a panel from several resource files?

Hi there.

There are 3 panels panel.xml panel2.xml panel3.xml in my project. I'd like to combine them to one panel. But I can't do this in UI Native Builder.

So can I create a panel which be constructed from a several .xml files?

Something like that...

class MyPanel : public Panel {
   MyPanel() {
      Construct(L"panel", L"panel2", L"panel3");
   } ...

 

Thanks.

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

1 回复
dhirku
You can create multiple panels in UI builder, Then in code using " result Panel ::Construct (const Tizen::Base::String &resourceId) " method you create an object of one panel. Use this method on all the Panel*.xml to get object of all the Panels individually. Once you have all the objects you can add these to the Form using "Form::AddControl(....)" method.