একজন ListViewআমার আবেদন মত অনেক স্ট্রিং উপাদানগুলি নেই name, experience, date of joining, ইত্যাদি আমি শুধু করতে চাই nameসাহসী। সমস্ত স্ট্রিং উপাদান একক হবে TextView।
আমার এক্সএমএল:
<ImageView
android:id="@+id/logo"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="15dp" >
</ImageView>
<TextView
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/logo"
android:padding="5dp"
android:textSize="12dp" >
</TextView>
তালিকা কোড আইটেমের পাঠ্যদর্শনটি সেট করার জন্য আমার কোড:
holder.text.setText(name + "\n" + expirience + " " + dateOfJoininf);