app/src/main/java/com/hdl/photovoltaic/widget/refreshlayout/BGARefreshViewHolder.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
app/src/main/res/layout/loading_more.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
app/src/main/java/com/hdl/photovoltaic/widget/refreshlayout/BGARefreshViewHolder.java
@@ -187,7 +187,7 @@ return null; } if (mLoadMoreFooterView == null) { mLoadMoreFooterView = View.inflate(mContext, R.layout.loading_alert, null); mLoadMoreFooterView = View.inflate(mContext, R.layout.loading_more, null); mLoadMoreFooterView.setBackgroundColor(Color.TRANSPARENT); if (mLoadMoreBackgroundColorRes != -1) { mLoadMoreFooterView.setBackgroundResource(mLoadMoreBackgroundColorRes); @@ -195,8 +195,8 @@ if (mLoadMoreBackgroundDrawableRes != -1) { mLoadMoreFooterView.setBackgroundResource(mLoadMoreBackgroundDrawableRes); } mFooterStatusTv = (TextView) mLoadMoreFooterView.findViewById(R.id.load_content_tv); mFooterChrysanthemumIv = (ImageView) mLoadMoreFooterView.findViewById(R.id.load_pb); mFooterStatusTv = (TextView) mLoadMoreFooterView.findViewById(R.id.load_more_content_tv); mFooterChrysanthemumIv = (ImageView) mLoadMoreFooterView.findViewById(R.id.load_more_iv); mFooterChrysanthemumIv.setBackground(mContext.getDrawable(R.drawable.progress_small)); mFooterChrysanthemumAd = (AnimationDrawable) mFooterChrysanthemumIv.getDrawable(); mFooterStatusTv.setText(mLodingMoreText); app/src/main/res/layout/loading_more.xml
New file @@ -0,0 +1,39 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="@dimen/dp_20" android:gravity="center"> <!-- <ProgressBar--> <!-- android:id="@+id/load_pb"--> <!-- android:layout_width="40dp"--> <!-- android:layout_height="40dp"--> <!-- android:layout_marginTop="@dimen/dp_10"--> <!-- android:indeterminateDrawable="@drawable/progress_small"--> <!-- app:layout_constraintEnd_toEndOf="parent"--> <!-- app:layout_constraintStart_toStartOf="parent"--> <!-- app:layout_constraintTop_toTopOf="parent" />--> <ImageView android:id="@+id/load_more_iv" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:id="@+id/load_more_content_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:paddingStart="@dimen/dp_10" android:paddingEnd="@dimen/dp_0" android:text="@string/device_loading" android:textColor="@color/text_FFACACAC" android:textSize="@dimen/text_12" /> </LinearLayout>