Skip to content

Commit 50e2c92

Browse files
committed
纠正状态布局中重试按钮的控件 id 命名
1 parent 6424cf9 commit 50e2c92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/hjq/demo/widget/StatusLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void initLayout() {
143143

144144
mLottieView = mMainLayout.findViewById(R.id.iv_status_icon);
145145
mTextView = mMainLayout.findViewById(R.id.tv_status_text);
146-
mRetryView = mMainLayout.findViewById(R.id.iv_status_retry);
146+
mRetryView = mMainLayout.findViewById(R.id.btn_status_retry);
147147

148148
if (mMainLayout.getBackground() == null) {
149149
// 默认使用 windowBackground 作为背景

app/src/main/res-common/layout/widget_status_layout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
tools:text="@string/status_layout_error_network" />
3434

3535
<com.hjq.shape.view.ShapeButton
36-
android:id="@+id/iv_status_retry"
36+
android:id="@+id/btn_status_retry"
3737
android:layout_width="wrap_content"
3838
android:layout_height="wrap_content"
3939
android:layout_marginTop="@dimen/dp_20"

0 commit comments

Comments
 (0)