mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-10 18:55:03 +00:00
Fix for long titles on search results
This commit is contained in:
@@ -57,7 +57,11 @@ public class SearchResultsListAdapter extends BaseAdapter {
|
||||
Product product = productList.get(position);
|
||||
// TODO: If image url is broken, display @drawable/ic_baseline_broken_image_600.xml
|
||||
Glide.with(activity).load(product.getImageUrl()).into(productImage);
|
||||
if (product.getItemName().length() >= 35) {
|
||||
itemName.setText(product.getItemName().substring(0, 35) + "...");
|
||||
} else {
|
||||
itemName.setText(product.getItemName());
|
||||
}
|
||||
price.setText(String.format("$%.2f", product.getPrice()));
|
||||
itemStore.setText(product.getChainName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user