Update Search results layout
See bug: #13140648 Settings needs to support the new Quantum Paper theme Change-Id: If3174fee563ef204eb939576e4c7ef4d986735e3
This commit is contained in:
@@ -17,7 +17,10 @@
|
|||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/dashboard"
|
android:id="@+id/dashboard"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:paddingStart="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:paddingEnd="@*android:dimen/preference_fragment_padding_side"
|
||||||
|
android:background="@color/dashboard_background_color">
|
||||||
|
|
||||||
<LinearLayout android:layout_width="match_parent"
|
<LinearLayout android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
@@ -31,23 +34,19 @@
|
|||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView android:layout_width="wrap_content"
|
<TextView android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/dashboard_category_title_height"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:fadingEdge="horizontal"
|
android:gravity="center_vertical"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:text="@string/search_recents_queries_label"/>
|
android:textAlignment="viewStart"
|
||||||
|
android:text="@string/search_recents_queries_label"
|
||||||
|
/>
|
||||||
|
|
||||||
<ListView android:id="@+id/list_suggestions"
|
<ListView android:id="@+id/list_suggestions"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent"
|
||||||
|
/>
|
||||||
<ImageView android:src="?android:attr/dividerHorizontal"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:scaleType="fitXY"
|
|
||||||
android:paddingBottom="2dp"
|
|
||||||
android:paddingTop="2dp" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -56,15 +55,17 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_weight="1" >
|
android:layout_weight="1">
|
||||||
|
|
||||||
<TextView android:layout_width="wrap_content"
|
<TextView android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/dashboard_category_title_height"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:fadingEdge="horizontal"
|
android:gravity="center_vertical"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:text="@string/search_results_label"/>
|
android:textAlignment="viewStart"
|
||||||
|
android:text="@string/search_results_label"
|
||||||
|
/>
|
||||||
|
|
||||||
<ListView android:id="@+id/list_results"
|
<ListView android:id="@+id/list_results"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@@ -22,41 +22,14 @@
|
|||||||
android:paddingStart="@*android:dimen/preference_item_padding_side"
|
android:paddingStart="@*android:dimen/preference_item_padding_side"
|
||||||
android:paddingEnd="?android:attr/scrollbarSize">
|
android:paddingEnd="?android:attr/scrollbarSize">
|
||||||
|
|
||||||
<LinearLayout
|
<TextView android:id="@+id/title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:paddingStart="@*android:dimen/preference_item_padding_inner"
|
||||||
android:minWidth="@*android:dimen/preference_icon_minWidth"
|
android:paddingEnd="@*android:dimen/preference_item_padding_inner"
|
||||||
android:orientation="horizontal">
|
android:singleLine="true"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
<ImageView
|
android:ellipsize="marquee"
|
||||||
android:id="@+id/icon"
|
android:fadingEdge="horizontal" />
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:minWidth="48dp"
|
|
||||||
android:scaleType="centerInside"
|
|
||||||
android:layout_marginEnd="@*android:dimen/preference_item_padding_inner"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:paddingEnd="@*android:dimen/preference_item_padding_inner"
|
|
||||||
android:paddingTop="6dip"
|
|
||||||
android:paddingBottom="6dip">
|
|
||||||
|
|
||||||
<TextView android:id="@+id/title"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:fadingEdge="horizontal" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@@ -448,6 +448,8 @@ public class SearchResultsSummary extends Fragment {
|
|||||||
SuggestionItem item = (SuggestionItem) getItem(position);
|
SuggestionItem item = (SuggestionItem) getItem(position);
|
||||||
query.setText(item.query);
|
query.setText(item.query);
|
||||||
|
|
||||||
|
view.setBackgroundResource(R.drawable.dashboard_tile_background);
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -621,6 +623,8 @@ public class SearchResultsSummary extends Fragment {
|
|||||||
imageView.setBackgroundResource(R.drawable.empty_icon);
|
imageView.setBackgroundResource(R.drawable.empty_icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
view.setBackgroundResource(R.drawable.dashboard_tile_background);
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user