title: How to expand and show elements in a listview?
body: <p>I have made a custom list view where each row has two textviews and a seek bar. I want to show initially only one text view and when the user clicks on an item the list should expand to full screen and show the textviews and seekbar.</p>
  
  <p>This is what I have achieved until now:</p>
  
  <pre><code>public class ExpandableListActivity extends ListActivity
  {
      Context context;
      private TextView mTitle;
      private TextView mDialogue;
      private SeekBar seekbar;
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          context = this;
          // Use our own list adapter
          setListAdapter(new ListAdapter(this));
      }
  
  
      @Override
      protected void onListItemClick(ListView l, View v, int position, long id)
      {
  
      }
  
  
      private class ListAdapter extends BaseAdapter {
          public ListAdapter(Context context)
          {
              mContext = context;
          }
  
          public int getCount() {
              return mTitles.length;
          }
  
          public Object getItem(int position) {
              return position;
          }
  
          public long getItemId(int position) {
              return position;
          }
  
          public View getView(int position, View convertView, ViewGroup parent) {
              LayoutInflater inflater = ((Activity) context).getLayoutInflater();
              View rowView = inflater.inflate(R.layout.listlayout, null, true);
              mTitle = (TextView) rowView.findViewById(R.id.textView1);
              mDialogue= (TextView) rowView.findViewById(R.id.textView2);
              seekbar = (SeekBar)rowView.findViewById(R.id.seekBar1);
              mTitle.setText(mTitles[position]);
              mDialogue.setText(mDialogues[position]);
  
              return rowView;
          }
  
          private Context mContext;
  
          String [] mTitles = getResources().getStringArray(R.array.state_name);
          String [] mDialogues = getResources().getStringArray(R.array.capital_name);
      }
  }
  </code></pre>