展示錯誤的Android自定義視圖:ErrorView
一個自定義視圖用于通過給定一個HTTP狀態代碼來顯示一張錯誤圖片,包括標題和字幕。它可以用于各種其他用途,如顯示其它類型的錯誤,或者包含圖像某些信息。
<tr.xip.errorview.ErrorView xmlns:errorview="http://schemas.android.com/apk/res-auto" android:id="@+id/error_view" android:layout_width="wrap_content" android:layout_height="wrap_content" errorview:ev_errorImage="@drawable/..." errorview:ev_errorSubtitle="@string/..." errorview:ev_errorTitle="@string/..." errorview:ev_retryButtonBackground="@drawable/..." errorview:ev_retryButtonTextColor="@color/..." errorview:ev_showRetryButton="boolean" errorview:ev_showSubtitle="boolean" errorview:ev_showTitle="boolean" />

本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!