
com.marvinlabs.widget.floatinglabel.instantpicker.FloatingLabelDatePicker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-floatinglabel-widgets Show documentation
Show all versions of android-floatinglabel-widgets Show documentation
A set of input widgets to show a floating label when not empty.
The newest version!
package com.marvinlabs.widget.floatinglabel.instantpicker;
import android.content.Context;
import android.util.AttributeSet;
import com.marvinlabs.widget.floatinglabel.R;
import java.text.DateFormat;
/**
* A widget to pick one or more items from a list
*
* Created by Vincent Mimoun-Prat @ MarvinLabs, 28/08/2014.
*/
public class FloatingLabelDatePicker extends FloatingLabelInstantPicker {
// =============================================================================================
// Lifecycle
// ==
public FloatingLabelDatePicker(Context context) {
super(context);
}
public FloatingLabelDatePicker(Context context, AttributeSet attrs) {
super(context, attrs);
}
public FloatingLabelDatePicker(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
// =============================================================================================
// Overridden methods
// ==
@Override
protected int getDefaultDrawableRightResId() {
return R.drawable.ic_datepicker;
}
@Override
protected InstantPrinter getDefaultInstantPrinter() {
return new JavaDatePrinter(DateFormat.MEDIUM);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy