Search in sources :

Example 11 with Element

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;
}
Also used : Element(mehdi.sakout.aboutpage.Element)

Example 12 with Element

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();
}
Also used : Element(mehdi.sakout.aboutpage.Element) AboutPage(mehdi.sakout.aboutpage.AboutPage) View(android.view.View) Nullable(android.support.annotation.Nullable)

Aggregations

Element (mehdi.sakout.aboutpage.Element)12 View (android.view.View)5 ClipboardManager (android.content.ClipboardManager)2 AboutPage (mehdi.sakout.aboutpage.AboutPage)2 PackageInfo (android.content.pm.PackageInfo)1 PackageManager (android.content.pm.PackageManager)1 Nullable (android.support.annotation.Nullable)1 AlertDialog (android.support.v7.app.AlertDialog)1