antoxa2584x / PinCodeView

Pretty PinCode view
135 stars 13 forks source link

InnerPinView drawable size is smaller than OuterPinView on 320dpi screen device #4

Open hendrawd opened 7 years ago

hendrawd commented 7 years ago

I don't know if it is the right behavior, but i got a weird behavior here. InnerPinView drawable is seems to be smaller than OuterPinView drawable on device with 320dpi screen. The behavior is not happens for device with 480dpi or higher screen. Actually the images used for InnerPinView and OuterPinView has the same size.

the bug screen shot

Here is my XML:

<com.goldenpie.devs.pincodeview.PinCodeView
     android:id="@+id/pcv_pass_code"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_gravity="center_horizontal"
     app:pcv_pin_inner_alpha="0"
     app:pcv_pin_inner_color="@color/primary"
     app:pcv_pin_inner_drawable="@drawable/ic_pin_star"
     app:pcv_pin_outer_drawable="@drawable/ic_pin_line"
     app:pcv_pin_tint_inner="false"
     app:pcv_pin_tint_outer="false"
     app:pcv_pin_type="unlock"
     />