SWITCH
<Switch
android:id="@+id/switch1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>



spinnermode
  • none
  • dialog
  • dropdown
the text is at the left side from the Switch ! final switch1 = (Switch)findViewById(R.id.switch1);

send or receive params
Spinner