Back to project page myAndroidApps.
The source code is released under:
This is my first GitHub try. Be gentle :)
If you think the Android project myAndroidApps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * @author Gidy Basin//from w ww .j a v a2 s . co m */ package gidy.carpark.utils; import android.app.Activity; import android.graphics.Typeface; import android.widget.Button; import android.widget.TextView; public class CommonUtils { public static void initHebrewText(Activity activity, TextView textView){ Typeface whereParkedTypeface = Typeface.createFromAsset(activity.getAssets(), "fonts/heb_font.ttf"); textView.setTypeface(whereParkedTypeface,Typeface.BOLD); textView.setTextSize(30); } public static void initHebrewText(Activity activity, Button button){ Typeface whereParkedTypeface = Typeface.createFromAsset(activity.getAssets(), "fonts/heb_font.ttf"); button.setTypeface(whereParkedTypeface,Typeface.BOLD); button.setTextSize(30); } }