File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
library/src/main/java/com/lcodecore/tkrefreshlayout Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ startAnim则是在onRefresh/onLoadMore之后才会回调的过程(此处是显
295
295
296
296
#### v1.05
297
297
- 修复触摸监听失效问题
298
+ - TODO 修复wrap_content时刷新控件显示在屏幕中央问题
298
299
299
300
#### v1.04
300
301
##### 新增功能
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <com .lcodecore.tkrefreshlayout.TwinklingRefreshLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ android : layout_width =" wrap_content" android : layout_height =" wrap_content" >
4
+ <FrameLayout
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" 30dp"
7
+ android : background =" #fae"
8
+ android : layout_alignParentTop =" true"
9
+ android : layout_centerHorizontal =" true"
10
+ android : foregroundGravity =" top"
11
+ android : id =" @+id/frameLayout" />
12
+
13
+ <android .support.v7.widget.RecyclerView
14
+ android : id =" @+id/recyclerview"
15
+ android : layout_width =" match_parent"
16
+ android : layout_height =" match_parent"
17
+ android : overScrollMode =" never" />
18
+ </com .lcodecore.tkrefreshlayout.TwinklingRefreshLayout>
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ private void addHeader() {
127
127
FrameLayout headViewLayout = new FrameLayout (getContext ());
128
128
LayoutParams layoutParams = new LayoutParams (LayoutParams .MATCH_PARENT , 0 );
129
129
layoutParams .addRule (ALIGN_PARENT_TOP );
130
- layoutParams .addRule (CENTER_VERTICAL );
131
130
132
131
FrameLayout extraHeadLayout = new FrameLayout (getContext ());
133
132
extraHeadLayout .setId (R .id .ex_header );
@@ -146,7 +145,6 @@ private void addFooter() {
146
145
FrameLayout bottomViewLayout = new FrameLayout (getContext ());
147
146
LayoutParams layoutParams2 = new LayoutParams (ViewGroup .LayoutParams .MATCH_PARENT , 0 );
148
147
layoutParams2 .addRule (ALIGN_PARENT_BOTTOM );
149
- layoutParams2 .addRule (CENTER_VERTICAL );
150
148
bottomViewLayout .setLayoutParams (layoutParams2 );
151
149
152
150
mBottomLayout = bottomViewLayout ;
You can’t perform that action at this time.
0 commit comments