當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。