allow 2 lines of directory name to be displayed

This commit is contained in:
tibbi 2017-02-11 00:18:27 +01:00
parent 0c2598d37b
commit bf463cc81d

View file

@ -18,13 +18,20 @@
android:layout_margin="@dimen/small_margin" android:layout_margin="@dimen/small_margin"
android:src="@drawable/ic_pin"/> android:src="@drawable/ic_pin"/>
<RelativeLayout <ImageView
android:id="@+id/dir_shadow_holder" android:id="@+id/dir_shadow_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/tmb_shadow_height" android:layout_height="@dimen/tmb_shadow_height"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:background="@drawable/gradient_background" android:background="@drawable/gradient_background"/>
<LinearLayout
android:id="@+id/dir_bottom_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="bottom" android:gravity="bottom"
android:orientation="vertical"
android:paddingBottom="@dimen/small_margin" android:paddingBottom="@dimen/small_margin"
android:paddingLeft="@dimen/medium_margin" android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
@ -34,7 +41,8 @@
android:id="@+id/dir_name" android:id="@+id/dir_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_above="@+id/photo_cnt" android:ellipsize="end"
android:maxLines="2"
android:paddingBottom="@dimen/small_margin" android:paddingBottom="@dimen/small_margin"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
@ -43,9 +51,8 @@
android:id="@+id/photo_cnt" android:id="@+id/photo_cnt"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="@dimen/normal_text_size"/> android:textSize="@dimen/normal_text_size"/>
</RelativeLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>