在Android API 10中添加ToggleButton时出现渲染错误

时间:2015-09-16 09:43:40

标签: android android-layout togglebutton

据我所知,在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" />

0 个答案:

没有答案