use of mehdi.sakout.aboutpage.Element in project MyNewCC98 by 6769.
the class AboutActivity method getVersionRow.
private Element getVersionRow() {
Element version = new Element();
version.setTitle(AppInfo.getPackageVersionName(this));
return version;
}
use of mehdi.sakout.aboutpage.Element in project guanggoo-android by mzlogin.
the class AboutFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
Element checkUpdateElement = new Element();
checkUpdateElement.setTitle(getString(R.string.check_updates)).setIconDrawable(R.drawable.ic_update).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Beta.checkUpgrade(true, false);
}
});
return new AboutPage(getActivity()).isRTL(false).setImage(R.drawable.guanggoo_new).setDescription(getString(R.string.app_description, VersionUtil.getVersion(getContext()))).addWebsite(getString(R.string.issue_address), getString(R.string.feedback)).addItem(checkUpdateElement).addGitHub(getString(R.string.source_code_address), getString(R.string.source_code)).addGroup(getString(R.string.contact_me)).addEmail(getString(R.string.author_email), getString(R.string.author_email)).addWebsite(getString(R.string.author_website), getString(R.string.author_website)).addGitHub(getString(R.string.author_github), getString(R.string.follow_github)).create();
}
Aggregations