congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Miui10Calendar.getOffset
Code IndexAdd Tabnine to your IDE (free)

How to use
getOffset
method
in
com.necer.calendar.Miui10Calendar

Best Java code snippets using com.necer.calendar.Miui10Calendar.getOffset (Showing top 4 results out of 315)

origin: yannecer/NCalendar

@Override
protected float getGestureChildDownOffset(int dy) {
  float maxOffset = monthHeight - childLayout.getY();
  return getOffset(Math.abs(dy), maxOffset);
}
origin: yannecer/NCalendar

@Override
protected float getGestureChildUpOffset(int dy) {
  float maxOffset = childLayout.getY() - weekHeight;
  return getOffset(dy, maxOffset);
}
origin: yannecer/NCalendar

/**
 * @param dy 当前滑动的距离 dy>0向上滑动,dy<0向下滑动
 * @return
 */
@Override
protected float getGestureMonthDownOffset(int dy) {
  float maxOffset = Math.abs(monthCalendar.getY());
  float monthCalendarOffset = monthCalendar.getMonthCalendarOffset();
  float childLayoutOffset = childLayout.getChildLayoutOffset();
  float offset = ((monthCalendarOffset * dy) / childLayoutOffset);
  return getOffset(Math.abs(offset), maxOffset);
}
origin: yannecer/NCalendar

/**
 * @param dy 当前滑动的距离 dy>0向上滑动,dy<0向下滑动
 * @return
 */
@Override
protected float getGestureMonthUpOffset(int dy) {
  float maxOffset = monthCalendar.getMonthCalendarOffset() - Math.abs(monthCalendar.getY());
  float monthCalendarOffset = monthCalendar.getMonthCalendarOffset();
  float childLayoutOffset = childLayout.getChildLayoutOffset();
  float offset = ((monthCalendarOffset * dy) / childLayoutOffset);
  return getOffset(offset, maxOffset);
}
com.necer.calendarMiui10CalendargetOffset

Popular methods of Miui10Calendar

  • getCalendarPainter
  • getState
  • jumpDate
  • setCalendarPainter
  • setDateInterval
  • setOnCalendarChangedListener
  • setOnClickDisableDateListener
  • toMonth
  • toWeek

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JPanel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot 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