【发布时间】:2023-11-27 10:48:02
【问题描述】:
我在我的 android 应用程序中使用 showCaseView legacy(具有手部动画)。但是,手势似乎并没有开始“相对”于视图。相反,它似乎是绝对的屏幕。这是我正在使用的以下内容:
final ShowcaseView sv;
ShowcaseView.ConfigOptions co = new ShowcaseView.ConfigOptions();
co.hideOnClickOutside = false;
co.block=true;
sv = ShowcaseView.insertShowcaseView(R.id.pen, this," R.string.showcase_title"," R.string.showcase_message", co);
View v=(View)findViewById(R.id.pen);
sv.animateGesture(0, 0, 0, -500, false);
这是我的模拟器的顶部,动画从这里开始: 这会在屏幕的左上角显示一只手。 (我的猜测是视图的位置被返回 0。
有什么问题?
【问题讨论】:
标签: android android-layout android-activity android-view