title: TextView inside layout with fixed height cutting off
body: <p>I have a calendar view with events inside a table. An event is created with a LinearLayout and a textview inside: </p>
  
  <pre><code>LinearLayout ll = new LinearLayout(context);
  ll.setOrientation(LinearLayout.VERTICAL);
  
  LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
  
  //My label
  TextView label = new TextView(context);
  label.setEllipsize(TruncateAt.END);
  label.setPadding(4, 0, 0, 10);
  label.setText(text);
  
  ll.addView(label, layoutParams);
  </code></pre>
  
  <p>When I add my LinearLayout to the calendar view, I got this:</p>
  
  <p><img src="https://i.stack.imgur.com/jnklr.png" alt="enter image description here"></p>
  
  <p>My label is cutted off because of the linearlayout height. I dont want to change the height of my event. So I have set the property ellipsize with TruncateAt.END in my label in order to avoid this issue, but the problem persists. How can I have my label truncated at the end with (...)?</p>