Code Monkey home page Code Monkey logo

Comments (4)

DFreds avatar DFreds commented on July 28, 2024 2

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.

aritraroy avatar aritraroy commented on July 28, 2024

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.

DFreds avatar DFreds commented on July 28, 2024

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.

DFreds avatar DFreds commented on July 28, 2024

They are appearing as normal as if I was not trying to customize them.

from pinlockview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.