Codota Logo
Miui10Calendar
Code IndexAdd Codota to your IDE (free)

How to use
Miui10Calendar
in
com.necer.calendar

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: yannecer/NCalendar

  @Override
  public void onClick(View v) {
    if (miui10Calendar.getState() == Attrs.MONTH) {
      miui10Calendar.toWeek();
    } else {
      miui10Calendar.toMonth();
    }
  }
});
origin: yannecer/NCalendar

  public void aaa(View view) {
    miui10Calendar.jumpDate("2018-10-12");
   //  miui10Calendar.setVisibility(View.VISIBLE);
  }
}
origin: yannecer/NCalendar

miui10Calendar.setDateInterval("1901-01-01","2099-12-30");
InnerPainter innerPainter = (InnerPainter) miui10Calendar.getCalendarPainter();
innerPainter.setPointList(pointList);
miui10Calendar.setOnCalendarChangedListener(new OnCalendarChangedListener() {
  @Override
  public void onCalendarDateChanged(NDate date,boolean isClick) {
miui10Calendar.setOnClickDisableDateListener(new OnClickDisableDateListener() {
  @Override
  public void onClickDisableDate(NDate nDate) {
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 void onCreatee() {
  miui10Calendar = findViewById(R.id.miui10Calendar);
  customPainter = new CustomPainter(this);
  miui10Calendar.setCalendarPainter(customPainter);
}
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.calendarMiui10Calendar

Javadoc

Created by necer on 2018/11/12.

Most used methods

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Kernel (java.awt.image)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now