据我所知,在API 1中添加了ToggleButton
,我选择了API 10
作为我应用中的最小sdk。我在ToggleButton
中添加了activity.xml
,但它不起作用。
我已经尝试重新启动我的IDE但没有好处。 它不断返回此错误。
Rendering Problems
The graphics preview in the layout editor may not be accurate:
- Different corner sizes are not supported in Path.addRoundRect. (Ignore for this session)
- Path.isConvex is not supported. (Ignore for this session)
Ignore all fidelity warnings for this session.
Exception raised during rendering: -1
以下是我ToggleButton
中的activity.xml
代码:
<ToggleButton
android:layout_width = "match_parent"
android:layout_height = "match_parent" />