mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-14 12:27:38 -04:00
Initial edit UI changes
This commit is contained in:
17
app/src/main/java/protect/card_locker/Utils.java
Normal file
17
app/src/main/java/protect/card_locker/Utils.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package protect.card_locker;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class Utils {
|
||||
static public LetterBitmap generateIcon(Context context, String store, Integer backgroundColor, Integer textColor) {
|
||||
if (store.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
int tileLetterFontSize = context.getResources().getDimensionPixelSize(R.dimen.tileLetterFontSize);
|
||||
int pixelSize = context.getResources().getDimensionPixelSize(R.dimen.cardThumbnailSize);
|
||||
|
||||
return new LetterBitmap(context, store, store,
|
||||
tileLetterFontSize, pixelSize, pixelSize, backgroundColor, textColor);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user