Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pinview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,5 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
}
21 changes: 21 additions & 0 deletions pinview/src/main/java/com/goodiebag/pinview/Pinview.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ of this software and associated documentation files (the "Software"), to deal
import static android.text.InputType.TYPE_CLASS_NUMBER;
import static android.text.InputType.TYPE_CLASS_TEXT;
import static android.text.InputType.TYPE_NUMBER_VARIATION_PASSWORD;
import java.util.stream.IntStream;


/**
Expand Down Expand Up @@ -528,6 +529,17 @@ public void onFocusChanged(final View view, final CharSequence sourceText, final
}

private class PasswordCharSequence implements CharSequence {

@Override
public IntStream chars() {
return null;
}

@Override
public IntStream codePoints() {
return null;
}

private final CharSequence source;

public PasswordCharSequence(@NonNull CharSequence source) {
Expand Down Expand Up @@ -698,6 +710,15 @@ public void setTextColor(@ColorInt int color) {
edt.setTextColor(color);
}
}

public void setTextHintColor(@ColorInt int color){
if (editTextList == null || editTextList.isEmpty()){
return;
}
for (EditText edt : editTextList){
edt.setHintTextColor(color);
}
}

public void setCursorShape(@DrawableRes int shape) {

Expand Down