本文整理汇总了Java中mehdi.sakout.aboutpage.AboutPage类的典型用法代码示例。如果您正苦于以下问题:Java AboutPage类的具体用法?Java AboutPage怎么用?Java AboutPage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AboutPage类属于mehdi.sakout.aboutpage包,在下文中一共展示了AboutPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
Themes.applyTheme(this);
super.onCreate(savedInstanceState);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.mipmap.ic_launcher)
.setDescription(getResources().getString(R.string.activity_about_developer_description))
.addWebsite("http://jamesdube.com")
.addTwitter("jamesddube")
.addInstagram("jamesddube")
.addEmail("[email protected]")
.addGitHub("jamesddube")
.create();
setContentView(aboutPage);
ActionBar actionBar = getSupportActionBar();
if(actionBar != null){
actionBar.setTitle("About");
}
}
示例2: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
Themes.applyTheme(this);
super.onCreate(savedInstanceState);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.mipmap.ic_launcher)
.setDescription(getResources().getString(R.string.activity_about_description))
.addGroup("Laravel News")
.addWebsite("http://laravel-news.com")
.addFacebook("laravelnews")
.addTwitter("laravelnews")
.addYoutube("UC_HmfSCvAl_JaqdwN5YSVsg")
.addInstagram("laravelnews")
.create();
setContentView(aboutPage);
ActionBar actionBar = getSupportActionBar();
if(actionBar != null){
actionBar.setTitle("About");
}
}
示例3: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
simulateDayNight(/* DAY */ 0);
final String appPackageName = getPackageName();
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.drawable.ic_image)
.setDescription("Энэхүү Аппликэйшн нь хүүхдийн төлөө үйл ажиллагаа" +
" явуулдаг төрийн болон төрийн бус байгууллагуудтай нэг дороос холбогдоход тусална.")
.addGroup("Холбоо барих")
.addEmail("[email protected]","И-мэйл хаяг")
.addWebsite("https://github.com/doljko/YellowBook","Веб хуудас")
.addFacebook("todaybots","Фэйсбүүк холбоос")
.addPlayStore(appPackageName,"Татаж авах")
.addGitHub("doljko","Нээлттэй эх")
.addItem(getCopyRightsElement())
.create();
setContentView(aboutPage);
}
示例4: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
simulateDayNight(3);
Element adsElement = new Element();
adsElement.setTitle("Advertise with us");
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.mipmap.ic_launcher)
.setDescription(getResources().getString(R.string.app_detail))
.addItem(new Element().setTitle("Version 1.0"))
.addItem(adsElement)
.addGroup(getResources().getString(R.string.contact))
.addEmail(getResources().getString(R.string.email_address))
.addWebsite(getResources().getString(R.string.website))
.addPlayStore("")
.addGitHub(getResources().getString(R.string.github))
.addItem(getCopyRightsElement())
.create();
setContentView(aboutPage);
this.setTitle("About");
}
示例5: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.mAppTheme);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
View aboutPage = new AboutPage(this)
.isRTL(true)
.setImage(R.drawable.about)
.setDescription("دیتاکسیوم: \nترک شبکههای اجتماعی به کمک بزرگان تاریخ")
.addWebsite("https://sadraa.me")
.addTwitter("01sadra")
.addGitHub("01sadra")
.addEmail("[email protected]")
.addItem(new Element().setTitle("Version 1.0.0"))
.create();
setContentView(aboutPage);
}
示例6: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.drawable.art)
.setDescription(getString(R.string.description))
.addItem(new Element().setTitle("Version 3.2.0"))
.addGroup("Connect with us")
.addEmail("[email protected]")
.addWebsite("http://inha.uz")
.addFacebook("abduaziz.kayumov")
.addYoutube("UCnQ3vq3LNsxrYGlGdziTrhA")
.addPlayStore("com.piapps.flashcard")
.addItem(getCopyRightsElement())
.create();
setContentView(aboutPage);
}
示例7: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.mipmap.ic_launcher)
.setDescription(getResources().getString(R.string.about_activity_description))
.addItem(new Element().setTitle("Version: " + BuildConfig.VERSION_NAME))
.addGroup(getResources().getString(R.string.about_activity_connect))
.addEmail("[email protected]")
.addTwitter("lukecasey94")
.addGitHub("luke-c/Ikue")
.addItem(getLicensesElement())
.addItem(getTermsOfUseElement())
.create();
setContentView(aboutPage);
}
示例8: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.mipmap.ic_launcher)
.setDescription("V " + getAppVersion() + "\n" +
"本软件只是对 GR Remote 网页做了缓存\n添加了自动连接相机WIFI的功能\n本软件不保留任何权利.\n网站版权归于: RICOH IMAGING Co., Ltd.")
.addGroup("联系我")
.addItem(addCustomWebsite("https://github.com/BorntoGO/GR-Remote-Package", "项目地址", mehdi.sakout.aboutpage.R.drawable.about_icon_github, true))
// .addEmail("[email protected]")
.addItem(addCustomEmail("[email protected]"))
// .addItem(addCustomWebsite("http://borntogo.github.io/", "部落格", 0, false))
.addItem(addCustomWebsite("http://steamcommunity.com/profiles/76561198040853930", "来啊,互相伤害啊!", R.drawable.steam, true))
.create();
setContentView(aboutPage);
}
示例9: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getSupportActionBar() != null) {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowTitleEnabled(true);
getSupportActionBar().setElevation(0);
}
setTitle(R.string.action_about);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setDescription(getString(R.string.contacts_description))
.setImage(R.drawable.ic_phone_contacts)
.addItem(new Element().setTitle(getString(R.string.about_version, getVersionName())))
.addEmail("[email protected]")
.addGitHub("xingstarx")
.addItem(getUpadateElement())
.addItem(getCopyRightsElement())
.create();
setContentView(aboutPage);
}
示例10: initView
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void initView() {
ActionBar mActionBar = getSupportActionBar();
mActionBar.setTitle("关于杂图集");
mActionBar.setDisplayHomeAsUpEnabled(true);
LinearLayout mContainer = (LinearLayout) findViewById(R.id.ll_container_about);
View about = new AboutPage(this)
.isRTL(false)
.setDescription(getDescribe())
.setImage(R.drawable.front_default)
.addItem(getVersion())
.addEmail("[email protected]")
.addItem(getCopyRight())
.create();
mContainer.addView(about);
}
示例11: onCreateView
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@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();
}
示例12: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Element versionElement = new Element();
versionElement.setTitle("Version 0.0.1");
Element contributr = new Element();
contributr.setTitle("Contribute to Chow");
String url = "https://github.com/othreecodes/WaJeun";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
contributr.setIntent(i);
View aboutPage = new AboutPage(this)
.isRTL(false)
.setDescription("Chow is the android application that meets all your food needs. Find where to eat on campus," +
" find who to join food with and so much more.")
.setCustomFont("fonts/drugs.otf")
.setImage(R.drawable.chowtrans)
.addGroup("About the developer")
.addEmail("[email protected]")
.addWebsite("http://about.me/obiuchennadavid")
.addFacebook("obiuchennadavid")
.addTwitter("obi_is_a_boi")
.addGitHub("othreecodes")
.addInstagram("theboynamedme")
.addItem(versionElement)
.addItem(contributr)
.create();
setContentView(aboutPage);
}
示例13: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
Element versionElement = new Element();
versionElement.setTitle("Version 1.0");
Element devElement = new Element();
devElement.setGravity(Gravity.CENTER);
devElement.setColor(Color.DKGRAY);
devElement.setTitle(this.getString(R.string.developedBy));
try {
// PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
// String version = pInfo.versionName;
String version= BuildConfig.VERSION_NAME;
versionElement.setTitle("Version "+version);
}catch (Exception e){}
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.drawable.main_icon)
.setDescription(getResources().getString(R.string.description))
.addItem(versionElement)
.addGroup("Connect with us")
.addEmail(getResources().getString(R.string.email))
.addFacebook(getResources().getString(R.string.facebookId))
.addPlayStore(this.getPackageName())
.addItem(getCopyRightsElement())
.addItem(devElement)
.create();
this.setContentView(aboutPage);
}
示例14: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_about);
Element versionElement = new Element();
versionElement.setTitle("Version 1.0");
Element devElement = new Element();
devElement.setGravity(Gravity.CENTER);
//devElement.setColor(Color.DKGRAY);
devElement.setTitle(this.getString(R.string.developedBy));
try {
String version = BuildConfig.VERSION_NAME;
versionElement.setTitle("Version " + version);
} catch (Exception e) {
}
View aboutPage = new AboutPage(this)
.isRTL(false)
.setImage(R.drawable.icon)
.setDescription(getResources().getString(R.string.description))
.addItem(versionElement)
.addGroup("Connect with us")
.addEmail(getResources().getString(R.string.email))
.addFacebook(getResources().getString(R.string.facebookId))
.addPlayStore(this.getPackageName())
.addItem(getCopyRightsElement())
.addItem(devElement)
.create();
this.setContentView(aboutPage);
}
示例15: onCreate
import mehdi.sakout.aboutpage.AboutPage; //导入依赖的package包/类
@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("[email protected]")
.addWebsite("http://bobsun.website/")
.addGitHub("SpongeBobSun")
.addItem(i8Element)
.addGroup("About the name")
.addGroup("Blowfish Puffs!")
.create();
setContentView(aboutPage);
}