title: Is the xml attribute singleLine deprecated or not in Android?
body: <p><code>singleLine</code> is/was used in xml layout files for <code>TextView</code> and <code>EditText</code> something like the following:</p>
  
  <pre><code>&lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:singleLine="true" /&gt;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/a/16381219/3681880">Some people</a> on SO say <code>singleLine</code> is deprecated, while <a href="https://stackoverflow.com/a/24970871/3681880">other people</a> still suggest using it. Sometimes it even seems necessary to use when <code>maxLines="1"</code> doesn't work. (see <a href="https://stackoverflow.com/a/30029722/3681880">here</a>, <a href="https://stackoverflow.com/a/17125324/3681880">here</a>, and <a href="https://stackoverflow.com/questions/24351698/textviews-ellipsize-not-working-on-maxlines-1">here</a>)</p>
  
  <p>The docs should be the place to go to answer this question, right? <a href="http://developer.android.com/reference/android/R.attr.html#singleLine" rel="noreferrer">Here, they say:</a></p>
  
  <blockquote>
    <p><strong>This constant was deprecated in API level 3.</strong> </p>
    
    <p>This attribute is
    deprecated. Use <code>maxLines</code> instead to change the layout of a static
    text, and use the <code>textMultiLine</code> flag in the inputType attribute
    instead for editable text views (if both singleLine and inputType are
    supplied, the inputType flags will override the value of singleLine).</p>
  </blockquote>
  
  <p>However, <a href="http://developer.android.com/reference/android/widget/TextView.html" rel="noreferrer">in the TextView docs</a>, there is no indication that it is deprecated, either for <a href="http://developer.android.com/reference/android/widget/TextView.html#attr_android:singleLine" rel="noreferrer"><code>android:singleLine</code></a> or for <a href="http://developer.android.com/reference/android/widget/TextView.html#setSingleLine%28%29" rel="noreferrer"><code>setSingleLine</code></a> or for <a href="http://developer.android.com/reference/android/widget/TextView.html#setTransformationMethod%28android.text.method.TransformationMethod%29" rel="noreferrer"><code>setTransformationMethod</code></a>. The same TextView docs, by comparison, do state that other things like <code>STATUS_BAR_HIDDEN</code> and <code>fitSystemWindows</code> are deprecated. So is the <code>singleLine</code> deprecation an omission, was it "undeprecated", or what? </p>
  
  <p>This question has been <a href="https://stackoverflow.com/questions/7026121/androidsingleline-of-textview-is-nolonger-in-the-deprecated">previously asked before</a> but was not the main focus of the question (and was not answered).</p>