mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 18:48:48 +00:00
Fix for long titles on search results
This commit is contained in:
parent
b498220d9f
commit
b951983112
@ -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);
|
||||
itemName.setText(product.getItemName());
|
||||
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());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user