【发布时间】:2020-11-23 08:43:48
【问题描述】:
我在我的应用程序中使用案例视图。 有没有办法让文字变小? 而且我不需要dissmis。 我想通过单击它的圆圈来关闭它。 我该怎么办?
ShowcaseConfig config =new ShowcaseConfig();
config.setDelay(500);
MaterialShowcaseSequence sequence =new MaterialShowcaseSequence(AddSupportActivity.this, SHOWCASE_ID);
sequence.setConfig(config);
sequence.addSequenceItem(mEdtDevName,
"You can enter the identifier of each supporter here There is nothing wrong with not filling in this field", "GOT IT");
sequence.addSequenceItem(mEdtProName,
"Each supporter can have a number of projects in a specific time period.Note: A project has only one supporter at a given time period", "GOT IT");
sequence.start();
或使用此代码:
new MaterialShowcaseView.Builder(MainActivity.this)
.setDismissStyle(Typeface.DEFAULT)
.setTarget(itemDataBase)
.setContentText("از این قسمت شما میتوانید توسعه دهندگان،پروژه ها و پشتیبانان مورد نظر را اضافه کنید")
.setDelay(500) // optional but starting animations immediately in onCreate can make them choppy
.singleUse(SHOWCASE_ID) // provide a unique ID used to ensure it is only shown once
.show();
【问题讨论】:
标签: java android showcaseview