Help me pls for creating dynamic list

Is it possible to create dynamic listview from xml file
Is there any extension ?

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="horizontal"
    android:padding="5dp"
    android:divider="#a31405">

    <LinearLayout

        android:layout_width="238dp"
        android:layout_height="wrap_content"
        android:layout_marginRight="10dp"
        android:layout_marginLeft="5dp"
        android:textDirection="rtl"
        android:layoutDirection="rtl"

        android:orientation="vertical" >

        <TextView

            android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Title"
            android:layout_gravity="right"
            android:textDirection="rtl"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:fontFamily="sans-serif"
            android:textSize="18sp"
            android:textAlignment="textEnd" />

        <TextView
            android:id="@+id/text_category"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:text="Category"
            android:textAppearance="?android:attr/textAppearanceSmall" />

        <TextView
            android:id="@+id/second"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="30:00"
            android:textAppearance="?android:attr/textAppearanceSmall" />

    </LinearLayout>

    <ImageView
        android:id="@+id/picture"
        android:layout_width="140dp"
        android:layout_height="90dp"
        android:src="@mipmap/ic_launcher"
        android:scaleType="centerCrop"
        android:contentDescription="@string/desc"/>

</LinearLayout>

you can’t load data directly from an XML file, you can effectively create a dynamic ListView using text files or hardcoded lists

Yes possible if u wnt then ill make it u have to pay me?

1 Like