mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-03 12:48:56 +08:00
add numberpicker::get/set selectionDivider
This commit is contained in:
parent
ff03098954
commit
634abe4daa
@ -594,6 +594,23 @@ void NumberPicker::setOnLongPressUpdateInterval(long intervalMillis) {
|
||||
mLongPressUpdateInterval = intervalMillis;
|
||||
}
|
||||
|
||||
void NumberPicker::setSelectionDivider(Drawable*d){
|
||||
delete mSelectionDivider;
|
||||
mSelectionDivider = d;
|
||||
if (mSelectionDivider) {
|
||||
mSelectionDivider->setCallback(this);
|
||||
mSelectionDivider->setLayoutDirection(getLayoutDirection());
|
||||
if (mSelectionDivider->isStateful()) {
|
||||
mSelectionDivider->setState(getDrawableState());
|
||||
}
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
Drawable*NumberPicker::getSelectionDivider()const{
|
||||
return mSelectionDivider;
|
||||
}
|
||||
|
||||
void NumberPicker::setSelector(int items){
|
||||
mMaxSelectorIndices=items;
|
||||
//mSelectorIndices.resize(items);
|
||||
|
@ -155,20 +155,22 @@ public:
|
||||
void computeScroll()override;
|
||||
View& setEnabled(bool enabled)override;
|
||||
void scrollBy(int x, int y)override;
|
||||
int getSolidColor()const;
|
||||
int getSolidColor()const;
|
||||
void setOnValueChangedListener(OnValueChangeListener onValueChangedListener);
|
||||
void setOnScrollListener(const OnScrollListener& onScrollListener);
|
||||
void setFormatter(Formatter formatter);
|
||||
void setSelectionDivider(Drawable*d);
|
||||
Drawable* getSelectionDivider()const;
|
||||
void setValue(int value);
|
||||
int getValue()const;
|
||||
int getValue()const;
|
||||
void setMinValue(int value);
|
||||
int getMinValue()const;
|
||||
int getMinValue()const;
|
||||
void setMaxValue(int maxValue);
|
||||
int getMaxValue()const;
|
||||
int getMaxValue()const;
|
||||
void setMinHeight(int h);
|
||||
void setMaxHeight(int h);
|
||||
int getMinHeight()const;
|
||||
int getMaxHeight()const;
|
||||
int getMinHeight()const;
|
||||
int getMaxHeight()const;
|
||||
std::vector<std::string> getDisplayedValues()const;
|
||||
void setDisplayedValues(const std::vector<std::string>&);
|
||||
bool performClick()override;
|
||||
|
Loading…
Reference in New Issue
Block a user