Tabnine Logo
DayItem.setBackground
Code IndexAdd Tabnine to your IDE (free)

How to use
setBackground
method
in
jsc.kit.component.monthview.DayItem

Best Java code snippets using jsc.kit.component.monthview.DayItem.setBackground (Showing top 2 results out of 315)

origin: JustinRoom/JSCKit

private void initMonthView(int year, int month){
  List<DayItem> dayItems = MonthUtils.getMonthDays(year, month);
  for (int i = 0; i < dayItems.size(); i++) {
    boolean enable = new Random().nextBoolean();
    DayItem item = dayItems.get(i);
    switch (item.getKey()){
      case -1://上个月的最后几天
      case 1://下个月的前几天
        item.setBackground(R.drawable.circle_gray_light_shape);
        break;
      case 0://本月的所有天数
        item.setBackground(R.drawable.circle_theme_light_shape);
        break;
    }
    item.setSubLabel(enable ? "可约" : "不可约");
    item.setSubLabelTextColor(enable ? Color.YELLOW : 0xFF666666);
  }
  monthView.setDays(dayItems);
}
origin: JustinRoom/JSCKit

public DayItem() {
  setBackground(-1);
  setLabelTextColor(0xFF333333);
  setLabelTextSize(14);
  setSubLabelTextColor(0xFF333333);
  setSubLabelTextSize(8);
}
jsc.kit.component.monthviewDayItemsetBackground

Popular methods of DayItem

  • setSubLabelTextColor
  • <init>
  • getBackground
  • getDate
  • getKey
  • getLabel
  • getLabelTextColor
  • getLabelTextSize
  • getSubLabel
  • getSubLabelTextColor
  • getSubLabelTextSize
  • setDate
  • getSubLabelTextSize,
  • setDate,
  • setKey,
  • setLabel,
  • setLabelTextColor,
  • setLabelTextSize,
  • setSubLabel,
  • setSubLabelTextSize

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • getContentResolver (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
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