android ToggleButton Exception raised during rendering: -1 -


this question has answer here:

i created simple app android when add togglebutton in xml file , go graphical layout error message:

exception raised during rendering: -1 exception details logged in window > show view > error logthe graphics preview in layout editor may not accurate: different corner sizes not supported in path.addroundrect. (ignore session)

here code:

<togglebutton  android:id="@+id/togglebutton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:texton="vibrate on" android:textoff="vibrate off" android:onclick="ontoggleclicked"/> 

i fix it, had changing target of graphical layout this:

enter image description here


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -