title: setting textview visibility to GONE when there is no text to show
body: <p>i have a listview in which i have 2 textviews, one of these textview contains zero text by default, but can be changed by the user. the problem is that i need to do so when the textview is empty the visibility of it is set to GONE. i have 2 ideas of how this might work, either defining it in xml or defining it in the database somehow.</p>
  
  <pre><code>public long createDate(String date) {
      ContentValues initialValues1 = new ContentValues();
      initialValues1.put(KEY_DATE, date);
      initialValues1.put(KEY_TIMESTAMP, "00:00");
  
      if(text==""){
         initialValues1.put(KEY_DICTTAG,View.GONE); //this does NOT work
      }else{
         initialValues1.put(KEY_DICTTAG,text);
      }
  
      initialValues1.put(KEY_DICTALARMTIME, "0");
      initialValues1.put(KEY_DICTLISTIMAGE, R.drawable.list_icon);
      return mdiktationsDb.insert(DATABASE_TABLE, null, initialValues1);
  }
  </code></pre>
  
  <p>i know the textview wont be seen by the user when there is no text, but i need it to not be seen by the system so to speak. this is because i need the timestamp textview to be centerd in the relative layout when there is no text in the dicttag textview. i could not post the xml layout because i do not have any room</p>