Tag Archives: font

6,027 views

Font Family change on View dynamically Android Example

TypeFace, setTypeface, font, font family, array of String, Button create dynamically @Override protected void onStart() { LinearLayout.LayoutParams p = new LinearLayout.LayoutParams( 48, 55 ); Typeface typeFace = Typeface.MONOSPACE; String [] ar = {"A","B","C","D","E","F","G","H","J","K"}; for (int i = 0; i < … Continue reading

Posted in Android Examples Code | Tagged , , , | Comments Off on Font Family change on View dynamically Android Example
3,570 views

Set Custom Font to View Android Example

You have to put your font fonts/samplefont.ttf into assets/fonts folder in your project! // set own custom font from assets TextView txt = (TextView) findViewById(R.id.custom_font); Typeface mFace = Typeface.createFromAsset(getContext().getAssets(), "fonts/samplefont.ttf"); txt.setTypeface(mFace);

Posted in Android Examples Code | Tagged , | Comments Off on Set Custom Font to View Android Example
9,022 views

How setup color coloring syntax code highlight highlighting in Eclipse editor Android example

How setup color coloring highlight highlighting syntax font size and family in Eclipse Java and XML editor Android example Java editor Go to Eclipse menu Window -> Preferences Doubleclick on Java Double click on Editor Select Java, Javadocs or Comments … Continue reading

Posted in Android Examples Code, Eclipse | Tagged , , , , , , , | Comments Off on How setup color coloring syntax code highlight highlighting in Eclipse editor Android example