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));
}
Aggregations