/// <summary> /// Called by bindView() to set the text for a TextView but only if /// there is no existing ViewBinder or if the existing ViewBinder cannot /// handle binding to an TextView. /// </summary> /// <remarks> /// Called by bindView() to set the text for a TextView but only if /// there is no existing ViewBinder or if the existing ViewBinder cannot /// handle binding to an TextView. /// </remarks> /// <param name="v">TextView to receive text</param> /// <param name="text">the text to be set for the TextView</param> public virtual void setViewText(android.widget.TextView v, string text) { v.setText(java.lang.CharSequenceProxy.Wrap(text)); }
private void setViewText(android.widget.TextView v, java.lang.CharSequence text) { // Set the text even if it's null, since we need to clear any previous text. v.setText(text); if (android.text.TextUtils.isEmpty(text)) { v.setVisibility(android.view.View.GONE); } else { v.setVisibility(android.view.View.VISIBLE); } }