@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); simulateDayNight(/* DAY */ 0); Element adsElement = new Element(); adsElement.setTitle("Advertise with us"); View aboutPage = new AboutPage(this) .isRTL(false) .setImage(R.drawable.dummy_image) .addItem(new Element().setTitle("Version 6.2")) .addItem(adsElement) .addGroup("Connect with us") .addEmail("elmehdi.sakout@gmail.com") .addWebsite("http://medyo.github.io/") .addFacebook("the.medy") .addTwitter("medyo80") .addYoutube("UCdPQtdWIsg7_pi4mrRu46vA") .addPlayStore("com.ideashower.readitlater.pro") .addInstagram("medyo80") .addGitHub("medyo") .addItem(getCopyRightsElement()) .create(); setContentView(aboutPage); }
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_about_us, container, false); simulateDayNight(0); ButterKnife.bind(this, view); View aboutPage = new AboutPage(getActivity()) .isRTL(false) .setImage(R.drawable.logo200x200) .setDescription(getString(R.string.about_us_description)) .addGroup("Connect with us") .addEmail("pslab-fossasia@googlegroups.com") .addWebsite("http://pslab.fossasia.org/") .addGitHub("fossasia?utf8=✓&q=pslab") .addFacebook("pslabapp") .addTwitter("pslabapp") .addYoutube("UCQprMsG-raCIMlBudm20iLQ") .create(); appBarLayout.addView(aboutPage, -1); return view; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); setTitle("About"); AppBarLayout appBarLayout; appBarLayout = findViewById(R.id.appBarAnim); View aboutPage = new AboutPage(this) .isRTL(false) .setImage(R.mipmap.ic_launcher) .setDescription(getString(R.string.about_us_description)) .addGroup("Find out More") .addEmail("pepperfriday1010@gmail.com") .addGitHub("UdacityAndroidBasicsScholarship/wmn-safety") .create(); appBarLayout.addView(aboutPage,-1); }
isRTL(false). setImage(R.drawable.web_hi_res_512). addWebsite("https://github.com/zoff99/ToxAndroidRefImpl/blob/zoff99/dev003/README.md");
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Element i8Element = new Element("icons8", "Icons from icons8.com",mehdi.sakout.aboutpage.R.drawable.about_icon_link); i8Element.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse("https://icons8.com")); startActivity(i); } }); View aboutPage = new AboutPage(this) .isRTL(false) .setImage(R.drawable.ic_puff) .setDescription(getString(R.string.about_puff)) .addGroup("Connect with us") .addEmail("bob.sun@outlook.ie") .addWebsite("http://bobsun.website/") .addGitHub("SpongeBobSun") .addItem(i8Element) .addGroup("About the name") .addGroup("Blowfish Puffs!") .create(); setContentView(aboutPage); }