Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(16908298, class android.widget.ListView) with Adapter(class android.widget.SimpleAdapter)] " </code></pre> <p>Please call <code>notifyDataSetChanged()</code> and <code>yourListView.requestLayout()</code> in the UI thread after adding items.The problem is that your collection that bound to Adapter is changed in the Background thread. Hence the solution is moving it to UI thread(as I stated above) or simply wrapping it with <code>runOnUiThread()</code>.</p> <pre><code>runOnUiThread(new Runnable() { public void run() { your_collection.add(item); your_adapter.notifyDataSetChanged(); yourListView.requestLayout(); } }); </code></pre> <p><strong>To call another fragment the current:</strong></p> <pre><code>SecondFragment secFrag = new SecondFragment(); FragmentTransaction fragTransaction = getFragmentManager().beginTransaction(); fragTransaction.replace(R.id.frame_fragment,secFrag ); fragTransaction.addToBackStack(null); fragTransaction.commit(); </code></pre> <p><strong>EDIT:</strong></p> <p><strong>To Display Detail fragment full Screen, please make following changes:</strong></p> <ol> <li><p>In your scrollView Replace <code>android:layout_height="wrap_content"</code> with <code>android:layout_height="fill_parent"</code></p></li> <li><p>In your TableLayout Replace <code>android:layout_height="wrap_content"</code> with <code>android:layout_height="fill_parent"</code></p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload