Android Open Source - AerisAndroidLibrary Weekend Item Holder

From Project

Back to project page AerisAndroidLibrary.


The source code is released under:

Apache License

If you think the Android project AerisAndroidLibrary listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.listview;
//w ww.  j a  v a2 s. com
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.example.demoaerisproject.R;
import com.example.util.FormatUtil;
import com.example.view.DayNightView;

public class WeekendItemHolder implements AdapterHolder<DayNightPeriod> {

  DayNightView day;
  DayNightView night;
  TextView weekday;
  TextView date;

  public View inflateview(LayoutInflater mInflater) {
    View v = mInflater.inflate(R.layout.listview_weekend, null, false);
    day = (DayNightView) v.findViewById(;
    night = (DayNightView) v.findViewById(;
    weekday = (TextView) v.findViewById(;
    date = (TextView) v.findViewById(;
    return v;

  public void populateView(DayNightPeriod t, int position) {
    Resources resources = day.getContext().getResources();
    weekday.setText(FormatUtil.getDayFromISO(, false));
    day.setPeriod(, "");
    night.setPeriod(t.night, "");



Java Source Code List