title: How to set custom list view item's height...?
body: <p>I have a custom list view which contains two text views and on button.
  I have customized the button style.
  In the list view each row is not fit to show my button properly.
  I want to change the list item's height.
  How can i do that..?</p>
  
  <p>This is my list view.</p>
  
  <pre><code>&lt;ListView android:layout_width="fill_parent"
          android:scrollbars="none" android:footerDividersEnabled="false"
          android:minHeight="50dp"
          android:listSelector="#00000000" android:dividerHeight="0px"
          android:divider="#00000000" android:layout_height="fill_parent"
          android:layout_marginLeft="5dp" android:layout_marginTop="5dp"
          android:layout_marginRight="5dp" android:id="@+id/list_view"
          android:cacheColorHint="#00000000" android:background="#00000000" /&gt;
  </code></pre>
  
  <p>my custom view xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal" android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;TextView android:layout_width="150dp"
          android:layout_height="wrap_content" 
          android:textColor="#808080" android:text="Subtitle 2" android:id="@+id/text1" 
          android:layout_marginLeft="5dp"
          android:singleLine="true"/&gt;
  
      &lt;TextView android:layout_width="60dp"
          android:layout_height="wrap_content" 
          android:textColor="#808080" android:text="$ 00.00" android:id="@+id/text2" 
          android:singleLine="true"/&gt;
  
      &lt;Button android:layout_width="80dp" android:layout_height="25dp"
          android:background="@drawable/type10_subbg" android:text="Add"
          android:textSize="20dp" android:textStyle="bold" android:textColor="#153E7E"
          android:id="@+id/add" /&gt;
  &lt;/LinearLayout&gt;   
  </code></pre>
  
  <p>Here is my getView.</p>
  
  <pre><code>@SuppressWarnings("unchecked")
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
      ViewHolder holder;
      pos = position;
      holder = new ViewHolder();
      convertView = inflater.inflate(R.layout.type10_sub, null);          
      holder.text1 = (TextView) convertView.findViewById(R.id.text1);
      holder.text2 = (TextView) convertView.findViewById(R.id.text2);
      holder.add = (Button) convertView.findViewById(R.id.add);
      holder.add.setTag(String.valueOf(position));
      holder.add.setOnClickListener(new OnClickListener() {           
          @Override
          public void onClick(View v) {
              Button b = (Button)v;
              int tag = Integer.valueOf((String)b.getTag());
              System.out.println("Added at "+tag);
              System.out.println("Data = "+((HashMap&lt;String,Object&gt;)list.get(tag)).get("text1").toString());
              System.out.println("Price = "+((HashMap&lt;String,Object&gt;)list.get(tag)).get("text2").toString());             }
      });         holder.text1.setText(((HashMap&lt;String,Object&gt;)list.get(position)).get("text1").toString());
      holder.text2.setText(((HashMap&lt;String,Object&gt;)list.get(position)).get("text2").toString());
      convertView.setTag(holder);
      return convertView;
  }
  </code></pre>
  
  <p>Thanks in advance....!</p>