有没有相当于jsfiddle的Android布局?

时间:2014-05-27 17:02:50

标签: xml android-layout xml-parsing jsfiddle

jsfiddle(和它的兄弟们)非常适合构思HTML / CSS / jQuery; Android Layout(xml)文件类似的东西呢?

粘贴这样的东西真是太棒了:

<LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:padding="5dp">

    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight=".25"
        android:text="@string/id"
        android:textAppearance="?android:attr/textAppearanceMedium" />

        <EditText
            android:id="@+id/editTextID"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight=".25" />

    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight=".25"
        android:text="@string/pack_size"
        android:textAppearance="?android:attr/textAppearanceMedium" />

        <EditText
            android:id="@+id/editTextPackSize"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight=".25" />

</LinearLayout>

...进入这样一个工具,并立即收到它所代表的视觉反馈。我搜索了这样一只野兽,却一无所获。有人知道这样的工具吗?

1 个答案:

答案 0 :(得分:1)

ADT Bundle和Android Studio已支持您的请求。

如果您正在寻找在线解决方案,我发现这是:

DroidDraw这是Android的WYSIWYG用户界面

它需要Java。

此应用程序还有一个独立版本。

相关问题