Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Releases: xiprox/ErrorView

v4.0.0

11 Aug 13:38
Compare
Choose a tag to compare
  • Translated entire codebase to Kotlin

The API was left pretty much the same.

v3.0.0

13 Jul 15:33
Compare
Choose a tag to compare

Library changes:

  • Added ability to show/hide the error image programmatically
  • Added ability to tint the error image
  • Added ability to set error image size
  • Added AppCompat.DayNight theme support
  • Made all set methods return ErrorView
  • Removed the Config class
  • Removed subtitle alignment feature
  • Removed the setError method used with HTTP error codes
  • Removed previously deprecated methods: setImageResource, setImageDrawable, setImageBitmap
  • getTitle and getSubtitle now return CharSequence instead of String
  • Renamed view ids: error_image -> ev_image, error_title -> ev_title, error_subtitle -> ev_subtitle, error_retry -> ev_retry
  • Error title no longer bold
  • Slight color changes

Methods:

  • Added:

    • setImageVisible
    • isImageVisible
    • setImageTint
    • setImageSize
  • Removed:

    • setError
    • getImage()
    • getTitleColor
    • getSubtitleColor
    • getRetryButtonText
    • setImageResource
    • setImageDrawable
    • setImageBitmap
  • Renamed:

    • setRetryButtonText -> setRetryText
    • setOnRetryListener -> setRetryListener
    • showTitle -> setTitleVisible
    • showSubtitle -> setSubtitleVisible
    • showRetryButton -> setRetryVisible

Attributes:

  • Added:

    • ev_imageVisible
    • ev_imageTint
    • ev_imageSize
  • Renamed:

    • ev_errorImage -> ev_image
    • ev_showTitle -> ev_titleVisible
    • ev_showSubtitle -> ev_subtitleVisible
    • ev_showRetryButton -> ev_retryVisible
    • ev_retryButtonText -> ev_retryText
    • ev_retryButtonBackground -> ev_retryBackground
    • ev_retryBackground -> ev_retryColor

Sample app changes:

  • Decreased retry delay to 2 seconds
  • Added app-wide ErrorView style
  • Started using the AppCompat.DayNight theme

v2.2.0.1 (Sample app update)

06 Oct 18:24
Compare
Choose a tag to compare
  • Fixed crash on Android 6 Marshmallow
  • New icon

v2.2.0

19 Jun 17:47
Compare
Choose a tag to compare
  • Made it possible to set subtitle alignment from code and xml.
  • Deprecated setImageResource(int), setImageDrawable(Drawable), and setImageBitmap(Bitmap) methods.
  • Added setImage(int), setImage(Drawable), and setImage(Bitmap) methods.
  • Added the getImage() method.
  • Added setRetryButtonTextColor(int) and getRetryButtonTextColor() methods.
  • Added Configs (see README).

v2.1.0

17 Jun 12:36
Compare
Choose a tag to compare
  • Removed double instances of LinearLayout (credits @pbednarz).
  • Made it possible to style ErrorView in the app theme (thanks @pbednarz).
  • Fix subtitle not being centered text has more than one line.

v2.0.0

05 Apr 11:42
Compare
Choose a tag to compare
  • Added methods:getTitleText(), getTitleTextColor(), getSubtitle(), getSubtitleTextColor(), getRetryButtonText(), isTitleVisible(), isSubtitleVisible(), isRetryButtonVisible().
  • Renamed methods:
    setErrorImageResource(int) -> setImageResource(),
    setErrorImageDrawable(Drawable) -> setImageDrawable(Drawable),
    setErrorImageBitmap(Bitmap) -> setImageBitmap(Bitmap),
    setErrorTitle(String) -> setTitle(String),
    setErrorTitle(int) -> setTitle(int),
    setErrorTitleColor(int) -> setTitleColor(int),
    setErrorSubtitle(String) -> setSubtitle(String),
    setErrorSubtitle(int) -> setSubtitle(int),
    setErrorSubtitleColor(int) -> setSubtitleColor(int)
  • Renamed attributes:
    ev_errorTitle -> ev_title,
    ev_errorTitleColor -> ev_titleColor,
    ev_errorSubtitle -> ev_subtitle,
    ev_errorSubtitleColor -> ev_subtitleColor
  • Made it possible to set the retry button text in xml. You can now use ev_retryButtonText="string".
  • Moved RetryListener inside ErrorView. (It's now under tr.xip.errorview.ErrorView, and not tr.xip.errorview).
  • Renamed ErrorViewStatusCodes to HttpStatusCodes.

v1.1.0

04 Apr 17:04
Compare
Choose a tag to compare
  • Added the ability to change text color of title and subtitle programmatically and in xml. (credits @bropane)