Back to project page ho.la.urv.
The source code is released under:
MIT License
If you think the Android project ho.la.urv listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package eu.robertboloc.holaurv.activities; //from w ww . j av a2 s . c om import android.app.Activity; import android.graphics.Color; import android.graphics.Typeface; import android.text.Spannable; import android.text.SpannableString; import android.text.style.ForegroundColorSpan; import android.widget.TextView; import com.google.analytics.tracking.android.EasyTracker; import com.googlecode.androidannotations.annotations.AfterViews; import com.googlecode.androidannotations.annotations.EActivity; import com.googlecode.androidannotations.annotations.ViewById; import eu.robertboloc.holaurv.R; @EActivity(R.layout.activity_about) public class AboutActivity extends Activity { @ViewById(R.id.aboutBrand) TextView mAboutBrand; @AfterViews void styleBrand() { // Set brand text Spannable wordToSpan = new SpannableString(getText(R.string.brand)); wordToSpan.setSpan(new ForegroundColorSpan(Color.BLACK), 3, 6, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); mAboutBrand.setText(wordToSpan); // Set brand font mAboutBrand.setTypeface(Typeface.createFromAsset(getAssets(), "Exo-ExtraBold.ttf")); } @Override public void onStart() { super.onStart(); EasyTracker.getInstance(this).activityStart(this); } @Override public void onStop() { super.onStop(); EasyTracker.getInstance(this).activityStop(this); } }