开发者

im unable to move focus to different verticalfieldmanagers which are scrolling horizontally

开发者 https://www.devze.com 2023-02-22 15:05 出处:网络
im unable to move focus to different verticalfieldmanagers whi开发者_StackOverflowch are scrolling horizontally???

im unable to move focus to different verticalfieldmanagers whi开发者_StackOverflowch are scrolling horizontally???

can anyone help me on this issue with a piece of code?

Thanks.


Try putting all the VerticalFieldManagers in a HorizontalFieldManager and try scrolling it

HorizontalFieldManager hfm = new HorizontalFieldManager(HORIZONTAL_SCROLL)
{
   public void sublayout(int arg0,int arg1)
   {
      setExtent(width,height);
      // you can set the layouts over here
   }
};
VerticalFieldManager vfm1 = new VerticalFieldManager();
VerticalFieldManager vfm2 = new VerticalFieldManager();
//add some fields to the verticalFieldManagers
hfm.add(vfm1);
hfm.add(vfm2);
add(hfm);

Let me know if your problem has solved or not.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号