Skip to content

Commit

Permalink
Fix added arrow issue in android 9+
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra committed Oct 19, 2019
1 parent 11d4166 commit ac4a2aa
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions AwesomeSpinner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 16
versionName "1.5.1"
versionCode 17
versionName "1.5.2"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.isapanah.awesomespinner;

import android.content.Context;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.support.v7.widget.AppCompatSpinner;
import android.util.AttributeSet;

Expand All @@ -14,14 +16,22 @@ public class spinnerDefaultSelection extends AppCompatSpinner {
int prevPos = 0;
public spinnerDefaultSelection(Context context) {
super(context);
init();
}

public spinnerDefaultSelection(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}

public spinnerDefaultSelection(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
init();
}

private void init()
{
this.getBackground().setColorFilter(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ allprojects {

**Step 2.** Add the dependency:
```groovy
implementation 'com.github.sadra:AwesomeSpinner:1.5.1'
implementation 'com.github.sadra:AwesomeSpinner:1.5.2'
```

## How To Use
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId "com.isapanah.awsomespinnerexample"
minSdkVersion 14
targetSdkVersion 26
versionCode 16
versionName "1.5.1"
versionCode 17
versionName "1.5.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -32,5 +32,5 @@ android {
dependencies {
implementation "com.android.support:design:26.1.0"
implementation project(":AwesomeSpinner")
// implementation 'com.github.sadra:AwesomeSpinner:1.3.0'
// implementation 'com.github.sadra:AwesomeSpinner:1.5.2'
}

0 comments on commit ac4a2aa

Please sign in to comment.