【问题标题】:Can i convert my android app xml files to adobe xD file?我可以将我的 android 应用程序 xml 文件转换为 adobe xD 文件吗?
【发布时间】:2020-04-23 11:35:17
【问题描述】:

我知道我可以将 adobe xD 设计导出为 XML 文件,但我需要知道我可以像我已经拥有 XML 布局一样做相反的事情,现在我可以将它们转换为 adobe-xD 线框而无需手动绘制吗?

这是一个示例 XML 代码,我想在不手动绘制的情况下将其转换为 adobe xD 线框,我可以这样做吗?如果可以,该怎么做?

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view_assign="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/card_view_delivery_point_codes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp">

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="260dp"
        android:background="@drawable/exp_del_merch_list_custom_back_three"/>

    <TextView
        android:id="@+id/orderID"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="2345-A1-A2"
        android:textColor="@color/white"
        android:textSize="18sp"
        android:textStyle="bold"
        android:padding="3dp"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="6dp"/>

    <LinearLayout
        android:orientation="vertical"
        android:id="@+id/pointcode"
        android:layout_below="@id/orderID"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:layout_marginTop="5dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:background="@drawable/exp_del_orders_list_custom_back_one"
        android:padding="20dp">

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:text="Merchant Name: "
                android:textSize="16sp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <TextView
                android:id="@+id/tvMerchantName"
                android:text="Name"
                android:textColor="@color/black"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>


        <View
            android:layout_marginTop="5dp"
            android:layout_marginBottom="5dp"
            android:background="@color/grey_20"
            android:layout_width="match_parent"
            android:layout_height="1dp"/>

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:text="Merchant Outlet: "
                android:textSize="16sp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <TextView
                android:id="@+id/tvMerchantOutlet"
                android:text="Name"
                android:textColor="@color/black"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>


        <View
            android:layout_marginTop="5dp"
            android:layout_marginBottom="5dp"
            android:background="@color/grey_20"
            android:layout_width="match_parent"
            android:layout_height="1dp"/>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="6dp"
            android:text="Customer info"
            android:textStyle="bold"
            android:textColor="@color/colorPrimary"
            android:textAlignment="center"
            android:layout_gravity="center_horizontal"
            android:padding="3dp"/>

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:text="Customer Name: "
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <TextView
                android:id="@+id/tvCustName"
                android:text="Name"
                android:textSize="15sp"
                android:textColor="@color/colorPrimary"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:text="Customer Address: "
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <TextView
                android:id="@+id/tvCustAddress"
                android:text="Name"
                android:textSize="15sp"
                android:textColor="@color/colorPrimary"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>

        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:text="Customer Phone: "
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <TextView
                android:id="@+id/tvCustPhone"
                android:textSize="15sp"
                android:text="Name"
                android:textColor="@color/colorPrimary"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>

        <View
            android:layout_marginTop="5dp"
            android:layout_marginBottom="5dp"
            android:background="@color/grey_20"
            android:layout_width="match_parent"
            android:layout_height="1dp"/>


        <Button
            android:id="@+id/reassignEmployee"
            android:layout_gravity="end"
            android:textColor="@color/white"
            android:background="@drawable/exp_del_merch_list_custom_back_three"
            android:layout_width="140dp"
            android:layout_height="wrap_content"
            android:layout_below="@+id/orderID"
            android:layout_marginTop="3dp"
            android:text="Re-assign"
            android:drawableRight="@drawable/ic_next_24dp"
            android:drawableTint="@color/white"
            android:paddingEnd="5dp"/>


    </LinearLayout>

</RelativeLayout>

【问题讨论】:

    标签: xml android-layout adobe-xd


    【解决方案1】:

    有针对设计师-开发者的工作流程。 但是你不能通过任何插件来转换它。 现在你必须手动绘制它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-20
      • 2013-08-30
      • 1970-01-01
      • 2021-02-02
      • 1970-01-01
      • 2017-10-15
      • 2019-10-31
      • 2012-01-25
      相关资源
      最近更新 更多