[Solved] How to make every content of a Relative Layout clickable in android

Implement onClickListener to each and every View. Simplest way will be <TextView android:background=”#CCCCCC” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Rate: ?” android:textColor=”#FF0000″ android:textStyle=”bold” android:textSize=”20dp” android:id=”@+id/textView2″ android:layout_alignBottom=”@+id/gvImage” android:layout_alignParentLeft=”true” android:layout_alignParentStart=”true” onclick=”executeTextViewClick” /> And in java class declare a function as follows. public void executeTextViewClick(View view){ //Toast here or navigate to other activity } 2 solved How to make every content of … Read more