Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

CountDown style like in ListViewAnimations (https://github.com/nhaarman/ListViewAnimations) #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

httpdispatch
Copy link

Thanks for your library. I've modified it and added possibility to have UndoBar with countdown (like in ListViewAnimations/SwipeToDismiss demo). Perhaps this will be useful for somebody

image

library:

  • UndoBarController: removed mHideRunnable field
  • UndoBarController: added new fields mDismissStartMillis,
    mCountDownRunnable, mMessageCountdownView
  • UndoBarController: added mCountDownRunnable, mMessageCountdownView
    fields initialization to the constructor
  • UndoBarController: updated runnable reference for the removeCallback
    call in the undoBar method
  • UndoBarController: modified showUndoBar to adjust visibility and text
    of mMessageCountdownView if countDownFormatter is present in the style
  • UndoBarController: updated hide handler logic in the showUndoBar
    method
  • UndoBarController.CountDownRunnable: added
  • UndoBarStyle: added countDownFormatter field and its setter method
  • UndoBarStyle: added countDownFormatter support to parcelable
    implementation
  • res/layout/undobar.xml: reworked TextView part, added hidden countdown
    view below it
  • res/values/styles.xml: added UndoBarMessageContainer,
    UndoBarMessageCountdown, UndoBarMessageContainerClassic,
    UndoBarMessageCountdownClassic, UndoBarMessageContainerKitKat,
    UndoBarMessageCountdownKitKat styles

demo:

  • MainActivity: added onClick handling for the button5
  • UndoCountdownStyle: added
  • res/layout/activity_main.xml: added button5 declaration
  • res/values/strings.xml: added couple of string constants
  • res/values/styles.xml: added definition for the
    UndoBarMessageContainer and UndoBarMessageCountdown styles
  • AndroidManifest.xml: added UndoCountdownStyle activity declaration

(https://github.com/nhaarman/ListViewAnimations)

library:
- UndoBarController: removed mHideRunnable field
- UndoBarController: added new fields mDismissStartMillis,
mCountDownRunnable, mMessageCountdownView
- UndoBarController: added mCountDownRunnable, mMessageCountdownView
fields initialization to the constructor
- UndoBarController: updated runnable reference for the removeCallback
call in the undoBar method
- UndoBarController: modified showUndoBar to adjust visibility and text
of mMessageCountdownView if countDownFormatter is present in the style
- UndoBarController: updated hide handler logic in the showUndoBar
method
- UndoBarController.CountDownRunnable: added
- UndoBarStyle: added countDownFormatter field and its setter method
- UndoBarStyle: added countDownFormatter support to parcelable
implementation
- res/layout/undobar.xml: reworked TextView part, added hidden countdown
view below it
- res/values/styles.xml: added UndoBarMessageContainer,
UndoBarMessageCountdown, UndoBarMessageContainerClassic,
UndoBarMessageCountdownClassic, UndoBarMessageContainerKitKat,
UndoBarMessageCountdownKitKat styles

demo:
- MainActivity: added onClick handling for the button5
- UndoCountdownStyle: added
- res/layout/activity_main.xml: added button5 declaration
- res/values/strings.xml: added couple of string constants
- res/values/styles.xml: added definition for the
UndoBarMessageContainer and UndoBarMessageCountdown styles
- AndroidManifest.xml: added UndoCountdownStyle activity declaration
@soarcn
Copy link
Owner

soarcn commented Apr 26, 2014

Thanks,this looks like a big pull request, I'm currently in a big hurry and I will find a time to look into it.

@Prophetgodalbert
Copy link

Leave me alone pull it or I'm suing you 'll taking you to court watch that 3 years of research and for nothing. Mental aguiny Weaponize WiFi autism attempted murder and much more

@Prophetgodalbert
Copy link

Prophet_God_The_Rapper on soundcloud these people keep hacking my phone is lagging and I'm ready to go home also their trying to steal my rap music and almost drove me to suicide thinking that the life I was living wasn't real

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants