Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Commit

Permalink
AboutActivity : Animate LibsActvity to mask delay
Browse files Browse the repository at this point in the history
LibsBuilder's activity takes about a second to two to cache and display
the items. Force an animation to improve UX
  • Loading branch information
msfjarvis authored and out386 committed Jan 15, 2017
1 parent 8afca29 commit 1670683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dependencies {

// ui
compile 'com.baoyz.pullrefreshlayout:library:1.2.0'
compile('com.mikepenz:materialdrawer:5.7.0@aar') {
compile('com.mikepenz:materialdrawer:5.8.1@aar') {
transitive = true
}
compile('com.mikepenz:fastadapter:2.1.5@aar') {
Expand Down Expand Up @@ -121,5 +121,6 @@ dependencies {
transitive = true
}
compile 'com.github.daniel-stoneuk:material-about-library:1.1.1'
compile 'com.mikepenz:itemanimators:0.5.0@aar'
}

3 changes: 3 additions & 0 deletions app/src/main/java/browser/afh/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import com.danielstone.materialaboutlibrary.model.MaterialAboutList;
import com.danielstone.materialaboutlibrary.model.MaterialAboutTitleItem;
import com.mikepenz.aboutlibraries.Libs;
import com.mikepenz.aboutlibraries.LibsConfiguration;
import com.mikepenz.aboutlibraries.LibsBuilder;
import com.mikepenz.itemanimators.SlideDownAlphaAnimator;

import browser.afh.BuildConfig;
import browser.afh.R;
Expand Down Expand Up @@ -39,6 +41,7 @@ protected MaterialAboutList getMaterialAboutList() {
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
@Override
public void onClick() {
LibsConfiguration.getInstance().setItemAnimator(new SlideDownAlphaAnimator());
new LibsBuilder()
.withFields(R.string.class.getFields())
.withActivityTitle(getString(R.string.app_name))
Expand Down

0 comments on commit 1670683

Please sign in to comment.