Listview with Textview and 2 Edittext in a single row in android -


i want have single "textview" , 2 "edittext" in single row.i have tried following code:

xml:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="horizontal"     >       <textview          android:id="@+id/vegtext"         android:layout_width="fill_parent"         android:layout_height="fill_parent"                />      <edittext          android:id="@+id/vegquantity"            android:hint="qty"             android:layout_width="100dp"         android:layout_height="100dp"         android:layout_weight="1"         />       <edittext          android:id="@+id/vegprice"                android:layout_width="100dp"         android:layout_height="100dp"         android:hint="price"         android:layout_weight="1"        />   </linearlayout> 

getview in adapter:

@override     public view getview(int position, view convertview, viewgroup parent)      {          veglistholder holder;         // todo auto-generated method stub         if(convertview == null)         {             layoutinflater inflater = (layoutinflater)activity.getsystemservice(context.layout_inflater_service);             convertview  = inflater.inflate(r.layout.veglistrow, null);                holder = new veglistholder();               holder.text = (textview) convertview                         .findviewbyid(r.id.vegtext);                holder.qtyedit = (edittext) convertview                         .findviewbyid(r.id.vegquantity);               holder.priceedit = (edittext) convertview                         .findviewbyid(r.id.vegprice);                convertview.settag(holder);                      }         else         {             holder = (veglistholder) convertview.gettag();               }             holder.text.settext(vegitems[position]);         return convertview;     } 

but edittext not there in row. blank space coming below "textview" .i searched "lots of" post regarding cant solve this.please me solve this..thanks in advance.

well problem set width , height of textview fill parent


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -