SWE
SWE

Reputation: 131

How to make android listview of edittext?

I want to make listview content edittext and button

any example code or project please.

thanks

Upvotes: 0

Views: 1271

Answers (1)

ρяσѕρєя K
ρяσѕρєя K

Reputation: 132982

see this tutorial for Listview with Edittext :

Android Focusable EditText inside ListView

and you can also edit item.xml for Button as:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText android:id="@+id/ItemCaption"
android:layout_height="wrap_content" 
android:layout_width="fill_parent"
android:layout_marginLeft="2dip" 
android:singleLine="true">
</EditText>
<Button  android:id="@+id/add"
android:layout_width="wrap_content" 
android:layout_height="wrap_content"  
android:layout_alignParentRight="true" 
android:layout_centerVertical="true"  
android:layout_marginRight="10dip" />
</LinearLayout>

Upvotes: 1

Related Questions