当前位置: 首页>>代码示例>>Java>>正文


Java AboutView类代码示例

本文整理汇总了Java中com.vansuita.materialabout.views.AboutView的典型用法代码示例。如果您正苦于以下问题:Java AboutView类的具体用法?Java AboutView怎么用?Java AboutView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AboutView类属于com.vansuita.materialabout.views包,在下文中一共展示了AboutView类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.vansuita.materialabout.views.AboutView; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    StatusBarCompat.setColor(AboutActivity.this, Color.parseColor("#404040"));
    FrameLayout container = (FrameLayout) findViewById(R.id.about_container);

    AboutView view = AboutBuilder.with(this)
                                 .setPhoto(R.drawable.hanschen)
                                 .setCover(R.mipmap.profile_cover)
                                 .setName("HansChen")
                                 .setBrief("博观而约取,厚积而薄发")
                                 .setLinksColumnsCount(4)
                                 .addGitHubLink("shensky711")
                                 .addWebsiteLink("http://blog.hanschen.site/")
                                 .addSkypeLink("+8613825633225")
                                 .addGoogleLink("shensky711")
                                 .addEmailLink("[email protected]")
                                 .addGooglePlusLink("114746819615461693138")
                                 .addLinkedInLink("航-陈-a7843b118")
                                 .addAndroidLink("shensky711")
                                 .setAppIcon(R.mipmap.ic_launcher)
                                 .setAppName(AppUtils.getAppName(AboutActivity.this) + "    ")
                                 .addFiveStarsAction()
                                 .addShareAction(R.string.app_name)
                                 .addFeedbackAction("[email protected]")
                                 .addHelpAction((Intent) null)
                                 .addChangeLogAction((Intent) null)
                                 .setActionsColumnsCount(3)
                                 .setLinksAnimated(true)
                                 .setBackgroundColor(R.color.dark_content_background)
                                 .setDividerDashGap(12)
                                 .setAppTitle(String.format("版本 %s", AppUtils.getVersionName(AboutActivity.this)))
                                 .setWrapScrollView(true)
                                 .setShowAsCard(true)
                                 .build();
    container.addView(view);
}
 
开发者ID:shensky711,项目名称:Run-With-You,代码行数:39,代码来源:AboutActivity.java

示例2: loadAbout

import com.vansuita.materialabout.views.AboutView; //导入依赖的package包/类
public void loadAbout() {
    final FrameLayout flHolder = activity.findViewById(R.id.about);

    AboutBuilder builder = AboutBuilder.with(activity)
            .setAppIcon(R.mipmap.ic_launcher)
            .setAppName(R.string.app_name)
            .setPhoto(R.mipmap.profile_picture)
            .setCover(R.mipmap.profile_cover)
            .setLinksAnimated(true)
            .setDividerDashGap(13)
            .setName("Your Full Name")
            .setSubTitle("Mobile Developer")
            .setLinksColumnsCount(4)
            .setBrief("I'm warmed of mobile technologies. Ideas maker, curious and nature lover.")
            .addGooglePlayStoreLink("8002078663318221363")
            .addGitHubLink("jrvansuita")
            .addBitbucketLink("jrvansuita")
            .addFacebookLink("user")
            .addTwitterLink("user")
            .addInstagramLink("jnrvans")
            .addGooglePlusLink("+JuniorVansuita")
            .addYoutubeChannelLink("CaseyNeistat")
            .addDribbbleLink("user")
            .addLinkedInLink("arleu-cezar-vansuita-júnior-83769271")
            .addEmailLink("[email protected]")
            .addWhatsappLink("Jr", "+554799650629")
            .addSkypeLink("user")
            .addGoogleLink("user")
            .addAndroidLink("user")
            .addWebsiteLink("site")
            .addFiveStarsAction()
            .addMoreFromMeAction("Vansuita")
            .setVersionNameAsAppSubTitle()
            .addShareAction(R.string.app_name)
            .addUpdateAction()
            .setActionsColumnsCount(2)
            .addFeedbackAction("[email protected]")
            .addPrivacyPolicyAction("http://www.docracy.com/2d0kis6uc2")
            .addIntroduceAction((Intent) null)
            .addHelpAction((Intent) null)
            .addChangeLogAction((Intent) null)
            .addRemoveAdsAction((Intent) null)
            .addDonateAction((Intent) null)
            .setWrapScrollView(true)
            .setShowAsCard(true);

    AboutView view = builder.build();

    flHolder.addView(view);
}
 
开发者ID:jrvansuita,项目名称:MaterialAbout,代码行数:51,代码来源:SampleHelper.java

示例3: build

import com.vansuita.materialabout.views.AboutView; //导入依赖的package包/类
public AboutView build() {
    AboutView aboutView = new AboutView(context);
    aboutView.build(this);
    return aboutView;
}
 
开发者ID:jrvansuita,项目名称:MaterialAbout,代码行数:6,代码来源:AboutBuilder.java


注:本文中的com.vansuita.materialabout.views.AboutView类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。