External Fonts
You can add your favorite fonts using this code
Syntax:
Typeface typeface_name = Typeface.createFromAsset(getAssets(), "path");
obj_name.setTypeface(typeface_name);
obj_name.setTextSize(text_size);
obj_name.setText("Your Text");
Example:
Typeface font0 = Typeface.createFromAsset(getAssets(), "fonts/GOTHIC.TTF");
TextView txtMessage = (TextView) findViewById(R.id.txtMessage);
txtMessage.setTypeface(font0);
txtMessage.setTextSize(50.f);
txtMessage.setText("hello android");
From where you fetch the Font file?
Understand this screen-shot
You can add your favorite fonts using this code
Syntax:
Typeface typeface_name = Typeface.createFromAsset(getAssets(), "path");
obj_name.setTypeface(typeface_name);
obj_name.setTextSize(text_size);
obj_name.setText("Your Text");
Example:
Typeface font0 = Typeface.createFromAsset(getAssets(), "fonts/GOTHIC.TTF");
TextView txtMessage = (TextView) findViewById(R.id.txtMessage);
txtMessage.setTypeface(font0);
txtMessage.setTextSize(50.f);
txtMessage.setText("hello android");
From where you fetch the Font file?
Understand this screen-shot
Animation List
- Bink
- Bounce
- Cross Fade
- Fade In
- Fade Out
- Move
- Rotate
- Sequential Animation
- Slide Down
- Slide Up
- Zoom In
- Zoom Out
- Together Animation
Download
No comments:
Post a Comment