Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Default arrow tint to black
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Marchesin committed May 24, 2019
1 parent a931645 commit 7f3d962
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions library/src/main/java/org/angmarch/views/NiceSpinner.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public class NiceSpinner extends AppCompatTextView {
private int displayHeight;
private int parentVerticalOffset;
private int dropDownListPaddingBottom;
private @DrawableRes
int arrowDrawableResId;
private @DrawableRes int arrowDrawableResId;
private SpinnerTextFormatter spinnerTextFormatter = new SimpleSpinnerTextFormatter();
private SpinnerTextFormatter selectedTextFormatter = new SimpleSpinnerTextFormatter();
private PopUpTextAlignment horizontalAlignment;
Expand Down Expand Up @@ -216,7 +215,7 @@ public void onDismiss() {
});

isArrowHidden = typedArray.getBoolean(R.styleable.NiceSpinner_hideArrow, false);
arrowDrawableTint = typedArray.getColor(R.styleable.NiceSpinner_arrowTint, Integer.MAX_VALUE);
arrowDrawableTint = typedArray.getColor(R.styleable.NiceSpinner_arrowTint, getResources().getColor(android.R.color.black));
arrowDrawableResId = typedArray.getResourceId(R.styleable.NiceSpinner_arrowDrawable, R.drawable.arrow);
dropDownListPaddingBottom =
typedArray.getDimensionPixelSize(R.styleable.NiceSpinner_dropDownListPaddingBottom, 0);
Expand Down
8 changes: 4 additions & 4 deletions library/src/main/res/drawable/spinner_drawable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<shape android:shape="rectangle">
<solid android:color="@android:color/white" />
<corners
android:bottomLeftRadius="1dp"
android:bottomRightRadius="1dp"
android:topLeftRadius="1dp"
android:topRightRadius="1dp" />
android:bottomLeftRadius="1dp"
android:bottomRightRadius="1dp"
android:topLeftRadius="1dp"
android:topRightRadius="1dp" />
</shape>
</item>
</layer-list>
4 changes: 2 additions & 2 deletions library/src/main/res/layout/spinner_list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
android:padding="@dimen/one_and_a_half_grid_unit"
android:singleLine="true"
android:textSize="15sp"
tools:textColor="@android:color/black"
tools:text="Item"/>
tools:text="Item"
tools:textColor="@android:color/black" />

0 comments on commit 7f3d962

Please sign in to comment.