當前位置: 首頁>>代碼示例>>Java>>正文


Java ShowcaseView.hideButton方法代碼示例

本文整理匯總了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();
    }
}
 
開發者ID:tajchert,項目名稱:SpritzerWear,代碼行數:21,代碼來源:MainActivity.java

示例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;
}
 
開發者ID:kwhite17,項目名稱:Nudge,代碼行數:13,代碼來源:ActiveNudgesActivity.java

示例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();

        }

    }
 
開發者ID:yeloapp,項目名稱:yelo-android,代碼行數:13,代碼來源:HomeScreenFragment.java


注:本文中的com.github.amlcurran.showcaseview.ShowcaseView.hideButton方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。