您当前的位置: 首页 > 

about-page

发布时间:2016-10-28 09:18:24 ,浏览量:0

about-page
项目地址: drakeet/about-page
简介:A nice about page based on MultiType, material design and easy to use.

License maven-central

A nice about page based on MultiType, material design and easy to use.

From the PureMosaic App:

Get it on Google Play

Getting started

In your build.gradle:

dependencies {
    compile 'me.drakeet.support:about:0.9.9'
    compile 'me.drakeet.multitype:multitype:2.2.0-beta1'
}
Usage
public class MainActivity extends AboutActivity {

    @SuppressLint("SetTextI18n") @Override
    protected void onCreateHeader(ImageView icon, TextView slogan, TextView version) {
        icon.setImageResource(R.mipmap.ic_launcher);
        slogan.setText("About Page By drakeet");
        version.setText("v" + BuildConfig.VERSION_NAME);
    }

    @Override protected void onItemsCreated(@NonNull Items items) {
        items.add(new Category("介绍与帮助"));
        items.add(new Card(getString(R.string.card_content), "分享"));

        items.add(new Line());

        items.add(new Category("Developers"));
        items.add(new Contributor(R.drawable.avatar_drakeet, "drakeet", "Developer & designer"));
        items.add(new Contributor(R.drawable.avatar_drakeet, "小艾大人", "Developer"));

        items.add(new Line());

        items.add(new Category("Open Source Licenses"));
        items.add(new License("MultiType", "drakeet", License.APACHE_2,
            "https://github.com/drakeet/MultiType"));
        items.add(new License("about-page", "drakeet", License.APACHE_2,
            "https://github.com/drakeet/about-page"));
    }

    @Override protected void onActionClick(View action) {
        ...
    }
}
TODO
  • Add a inner activity and builder for convenience

  

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    111043博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0785s