1
我目前在每个表单的顶部都有我的应用程序的Logo。由于需要大量空间,因此我希望它的大小可以缩小,用户滚动得越多,就像许多应用程序一样。Codename One:用滚动缩小图像
我的徽标目前只是一个容器,在布局中将徽标添加到NORTH。你们有没有人已经实现了类似的东西,并可以给我一个提示如何实现这一点?
在此先感谢。
我目前在每个表单的顶部都有我的应用程序的Logo。由于需要大量空间,因此我希望它的大小可以缩小,用户滚动得越多,就像许多应用程序一样。Codename One:用滚动缩小图像
我的徽标目前只是一个容器,在布局中将徽标添加到NORTH。你们有没有人已经实现了类似的东西,并可以给我一个提示如何实现这一点?
在此先感谢。
看看title animations的博客文章。这是帖子的相关代码:
Form hi = new Form("Shai's Social App", new BoxLayout(BoxLayout.Y_AXIS));
for(int iter = 0 ; iter < 100 ; iter++) {
hi.add(new Label("Social Data Goes here..."));
}
Toolbar tb = new Toolbar();
hi.setToolbar(tb);
ComponentAnimation cna = tb.createStyleAnimation("TitleAreaClean", 200);
ComponentAnimation title = tb.getTitleComponent().createStyleAnimation("TitleClean", 200);
hi.getAnimationManager().onTitleScrollAnimation(cna, title);
hi.show();