am a13e40f4
: Merge "Add icon for Search Recents" into lmp-preview-dev
* commit 'a13e40f4ce6c9435ba4d014319c371bfa96f252e': Add icon for Search Recents
This commit is contained in:
BIN
res/drawable-hdpi/ic_search_history.png
Normal file
BIN
res/drawable-hdpi/ic_search_history.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 825 B |
BIN
res/drawable-mdpi/ic_search_history.png
Normal file
BIN
res/drawable-mdpi/ic_search_history.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 644 B |
BIN
res/drawable-xhdpi/ic_search_history.png
Normal file
BIN
res/drawable-xhdpi/ic_search_history.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 880 B |
BIN
res/drawable-xxhdpi/ic_search_history.png
Normal file
BIN
res/drawable-xxhdpi/ic_search_history.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xxxhdpi/ic_search_history.png
Normal file
BIN
res/drawable-xxxhdpi/ic_search_history.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
@@ -20,13 +20,39 @@
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/search_title_padding_start"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal" />
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1">
|
||||
|
||||
<TextView android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/search_title_padding_start"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:minWidth="@*android:dimen/preference_icon_minWidth"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="@dimen/search_suggestion_item_image_size"
|
||||
android:layout_height="@dimen/search_suggestion_item_image_size"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/ic_search_history"
|
||||
android:layout_marginStart="@dimen/search_suggestion_item_image_margin_start"
|
||||
android:layout_marginEnd="@dimen/search_suggestion_item_image_margin_end"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -136,4 +136,11 @@
|
||||
<dimen name="search_result_item_image_margin_start">16dp</dimen>
|
||||
<dimen name="search_result_item_image_margin_end">32dp</dimen>
|
||||
|
||||
<!-- Suggestion item image size -->
|
||||
<dimen name="search_suggestion_item_image_size">24dp</dimen>
|
||||
|
||||
<!-- Suggestion item image margin start / end -->
|
||||
<dimen name="search_suggestion_item_image_margin_start">32dp</dimen>
|
||||
<dimen name="search_suggestion_item_image_margin_end">16dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user