How to convert xml layout to png / svg for use in iOS version
I have an android xml layout file here:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/locationMarker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="30dp"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/locationMarkertext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rounded_corner_map"
android:gravity="center"
android:minWidth="180dp"
android:onClick="create"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:text="Pick the Location"
android:textColor="@android:color/white" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:onClick="create"
android:src="@drawable/plus" />
</LinearLayout>
This xml layout is as follows:
This works fine for android, but I want to use this xml layout in an iOS app. I was wondering if there is a way to convert this xml layout to svg or png format or something that would allow me to reuse this element without having to re-create it. It should have transparency, and .svg will most likely be better than .png if it works. I would like only the displayed visible part to be available, if possible.
