Search in sources :

Example 1 with TTextView

use of com.mta.tehreer.widget.TTextView in project Tehreer-Android by mta452.

the class TextViewWidgetActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_text_view_widget);
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.setDisplayHomeAsUpEnabled(true);
    }
    final TTextView textView = findViewById(R.id.text_view);
    textView.setTypeface(TypefaceManager.getTypeface(R.id.typeface_noorehuda));
    textView.setGravity(Gravity.CENTER_HORIZONTAL);
    textView.setSpanned(parseSurah());
    textView.setLineHeightMultiplier(0.80f);
}
Also used : TTextView(com.mta.tehreer.widget.TTextView) ActionBar(androidx.appcompat.app.ActionBar)

Aggregations

ActionBar (androidx.appcompat.app.ActionBar)1 TTextView (com.mta.tehreer.widget.TTextView)1