Search in sources :

Example 1 with AboutBinding

use of ee.ioc.phon.android.speak.databinding.AboutBinding in project K6nele by Kaljurand.

the class AboutActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AboutBinding binding = AboutBinding.inflate(getLayoutInflater());
    setContentView(binding.getRoot());
    ActionBar ab = getSupportActionBar();
    if (ab != null) {
        ab.setTitle(R.string.labelApp);
        ab.setSubtitle("v" + Utils.getVersionName(this));
    }
    binding.tvAbout.setMovementMethod(LinkMovementMethod.getInstance());
    String about = String.format(getString(R.string.tvAbout), getString(R.string.labelApp), PreferenceUtils.getUniqueId(PreferenceManager.getDefaultSharedPreferences(this)));
    binding.tvAbout.setText(Html.fromHtml(about));
}
Also used : AboutBinding(ee.ioc.phon.android.speak.databinding.AboutBinding) ActionBar(androidx.appcompat.app.ActionBar)

Aggregations

ActionBar (androidx.appcompat.app.ActionBar)1 AboutBinding (ee.ioc.phon.android.speak.databinding.AboutBinding)1