I have a SwitchCompat
:
<android.support.v7.widget.SwitchCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Some title"/>
and i want to prevent clicking on text title. As i click on text title, the switch is toggled. But i want to do switching only if i am clicking on toggle icon.
Is it possible? Or do i have to create two separate views
for that: one TextView
for title and one SwitchCompat
without text?