How to dynamically make TextView's setVisibility(View.GONE)?
<p>I am displaying a List that contains 3 Textview for name, start_date and day.Now I want that if any start_date value is empty, Listview must not display that TextView. I know the functionality of "GONE". But In my case I am using hashmap. I don't know where to apply "GONE".</p>

<p>Here is my code:</p>

<pre><code>ListAdapter adapter = new SimpleAdapter(this, hashList,
                R.layout.list_item, new String[] { TAG_NAME,
                        TAG_START_DATE, TAG_DAYS }, new int[] {
                        R.id.name, R.id.startdate, R.id.days });
</code></pre>

<p>Here <code>R.id.name</code>, <code>R.id.startdate</code>, <code>R.id.days</code> are <code>Textview</code>s.
Here, start_date may and may not be available, so <code>R.id.startdate</code> must be applied <code>Visibility</code> <code>Gone</code> if hashmap don't has value for that.</p>
