title: Android: Custom adapter with 2 layouts
body: <p>I need to display my data in 2 different modes: medium and large view. I have a custom adapter and display data into listview. when i click on list view item i start a new activity. With on layout in my adapter everything works perfect. Now i try to switch between two layouts in adapter: i set to the adapter view mode and then call notifyDataSetChanged:</p>
  
  <pre><code>    ticketsAdapter.setViewMode(ViewMode.Large);
      ticketsAdapter.notifyDataSetChanged();
  </code></pre>
  
  <p>this also work and now i can see more information (large row layout has more field than medium view).
  The problem is that alter this click on listview items it's not working anymore.
  In getView method from my adapter i do somethink like this:</p>
  
  <pre><code>LayoutInflater li = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          switch (viewMode) {
          case Large:
              v = li.inflate(R.layout.row_large, null);
              break;
          case Medium:
              v = li.inflate(R.layout.row_medium, null);
              break;
          default:
              v = li.inflate(R.layout.row_medium, null);
              break;
          }
  </code></pre>
  
  <p>Can some one help?</p>
  
  <p><em><strong>Fixed:</em></strong></p>
  
  <p>I had one textview with:</p>
  
  <pre><code>android:inputType="text"
  </code></pre>
  
  <p>and this caused the problem.
  Tx</p>