Coder Social home page Coder Social logo

notboringactionbar's People

Contributors

carlonzo avatar flavienlaurent avatar kisty avatar slidese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notboringactionbar's Issues

Support for more than 2 image swaps

Hi,

As for now the library can swap 2 images. I wanna add support for more than 2 images because I wanna show lots of images.
I tried adding it myself but then too it shows only 2 images from the list of tons of images. I guess this is due to array of image views

Appcompat + NineOldAndroids

Hi, I was able to migrate this lib to appcompat and use nineoldandroids to make the needed changes in the scale/transalations animanations, could you add support to it in the original project?

I could open a pull request, but I use eclipse and my code formatting is very different from yours. Anyway, checkout my NotBoringActionBar fork is you want to see what I did.
Thanks for this great work!

Question: ViewPager Implementation

Is viewpager implementation going to be implemented, so that it will be a closer mockup to the current NewsStand? Or leaving it into one activity is preferred so that PR related to viewpager implementation won't be entertained?

Tiny bug + How to set the header images to scroll using "parallex" effect?

I would like to ask how should I make the images on the header to scroll together with the listView, so that both the bottom and the top of the view will get truncated, and not just the top (as the normal scrolling does).

for example, if the image is:
11
22
33
44
55
then when you scroll, I'd like to get:
22
33
44
instead of:
33
44
55

I've tried to use ParallaxImageView instead of simple ImageViews , but it didn't help.

Also, I've found a tiny bug: you've created a function called "clamp" but its parameters don't match the operations being done there. the minimal value is 1 instead of 0, and the maximal value is 0 instead of 1 :
code before:

public static float clamp(float value, float max, float min) {
    return Math.max(Math.min(value, min), max);
    }

code that should be:
public static float clamp(final float value, final float min, final float max) {
return Math.min(Math.max(value, min), max);
}

I've also changed the order of the parameter, since it's more common to put the min value before the max value.

Issue with kenBurnsView when running on Kitkat devices

I took only the kenBurnsView from this project and i implemented it in mine, I this logcat when running it on kitkat devices (on other devices it work perfectly):

 D/KenBurnsView? swapImage active=-1
 D/KenBurnsView? starting Ken Burns animation android.view.ViewPropertyAnimator@5284ef64
 I/Choreographer? Skipped 47 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 63 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 60 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 59 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 51 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 57 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 63 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 62 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 60 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 62 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 56 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 54 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 62 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 62 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 49 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 69 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 57 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 46 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 62 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 76 frames!  The application may be doing too much work on its main thread.
 D/KenBurnsView? swapImage active=1
 D/KenBurnsView? new active=0
 D/KenBurnsView? starting Ken Burns animation android.view.ViewPropertyAnimator@54e2e858
 I/Choreographer? Skipped 66 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 31 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 34 frames!  The application may be doing too much work on its main thread.
 I/Choreographer? Skipped 30 frames!  The application may be doing too much work on its main thread.
 D/dalvikvm? GC_FOR_ALLOC freed 76K, 1% free 88450K/88652K, paused 3ms, total 3ms
 D/dalvikvm? GC_FOR_ALLOC freed 35K, 1% free 95824K/96060K, paused 2ms, total 2ms
 I/Choreographer? Skipped 34 frames!  The application may be doing too much work on its main thread.

Im working on adding GridView and ScrollView support can you help?

I have got GridViews fully working and also ScrollViews.

I was thinking there's probably more people like me who would like to use GridViews or ScrollViews.

If I send you the code will you help me improve it?

There are a few very small issues with the ScrollView version.

It is fully working its just if you scroll slowly or if you keep your finger on the screen it shakes a bit sometimes. Its probably something very small with the ratio / interpolation stuff I didnt do right. Would really appreciate it if you could look at it.

Different devices

Hi, Thanks for awesome job, it works great on my nexus 5, but when testing on 4s device with android 4 its animation for photo is too slow and I have to wait for animation to finish to scroll on list and that's slow too, any idea?

NotBoringActionBar with webview

Hi Flavien,

Thanks for sharing your code. I try to use it with a webview but facing a problem. There is no header view in a webview ;) I tried to add a padding but padding does not work on webviews. I tried to play with margins but i need to requestLayout and it's a bit laggy.

Any idea ? Thanks

ListView setOnItemClickListener not Responding to click

in NoBoringActionBarActivity.Java

mListView.setOnItemClickListener(new OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view,
                int position, long id) {
            Toast.makeText(getApplicationContext(), "position" + position,
                    1000).show();

        }
    });

Changing the header image dynamically

Hi

Thanks for this excellent library. Is there any provision in this library to change the header image dynamically ?
For now I've to provide the image ids before only.

Thanks in advance.

How to stop the image moving

Hi,

Thanks for this excellent library. I liked this library very much & I have made it much better but now I wanna stop the image from moving but I don't wanna stop from changing the image automatically.

The value in getScrollY() method

hi sir,
I've read your blog and code , and it's great. But I got a little problem still bothering me.

public int getScrollY() {
View c = mListView.getChildAt(0);
if (c == null) {
return 0;
}

int firstVisiblePosition = mListView.getFirstVisiblePosition();
int top = c.getTop();

int headerHeight = 0;
if (firstVisiblePosition >= 1) {
  headerHeight = mPlaceHolderView.getHeight();
}
return -top + firstVisiblePosition * c.getHeight() + headerHeight;

}

I tried to remove the "firstVisiblePosition * c.getHeight()" and it still work well. So I am still confused about the meaning of this statement.

Battery drainage? Pausing animation.

Hi!

I must say this is an excellent library. There is however one issue, I notice that even though the screen is turned off, the image-swapping still occurs. I was wondering how one could pause the animations without accessing the pause() / resume() animation that were newly added in a recent-ish API? (if I remember correctly? sorry for being so vague, rookie android-dev here :-) )

I tried calling the onAttachWindow() and onDetachWindow() in the main-activity through onResume() and onPause() respectively, by making the classes public instead of protected in your KenBurnsView.java, but alas... no success.

How to use ActionBarActivity??

Thanks for sharing your code. I try to use it with a ActionBarActivity instead of Activity
(NonBoringActivity extends ActionBarActivity)
and
findViewById(android.R.id.home ) is null
findViewById(android.support.v7.appcompat.R.id.home) is null

do you have any idea??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.