Long document titles can include distinguishing details at the end of the title, so ellipsize in the middle. All other details ellipsize at the end. Bug: 11081420 Change-Id: I2c266ebc594d2ad383033b435acb8adb5fb823bc
46 lines
1.7 KiB
XML
46 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2013 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<ImageView
|
|
android:id="@+id/subdir"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="centerInside"
|
|
android:visibility="gone"
|
|
android:src="@drawable/ic_subdirectory_arrow"
|
|
android:contentDescription="@null" />
|
|
|
|
<TextView
|
|
android:id="@android:id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:ellipsize="middle"
|
|
android:textAlignment="viewStart"
|
|
style="@style/TextAppearance.Medium" />
|
|
|
|
</LinearLayout>
|