title: Resize listView element after textView changed it size
body: <p>I had next issue: I add <a href="http://codexplo.wordpress.com/2013/09/07/android-expandable-textview/" rel="nofollow">expandable TextView</a> to my listView element. And now i want to resize listView element after text view expanding. ExpandableTextView work good, but now size of listView element did not changed.My listView element is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:baselineAligned="false"
  android:orientation="vertical"
  android:padding="12dp"
  android:paddingTop="5dip"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:orientation="horizontal"&gt;
  
      &lt;ImageView
          android:id="@+id/iv_dish"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:clickable="true"&gt;&lt;/ImageView&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical"
          android:paddingLeft="10dp"&gt;
  
          &lt;TextView
              android:id="@+id/tv_dish_name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Large Text"
              android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
          &lt;khuta.zavtrakov.other.ExpandableTextView
              android:id="@+id/tv_dish_description"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" /&gt;
  
  
          &lt;TextView
              android:id="@+id/tv_price"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="right"
              android:text="Medium Text"
              android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>My adapter is:</p>
  
  <pre><code>public class ExpandableListAdapter extends BaseExpandableListAdapter {
  
  private Context mContext;
  private ExpandableListView mExpandableListView;
  private List&lt;GroupEntity&gt; mGroupCollection;
  private int[] groupStatus;
  
  ImageLoaderConfiguration config;
  DisplayImageOptions options;
  ImageLoader imageLoader;
  
  public ExpandableListAdapter(Context pContext,
                               ExpandableListView pExpandableListView,
                               List&lt;GroupEntity&gt; pGroupCollection) {
      mContext = pContext;
      mGroupCollection = pGroupCollection;
      mExpandableListView = pExpandableListView;
      groupStatus = new int[mGroupCollection.size()];
      config = new ImageLoaderConfiguration.Builder(mContext)
              // You can pass your own memory cache implementation
              .discCacheFileNameGenerator(new HashCodeFileNameGenerator())
              .build();
  
      options = new DisplayImageOptions.Builder()
              .displayer(new RoundedBitmapDisplayer(360)) //rounded corner bitmap
              .cacheInMemory(true)
              .cacheOnDisc(true)
              .build();
  
      imageLoader = ImageLoader.getInstance();
      setListEvent();
  }
  
  private void setListEvent() {
  
      mExpandableListView
              .setOnGroupExpandListener(new OnGroupExpandListener() {
  
                  @Override
                  public void onGroupExpand(int groupPosition) {
                      // TODO Auto-generated method stub
                      groupStatus[groupPosition] = 1;
                  }
              });
  
      mExpandableListView
              .setOnGroupCollapseListener(new OnGroupCollapseListener() {
  
                  @Override
                  public void onGroupCollapse(int groupPosition) {
                      // TODO Auto-generated method stub
                      groupStatus[groupPosition] = 0;
                  }
              });
  }
  
  @Override
  public Dish getChild(int groupPosition, int childPosition) {
      // TODO Auto-generated method stub
      return mGroupCollection.get(groupPosition).GroupItemCollection.get(childPosition);
  }
  
  @Override
  public long getChildId(int groupPosition, int childPosition) {
      // TODO Auto-generated method stub
      return childPosition;
  }
  
  @Override
  public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView,
                           ViewGroup parent) {
      Dish child = (Dish) getChild(groupPosition, childPosition);
      if (convertView == null) {
          convertView = LayoutInflater.from(mContext).inflate(
                  R.layout.list_child_item, null);
  
      } else {
      }
      if (isLastChild) {
          convertView.findViewById(R.id.divider_description_child).setVisibility(View.GONE);
      } else {
          convertView.findViewById(R.id.divider_description_child).setVisibility(View.VISIBLE);
      }
      ((TextView) convertView.findViewById(R.id.tv_dish_name)).setText(child.getName());
      final ExpandableTextView expandableTextView = (ExpandableTextView) convertView.findViewById(R.id.tv_dish_description);
      expandableTextView.setText(child.getDescription());
      expandableTextView.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              expandableTextView.trim = !expandableTextView.trim;
              expandableTextView.setText();
              notifyDataSetChanged();
  
          }
      });
  
      ((TextView) convertView.findViewById(R.id.tv_price)).setText(String.valueOf(child.getPrice()));
      imageLoader.init(config);
      imageLoader.displayImage(child.getImageUrl(), (ImageView) convertView.findViewById(R.id.iv_dish), options);
      return convertView;
  }
  
  @Override
  public int getChildrenCount(int groupPosition) {
      // TODO Auto-generated method stub
      return mGroupCollection.get(groupPosition).GroupItemCollection.size();
  }
  
  @Override
  public Object getGroup(int groupPosition) {
      // TODO Auto-generated method stub
      return mGroupCollection.get(groupPosition);
  }
  
  @Override
  public int getGroupCount() {
      // TODO Auto-generated method stub
      return mGroupCollection.size();
  }
  
  @Override
  public long getGroupId(int groupPosition) {
      return groupPosition;
  }
  
  @Override
  public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
      GroupEntity group = (GroupEntity) getGroup(groupPosition);
      GroupHolder groupHolder;
      if (convertView == null) {
          convertView = LayoutInflater.from(mContext).inflate(R.layout.list_group,
                  null);
          groupHolder = new GroupHolder();
  
          ((TextView) convertView.findViewById(R.id.tv_group_name)).setText(group.Name);
          if (groupPosition == 0) {
              ((ImageView) convertView.findViewById(R.id.iv_group_backgraund)).setVisibility(View.GONE);
          }
          convertView.setTag(groupHolder);
      } else {
          groupHolder = (GroupHolder) convertView.getTag();
      }
  
      return convertView;
  }
  
  class GroupHolder {
      ImageView img;
  }
  
  @Override
  public boolean hasStableIds() {
      // TODO Auto-generated method stub
      return true;
  }
  
  @Override
  public boolean isChildSelectable(int groupPosition, int childPosition) {
      // TODO Auto-generated method stub
      return true;
  }
  </code></pre>
  
  <p>}</p>