本文整理匯總了Java中com.github.amlcurran.showcaseview.ShowcaseView.hideButton方法的典型用法代碼示例。如果您正苦於以下問題:Java ShowcaseView.hideButton方法的具體用法?Java ShowcaseView.hideButton怎麽用?Java ShowcaseView.hideButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.github.amlcurran.showcaseview.ShowcaseView
的用法示例。
在下文中一共展示了ShowcaseView.hideButton方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: firstRunCheck
import com.github.amlcurran.showcaseview.ShowcaseView; //導入方法依賴的package包/類
private void firstRunCheck() {
boolean isFirstRun = sharedPreferences.getBoolean("isFirstRun", true);
if(isFirstRun) {
ShowcaseView showcaseView = new ShowcaseView.Builder(this)
.setTarget(new ViewTarget(fab))
.setContentTitle("Add!")
.setContentText("Add new text clips here - they will be automatically synchronized with Android Wear device.")
.hideOnTouchOutside()
.setStyle(R.style.CustomShowcaseTheme)
.singleShot(234342)
.build();
showcaseView.hideButton();
showcaseView.show();
createStory("Sample note", MainActivity.this.getResources().getString(R.string.samuel_speech));
readStories();
sharedPreferences.edit().putBoolean("isFirstRun", false).apply();
}
}
示例2: initializeShowcaseView
import com.github.amlcurran.showcaseview.ShowcaseView; //導入方法依賴的package包/類
private ShowcaseView initializeShowcaseView() {
ShowcaseView showcaseView = new ShowcaseView.Builder(this,true)
.setTarget(new ViewTarget(newNudgeButton, this))
.setContentTitle(R.string.title_activity_message_form)
.setContentText(R.string.new_nudge_instruction_text)
.singleShot(newNudgeButton)
.hideOnTouchOutside()
.build();
showcaseView.hideButton();
showcaseView.setStyle(ShowcaseViewDark);
return showcaseView;
}
示例3: showPostShowcase
import com.github.amlcurran.showcaseview.ShowcaseView; //導入方法依賴的package包/類
private void showPostShowcase() {
if (isAttached()) {
ShowcaseView showcaseView = new ShowcaseView.Builder(getActivity(), true).setTarget(new ViewTarget(mFabButton)).setContentText(getResources().getString(R.string.post_tutorial_message)).setContentTitle("Post query").hideOnTouchOutside().setInnerRadius(80).setOuterRadius(100).setStyle(R.style.CustomShowcaseTheme).build();
SharedPreferenceHelper.set(R.string.pref_post_tutorial_played, true);
showcaseView.hideButton();
}
}