mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 20:00:50 +00:00
Refactor Code
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package com.capstone.foodify;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.AssetManager;
|
||||
import android.graphics.Typeface;
|
||||
|
||||
import com.capstone.foodify.Model.Basket.Basket;
|
||||
|
||||
import java.text.NumberFormat;
|
||||
@@ -15,4 +19,12 @@ public class Common {
|
||||
NumberFormat fmt = NumberFormat.getCurrencyInstance(locale);
|
||||
return fmt.format(price);
|
||||
}
|
||||
|
||||
public static Typeface setFontBebas(AssetManager assetManager){
|
||||
return Typeface.createFromAsset(assetManager, "font/bebas.ttf");
|
||||
}
|
||||
|
||||
public static Typeface setFontOpenSans(AssetManager assetManager){
|
||||
return Typeface.createFromAsset(assetManager, "font/opensans.ttf");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user