UndoBar icon indicating copy to clipboard operation
UndoBar copied to clipboard

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

Open httpdispatch opened this issue 10 years ago • 3 comments

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

httpdispatch avatar Apr 25 '14 10:04 httpdispatch

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.

soarcn avatar Apr 26 '14 03:04 soarcn

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 avatar Jul 15 '17 02:07 Prophetgodalbert

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

Prophetgodalbert avatar Jul 15 '17 02:07 Prophetgodalbert