A nice about page based on MultiType, material design and very easy to use.
From the PureWriter App:
In your build.gradle:
This library has been rebuilt based on AndroidX. If you are still using the android support library, please use version about:2.1.1 and multitype:3.4.4.
In addition, since 2.3.0 we have migrated to build with MultiType 4.0.0. If you don't want to use MultiType 4.0.0, you can use the last stable version multitype:3.5.0(me.drakeet.multitype:multitype:3.5.0) & about:2.2.0(me.drakeet.support:about:2.2.0).
dependencies {
implementation 'com.drakeet.about:about:2.5.2'
implementation 'com.drakeet.multitype:multitype:4.3.0'// optional: for using the PicassoImageLoader// implementation 'com.squareup.picasso:picasso:2.71828'// optional: for using the GlideImageLoader// implementation 'com.github.bumptech.glide:glide:4.9.0'
}publicclassAboutActivityextendsAbsAboutActivity {
@OverrideprotectedvoidonCreateHeader(@NonNullImageViewicon, @NonNullTextViewslogan, @NonNullTextViewversion) {
icon.setImageResource(R.mipmap.ic_launcher);
slogan.setText("About Page By drakeet");
version.setText("v" + BuildConfig.VERSION_NAME);
}
@OverrideprotectedvoidonItemsCreated(@NonNullList<Object> items) {
items.add(newCategory("介绍与帮助"));
items.add(newCard(getString(R.string.card_content)));
items.add(newCategory("Developers"));
items.add(newContributor(R.drawable.avatar_drakeet, "drakeet", "Developer & designer", "http://weibo.com/drak11t"));
items.add(newContributor(R.drawable.avatar_drakeet, "黑猫酱", "Developer", "https://drakeet.me"));
items.add(newContributor(R.drawable.avatar_drakeet, "小艾大人", "Developer"));
items.add(newCategory("Open Source Licenses"));
items.add(newLicense("MultiType", "drakeet", License.APACHE_2, "https://github.com/drakeet/MultiType"));
items.add(newLicense("about-page", "drakeet", License.APACHE_2, "https://github.com/drakeet/about-page"));
}
}<stylename="AppTheme.About"parent="Theme.AppCompat.DayNight.NoActionBar">
<itemname="colorPrimary">@color/colorPrimary</item>
<itemname="colorPrimaryDark">@color/colorPrimaryDark</item>
<itemname="colorAccent">@android:color/black</item>
<!--optional-->
<itemname="aboutPageHeaderBackground">reference|color</item>
<itemname="aboutPageHeaderContentScrim">reference|color</item>
<itemname="aboutPageHeaderTextColor">color</item>
<itemname="aboutPageNavigationIcon">reference</item>
</style>Copyright (c) 2016-present. Drakeet Xu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


