use of androidx.appcompat.app.ActionBar in project Tehreer-Android by mta452.
the class BidiAlgorithmActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bidi_algorithm);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
mBidiEditText = findViewById(R.id.bidi_edit_text);
mBidiEditText.setSelection(mBidiEditText.getText().length());
}
use of androidx.appcompat.app.ActionBar in project Tehreer-Android by mta452.
the class BidiInfoActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bidi_info);
Intent intent = getIntent();
mBidiText = String.valueOf(intent.getCharSequenceExtra(BIDI_TEXT));
mDensity = getResources().getDisplayMetrics().scaledDensity;
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
SpannableStringBuilder builder = new SpannableStringBuilder();
writeBidiText(builder);
TextView bidiTextView = findViewById(R.id.text_view_bidi);
bidiTextView.setMovementMethod(ScrollingMovementMethod.getInstance());
bidiTextView.setText(builder);
}
use of androidx.appcompat.app.ActionBar in project Tehreer-Android by mta452.
the class OpenSourceLicensesActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_open_source_licenses);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
WebView licensesView = findViewById(R.id.web_view_licenses);
licensesView.loadUrl("file:///android_asset/OpenSourceLicenses.html");
}
use of androidx.appcompat.app.ActionBar in project Tehreer-Android by mta452.
the class LabelWidgetActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_label_widget);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
String htmlString = getResources().getString(R.string.article_detail);
Spanned articleSpanned = Html.fromHtml(htmlString);
LinkableLabel articleLabel = findViewById(R.id.label_article);
articleLabel.setSpanned(articleSpanned);
}
use of androidx.appcompat.app.ActionBar 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);
}
Aggregations