i am working on an android studio app and i want to update the design of a button, i dont know what i am doing wrong.
I have this code for the button:
<Button
android:id="@+id/signUpBtn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:background="@drawable/loginbutton_selector"
android:textColor="@color/background_color" />
<TextView
android:id="@+id/or"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:textColor="@color/black" />
The drawable is linked to loginbutton_selector that is like this:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- When item pressed this item will be triggered -->
<item android:state_pressed="true">
<shape android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#95000000" />
<stroke android:width="1dp" android:color="@color/background_color" />
</shape>
</item>
<!-- By default the background will be this item -->
<item>
<shape android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="#00000000" />
<stroke android:width="1dp" android:color="@color/background_color" />
</shape>
</item>
</selector>
I want to make changes to the border radius, text size and color but it doesnt seem to work. I am changing the radius and color from code, also from background_color option but it doesnt work.
What am i doing wrong?
Thank you
I tried updating the code, adding new options like the options below but it didnt work.
<shape android:shape="rectangle" >
<corners android:radius="3dip" />
<stroke android:width="1dip" android:color="#5e7974" />
<solid android:color="#58857e"/>
Thank you