Tabnine Logo
ShowcaseView.setButtonPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
setButtonPosition
method
in
com.github.amlcurran.showcaseview.ShowcaseView

Best Java code snippets using com.github.amlcurran.showcaseview.ShowcaseView.setButtonPosition (Showing top 6 results out of 315)

origin: DaxiaK/MyDiary

    .build();
sv.setButtonText(getString(R.string.oobe_next_button));
sv.setButtonPosition(leftParams);
origin: DaxiaK/MyDiary

switch (oobeCount) {
  case 0:
    sv.setButtonPosition(centerParams);
    sv.setShowcase(new CustomViewTarget(RecyclerView_topic, 4, 4), true);
    sv.setContentTitle(getString(R.string.oobe_main_topic_list_title));
    break;
  case 1:
    sv.setButtonPosition(leftParams);
    sv.setShowcase(new ViewTarget(EDT_main_topic_search), true);
    sv.setContentTitle(getString(R.string.oobe_main_search_title));
    break;
  case 2:
    sv.setButtonPosition(centerParams);
    sv.setShowcase(new ViewTarget(IV_main_setting), true);
    sv.setContentTitle(getString(R.string.oobe_main_adv_setting_title));
    break;
  case 3:
    sv.setButtonPosition(centerParams);
    sv.setTarget(Target.NONE);
    sv.setContentTitle(getString(R.string.oobe_main_mydiary_title));
origin: powerpoint45/Lucid-Browser

private void startShowcase(){
  Log.d("LL","startShowcase");
  activity.drawerLayout.openDrawer(activity.browserListView);
  showcase = new ShowcaseView.Builder(activity)
      .setContentTitle(activity.getResources().getString(R.string.step_browser_sidebar_title))
      .setContentText(activity.getResources().getString(R.string.step_browser_sidebar_summary))
      .setShowcaseEventListener(showcaseEventListener)
      .setOnClickListener(showcaseClick)
      .setStyle(R.style.CustomShowcaseTheme2)
      .build();
  showcase.setButtonPosition(getButtonLP());
  showcase.setOnClickListener(showcaseClick);
}
origin: brainysoon/cyberCar

  private void showcaseView() {

    RelativeLayout.LayoutParams lps = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    lps.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
    lps.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
    int margin = ((Number) (getResources().getDisplayMetrics().density * 12)).intValue();
    lps.setMargins(margin, margin, margin, margin);

    ViewTarget target = new ViewTarget(R.id.activity_main_boommenubutton_menu, this);
    ShowcaseView sv = new ShowcaseView.Builder(this)
        .withMaterialShowcase()
        .setTarget(target)
        .setContentTitle("主菜单")
        .setContentText("点击这个,然后可以看到主菜单.")
        .setStyle(R.style.CustomShowcaseTheme2)
        .setShowcaseEventListener(this)
//                .replaceEndButton(R.layout.view_custom_button)
        .build();
    sv.setButtonPosition(lps);
  }

origin: NightscoutFoundation/xDrip

params.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
myShowcase.setButtonPosition(params);
myShowcase.show();
origin: jamorham/xDrip-plus

params.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
myShowcase.setButtonPosition(params);
myShowcase.show();
com.github.amlcurran.showcaseviewShowcaseViewsetButtonPosition

Popular methods of ShowcaseView

  • isShowing
  • hide
  • setBackgroundColor
  • setBlocksTouches
  • setOnShowcaseEventListener
  • setShouldCentreText
  • setTag
  • show
  • hideButton
  • postDelayed
  • setButtonText
  • setContentText
  • setButtonText,
  • setContentText,
  • setContentTitle,
  • setOnClickListener,
  • setShowcase,
  • setTarget,
  • setVisibility

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now