Merge pull request #361 from nitehu/fix/search_artist

Fixed artist items in search
This commit is contained in:
Nite 2020-12-07 17:21:38 +01:00 committed by GitHub
commit 41f9b4ad73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -81,9 +81,8 @@ public class ArtistAdapter extends ArrayAdapter<Artist> implements SectionIndexe
) {
View rowView = convertView;
if (rowView == null) {
rowView = layoutInflater.inflate(R.layout.artist_list_item, parent, false);
rowView = layoutInflater.inflate(R.layout.artist_search_list_item, parent, false);
}
((TextView) rowView).setText(getItem(position).getName());
return rowView;

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@android:id/text1"
a:drawablePadding="6dip"
a:layout_width="fill_parent"
a:layout_height="wrap_content"
a:textAppearance="?android:attr/textAppearanceMedium"
a:gravity="center_vertical"
a:paddingLeft="3dip"
a:paddingRight="3dip"
a:minHeight="50dip"/>