I am new in android development and I have created an xml file of name of "round_btn_bg.xml" in which I am just set the styling of my button but when I use this xml file in activity_main.xml the functionality of button is not loading in app...
here it is the code of "round_btn_bg.xml"
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/colorAccent"/>
<corners android:radius="60dp"/>
</shape>
Below it is the code of "actvity_main.xml"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorBlack"
android:id="@+id/mainActivity_RL"
tools:context=".MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/mainActivity_BackgroundIV"
android:src="@drawable/backgroundconnecteach"
android:scaleType="centerCrop"
android:alpha=".6"/>
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:id="@+id/mainActivity_logoIV"
android:src="@drawable/logo"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"
android:layout_marginTop="160dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/mainActivity_TagLineTV"
android:text="@string/get_started_tag_line"
android:textColor="@color/colorWhite"
android:textStyle="bold"
android:layout_centerInParent="true"
android:layout_below="@id/mainActivity_logoIV"/>
<Button
style="@drawable/round_btn_bg"
android:id="@+id/mainActivity_MoveBtn"
android:layout_width="168dp"
android:layout_height="40dp"
android:layout_below="@id/mainActivity_TagLineTV"
android:layout_centerInParent="true"
android:layout_marginTop="8dp"
android:background="@drawable/round_btn_bg"
android:text="@string/get_started_btn" />
</RelativeLayout>