Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

EffectHub.com: Your Best Source for Gaming
Login    or

Android:Change the view font by code

import android.app.Activity;  import android.graphics.Typeface;  import android.view.View;  import android.view.ViewGroup;  import android.widget.Button;  import android.widget.EditText;  import android.widget.TextView;   public class FontManager {          public static void changeFonts(ViewGroup root, Activity act) {             Typeface tf = Typeface.createFromAsset(act.getAssets(),                "fonts/xxx.ttf");             for (int i = 0; i < root.getChildCount(); i++) {             View v = root.getChildAt(i);             if (v instanceof TextView) {                ((TextView) v).setTypeface(tf);             } else if (v instanceof Button) {                ((Button) v).setTypeface(tf);             } else if (v instanceof EditText) {                ((EditText) v).setTypeface(tf);             } else if (v instanceof ViewGroup) {                changeFonts((ViewGroup) v, act);             }         }          }  }


...

You must Sign up as a member of Effecthub to view the content.

2188 views    0 comments

You must Sign up as a member of Effecthub to join the conversation.

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 21

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 85