Search in sources :

Example 6 with CircleView

use of com.tevinjeffrey.rutgersct.ui.utils.CircleView in project Rutgers-Course-Tracker by tevjef.

the class TrackedSectionVH method newInstance.

public static TrackedSectionVH newInstance(View parent) {
    SectionInfoVH sectionInfoVH = SectionInfoVH.newInstance(parent);
    TextView courseTitleText = ButterKnife.findById(parent, R.id.course_title_text);
    TextView instructors = sectionInfoVH.mInstructors;
    CircleView sectionNumberBackground = sectionInfoVH.mSectionNumberBackground;
    ViewGroup sectionTimeContainer = sectionInfoVH.mSectionTimeContainer;
    return new TrackedSectionVH(parent, instructors, courseTitleText, sectionNumberBackground, sectionTimeContainer);
}
Also used : ViewGroup(android.view.ViewGroup) CircleView(com.tevinjeffrey.rutgersct.ui.utils.CircleView) TextView(android.widget.TextView) SectionInfoVH(com.tevinjeffrey.rutgersct.ui.sectioninfo.SectionInfoVH)

Example 7 with CircleView

use of com.tevinjeffrey.rutgersct.ui.utils.CircleView in project Rutgers-Course-Tracker by tevjef.

the class CourseInfoVH method newInstance.

public static CourseInfoVH newInstance(View parent) {
    SectionInfoVH sectionInfoVH = SectionInfoVH.newInstance(parent);
    TextView instructors = sectionInfoVH.mInstructors;
    CircleView sectionNumberBackground = sectionInfoVH.mSectionNumberBackground;
    ViewGroup sectionTimeContainer = sectionInfoVH.mSectionTimeContainer;
    return new CourseInfoVH(parent, instructors, sectionNumberBackground, sectionTimeContainer);
}
Also used : ViewGroup(android.view.ViewGroup) CircleView(com.tevinjeffrey.rutgersct.ui.utils.CircleView) TextView(android.widget.TextView) SectionInfoVH(com.tevinjeffrey.rutgersct.ui.sectioninfo.SectionInfoVH)

Aggregations

CircleView (com.tevinjeffrey.rutgersct.ui.utils.CircleView)7 ViewGroup (android.view.ViewGroup)3 TextView (android.widget.TextView)3 FragmentTransaction (android.app.FragmentTransaction)2 Fade (android.transition.Fade)2 Transition (android.transition.Transition)2 View (android.view.View)2 SectionInfoVH (com.tevinjeffrey.rutgersct.ui.sectioninfo.SectionInfoVH)2 CircleSharedElementCallback (com.tevinjeffrey.rutgersct.ui.utils.CircleSharedElementCallback)2 RecyclerView (android.support.v7.widget.RecyclerView)1 SectionInfoFragment (com.tevinjeffrey.rutgersct.ui.sectioninfo.SectionInfoFragment)1