Skip to content

Commit

Permalink
解决缺少引包问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsjlzx committed Mar 21, 2017
1 parent 898a394 commit 644234d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.ViewParent;

import com.github.jdsjlzx.interfaces.ILoadMoreFooter;
Expand Down Expand Up @@ -371,9 +372,9 @@ public void setLoadMoreFooter(ILoadMoreFooter loadMoreFooter) {
mFootView.setVisibility(GONE);

//wxm:mFootView inflate的时候没有以RecyclerView为parent,所以要设置LayoutParams
ViewGroup.LayoutParams vlp = mFootView.getLayoutParams();
if (vlp != null) {
mFootView.setLayoutParams(new LayoutParams(vlp));
ViewGroup.LayoutParams layoutParams = mFootView.getLayoutParams();
if (layoutParams != null) {
mFootView.setLayoutParams(new LayoutParams(layoutParams));
} else {
mFootView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class EndlessGridLayoutActivity extends AppCompatActivity {

/**服务器端一共多少条数据*/
private static final int TOTAL_COUNTER = 64;
private static final int TOTAL_COUNTER = 24;

/**每一页展示多少条数据*/
private static final int REQUEST_COUNT = 10;
Expand Down

0 comments on commit 644234d

Please sign in to comment.