Tabnine Logo
CoordinatorLayout$LayoutParams.getAnchorId
Code IndexAdd Tabnine to your IDE (free)

How to use
getAnchorId
method
in
android.support.design.widget.CoordinatorLayout$LayoutParams

Best Java code snippets using android.support.design.widget.CoordinatorLayout$LayoutParams.getAnchorId (Showing top 4 results out of 315)

origin: jbruchanov/AnUitor

@Override
protected HashMap<String, Object> fillValues(ViewGroup.LayoutParams lp, HashMap<String, Object> data, HashMap<String, Object> parentData) {
  super.fillValues(lp, data, parentData);
  if (lp instanceof AppBarLayout.LayoutParams) {
    AppBarLayout.LayoutParams alp = (AppBarLayout.LayoutParams) lp;
    data.put("LayoutParams_ScrollFlags", getTranslator().appBarLayoutScrollFlags(alp.getScrollFlags()));
    data.put("LayoutParams_ScrollInterpolator", alp.getScrollInterpolator() != null ? alp.getScrollInterpolator().getClass().getName() : "null");
  }
  if (lp instanceof CollapsingToolbarLayout.LayoutParams) {
    CollapsingToolbarLayout.LayoutParams clp = (CollapsingToolbarLayout.LayoutParams) lp;
    data.put("LayoutParams_CollapseMode", getTranslator().collapseMode(clp.getCollapseMode()));
    data.put("LayoutParams_ParallaxMultiplier", clp.getParallaxMultiplier());
  }
  if (lp instanceof CoordinatorLayout.LayoutParams) {
    CoordinatorLayout.LayoutParams clp = (CoordinatorLayout.LayoutParams) lp;
    data.put("LayoutParams_AnchorId", IdsHelper.getNameForId(clp.getAnchorId()));
    data.put("LayoutParams_Behavior", clp.getBehavior() != null ? clp.getBehavior().getClass().getName() : "null");
  }
  return data;
}
origin: yavski/fab-speed-dial

final CoordinatorLayout.LayoutParams lp =
    (CoordinatorLayout.LayoutParams) child.getLayoutParams();
if (lp.getAnchorId() != appBarLayout.getId()) {
origin: HemendraGangwar/IntentSharingAnim

final CoordinatorLayout.LayoutParams lp =
    (CoordinatorLayout.LayoutParams) child.getLayoutParams();
if (lp.getAnchorId() != appBarLayout.getId()) {
origin: gigabytedevelopers/FireFiles

private boolean updateFabVisibility(CoordinatorLayout parent,
                  AppBarLayout appBarLayout, FabSpeedDial child) {
  final CoordinatorLayout.LayoutParams lp =
      (CoordinatorLayout.LayoutParams) child.getLayoutParams();
  if (lp.getAnchorId() != appBarLayout.getId()) {
    // The anchor ID doesn't match the dependency, so we won't automatically
    // show/hide the FAB
    return false;
  }
  if (child.getUserSetVisibility() != VISIBLE) {
    // The view isn't set to be visible so skip changing its visibility
    return false;
  }
  if (mTmpRect == null) {
    mTmpRect = new Rect();
  }
  // First, let's get the visible rect of the dependency
  final Rect rect = mTmpRect;
  ViewGroupUtils.getDescendantRect(parent, appBarLayout, rect);
  if (rect.bottom <= appBarLayout.getMinimumHeightForVisibleOverlappingContent()) {
    // If the anchor's bottom is below the seam, we'll animate our FAB out
    child.hide();
  } else {
    // Else, we'll animate our FAB back in
    child.show();
  }
  return true;
}
android.support.design.widgetCoordinatorLayout$LayoutParamsgetAnchorId

Popular methods of CoordinatorLayout$LayoutParams

  • getBehavior
  • setBehavior
  • <init>
  • setMargins

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • CodeWhisperer alternatives
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