limit notes length to 3 lines

This commit is contained in:
Phillip Thelen 2016-04-21 19:17:07 +02:00
parent d64f150bdc
commit ebdfe62f65
3 changed files with 6 additions and 3 deletions

View file

@ -71,7 +71,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
bind:parsemarkdown="@{daily.notes}"
android:visibility="@{daily.notes != null ? View.VISIBLE : View.GONE}"/>
android:visibility="@{daily.notes != null ? View.VISIBLE : View.GONE}"
android:maxLines="3" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -82,7 +82,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
bind:parsemarkdown="@{habit.notes}"
android:visibility="@{habit.notes != null ? View.VISIBLE : View.GONE}"/>
android:visibility="@{habit.notes != null ? View.VISIBLE : View.GONE}"
android:maxLines="3" />
</LinearLayout>
<View
android:id="@+id/rightBorderView"

View file

@ -69,7 +69,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
bind:parsemarkdown="@{todo.notes}"
android:visibility="@{todo.notes != null ? View.VISIBLE : View.GONE}" />
android:visibility="@{todo.notes != null ? View.VISIBLE : View.GONE}"
android:maxLines="3" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"