Comments (4)
Nevermind, it seems that auto-complete is suggesting I put it in the PinLockView, when it really belongs in the IndicatorDots view. Not sure why it would do that.
from pinlockview.
All you need to do is pass a drawable to these attributes and the drawables can have any color as you want. There is nothing that I need to change here to make it possible to color them. You can easily color them using any drawable and putting a color to it.
from pinlockview.
I'm having the same problem. It is simply ignoring anything I'm passing in. I recommend this be reopened.
My XML is as follows:
<com.andrognito.pinlockview.IndicatorDots
android:id="@+id/indicator_dots"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/pin_header"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/indicator_dots_top_margin" />
<com.andrognito.pinlockview.PinLockView
android:id="@+id/pin_lock_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/indicator_dots"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/keypad_top_margin"
app:dotFilledBackground="@drawable/my_dot_filled"
app:indicatorType="fillWithAnimation"
app:keypadButtonSize="@dimen/keypad_button_size"
app:keypadShowDeleteButton="true"
app:keypadTextColor="@color/white"
app:keypadTextSize="@dimen/keypad_text_size" />
my_dot_filled xml is here:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/colorPrimary" />
</shape>
from pinlockview.
They are appearing as normal as if I was not trying to customize them.
from pinlockview.
Related Issues (20)
- Last dot for PIN occurs after onComplete? HOT 3
- [Feature] Add vibration (tactile feedback) when click the PinLockView's numbers
- Clear indicator dots HOT 2
- Show background as key pressed HOT 2
- Different inputType HOT 1
- java.lang.ArrayIndexOutOfBoundsException HOT 1
- androidx support HOT 2
- How clear indicator dot? HOT 1
- PinLockView bold text
- Indicators - different height for Filled and Empty
- Cant open new Intent -> PinLockView overlays it 2 times
- last indicator dot is not filled when number is typed in
- Duplicate Resource Error due to the lack of prefix on attributes
- Can't use this library anymore with a material dependency HOT 4
- Unable to change color of dots for filled/Empty HOT 1
- dotemptybackground
- Publish library to maven central HOT 1
- keypadButtonBackgroundDrawable attribute is not working. HOT 1
- Failed to resolve: com.andrognito.pinlockview:pinlockview:2.1.0
- Pin lock screen unlock 🔑
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinlockview.