Skip to content

Button Color showing differently than what is set. #5

Description

@ajinkyaw

Hi ,
I am setting a colour to the button , the button shows different color on the running app.
the colour code i am setting is #01356a and i see the color #0099cc on runtime.
The reason for asking this question here is because if i use normal Default Button , the color shows as expected, but with library i am getting different color.

Here is my xml

           <com.nihaskalam.progressbuttonlibrary.CircularProgressButton

            android:id="@+id/btnLogin"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:layout_marginStart="30dp"
            android:layout_marginTop="5dp"
            android:layout_marginEnd="30dp"
            app:pb_cornerRadius="2dp"
            android:layout_marginBottom="20dp"
            android:background="@drawable/drawable_login_button"
            android:bufferType="normal"
            android:fontFamily="@font/lato_bold"
            android:gravity="center"
            android:text="LOGIN"
            android:textColor="#FFFFFF"
            android:textSize="15sp"
            app:pb_colorIndicator="#fbb205"
            app:pb_colorProgress="#01356a"
            app:pb_textIdle="LOGIN" />

and my
drawable_login_button.xml

<corners android:radius="8dp"/>
<solid android:color="#01356a"/>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions