Merge "Made breadcrumb drop down match mocks" into nyc-dev
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:popupTheme="?actionBarPopupTheme"
|
||||
android:overlapAnchor="true" />
|
||||
|
||||
</com.android.documentsui.DocumentsToolbar>
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:popupTheme="?actionBarPopupTheme"
|
||||
android:overlapAnchor="true" />
|
||||
|
||||
</com.android.documentsui.DocumentsToolbar>
|
||||
|
||||
@@ -24,16 +24,6 @@
|
||||
android:orientation="horizontal"
|
||||
android:baselineAligned="false">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/subdir"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:scaleType="centerInside"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_subdirectory_arrow"
|
||||
android:contentDescription="@null" />
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
android:id="@+id/stack"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:popupTheme="?actionBarPopupTheme"
|
||||
android:layout_marginStart="4dp"
|
||||
android:overlapAnchor="true" />
|
||||
|
||||
|
||||
@@ -220,17 +220,14 @@ class NavigationView {
|
||||
.inflate(R.layout.item_subdir, parent, false);
|
||||
}
|
||||
|
||||
final ImageView subdir = (ImageView) convertView.findViewById(R.id.subdir);
|
||||
final TextView title = (TextView) convertView.findViewById(android.R.id.title);
|
||||
final DocumentInfo doc = getItem(position);
|
||||
|
||||
if (position == 0) {
|
||||
final RootInfo root = mEnv.getCurrentRoot();
|
||||
title.setText(root.title);
|
||||
subdir.setVisibility(View.GONE);
|
||||
} else {
|
||||
title.setText(doc.displayName);
|
||||
subdir.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
return convertView;
|
||||
|
||||
Reference in New Issue
Block a user