This repository has been archived by the owner on Dec 26, 2021. It is now read-only.
Releases: xiprox/ErrorView
Releases · xiprox/ErrorView
v4.0.0
v3.0.0
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
andgetSubtitle
now returnCharSequence
instead ofString
- 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)
- Fixed crash on Android 6 Marshmallow
- New icon
v2.2.0
- Made it possible to set subtitle alignment from code and xml.
- Deprecated
setImageResource(int)
,setImageDrawable(Drawable)
, andsetImageBitmap(Bitmap)
methods. - Added
setImage(int)
,setImage(Drawable)
, andsetImage(Bitmap)
methods. - Added the
getImage()
method. - Added
setRetryButtonTextColor(int)
andgetRetryButtonTextColor()
methods. - Added Configs (see README).
v2.1.0
v2.0.0
- 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 nottr.xip.errorview
). - Renamed
ErrorViewStatusCodes
toHttpStatusCodes
.