Skip to content

Commit 9482e6a

Browse files
committed
release 1.0.1
1 parent e1f11e9 commit 9482e6a

21 files changed

+11
-56
lines changed

.idea/codeStyles/Project.xml

100755100644
File mode changed.

.idea/markdown-exported-files.xml

-8
This file was deleted.

.idea/markdown-navigator.xml

100755100644
File mode changed.

.idea/markdown-navigator/profiles_settings.xml

100755100644
File mode changed.

.idea/misc.xml

100755100644
File mode changed.

.idea/modules.xml

100755100644
File mode changed.

.idea/runConfigurations.xml

100755100644
File mode changed.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## RecyclerView的LayoutManager,轻松实现各种炫酷、特殊效果,再也不怕产品经理为难!
2-
### 博客详情: in coming...
2+
### 博客详情: https://blog.csdn.net/u011387817/article/details/81875021
33

44
### 使用方式:
55
#### 添加依赖:
66
```
7-
implementation 'com.wuyr:pathlayoutmanager:1.0.0'
7+
implementation 'com.wuyr:pathlayoutmanager:1.0.1'
88
```
99

1010
### APIs:

app-debug.apk

100755100644
22.4 KB
Binary file not shown.

app/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
minSdkVersion 21
88
targetSdkVersion 27
99
versionCode 1
10-
versionName "1.0"
10+
versionName "1.1"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1212
}
1313
buildTypes {
@@ -27,10 +27,10 @@ dependencies {
2727
implementation 'com.android.support:appcompat-v7:27.1.1'
2828
implementation 'com.android.support:recyclerview-v7:27.1.1'
2929
implementation 'com.android.support:cardview-v7:27.1.1'
30-
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
30+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
3131
testImplementation 'junit:junit:4.12'
32-
androidTestImplementation 'com.android.support.test:runner:1.0.1'
33-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
32+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
33+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
3434

35-
implementation 'com.wuyr:pathlayoutmanager:1.0.0'
35+
implementation 'com.wuyr:pathlayoutmanager:1.0.1'
3636
}

app/src/main/java/com/wuyr/pathlayoutmanagertest/activities/MainActivity.java

+1-13
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ this, findViewById(R.id.drawer), findViewById(R.id.toolbar),
5656
mTrackView = findViewById(R.id.track_panel);
5757
mCanvasView = findViewById(R.id.canvas_view);
5858
RecyclerView recyclerView = findViewById(R.id.recycler_view);
59-
recyclerView.setLayoutManager(mPathLayoutManager = new PathLayoutManager(null, 50));
59+
recyclerView.setLayoutManager(mPathLayoutManager = new PathLayoutManager(null, 150));
6060
recyclerView.setAdapter(mAdapter = new PathAdapter(this, null));
6161

6262
mToast = Toast.makeText(this, "", Toast.LENGTH_SHORT);
@@ -184,18 +184,6 @@ public void handleOnClick(View view) {
184184
}
185185
}
186186
break;
187-
case R.id.cache_count:
188-
if (checkIsPathInitialized()) {
189-
try {
190-
int count = Integer.parseInt(((TextView) findViewById(R.id.cache_count_text)).getText().toString());
191-
mPathLayoutManager.setCacheCount(count);
192-
mToast.setText(R.string.success);
193-
} catch (Exception e) {
194-
mToast.setText(e.toString());
195-
}
196-
mToast.show();
197-
}
198-
break;
199187
default:
200188
break;
201189
}

app/src/main/res/layout/layout_menu.xml

+2-27
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
android:layout_alignParentBottom="true"
226226
android:max="1080"
227227
android:padding="4dp"
228-
android:progress="50"
228+
android:progress="150"
229229
app:layout_constraintEnd_toEndOf="parent"
230230
app:layout_constraintHorizontal_weight="1"
231231
app:layout_constraintStart_toEndOf="@id/item_offset_text"
@@ -277,31 +277,6 @@
277277
app:layout_constraintStart_toEndOf="@id/fixing_animation_duration_text"
278278
app:layout_constraintTop_toBottomOf="@+id/auto_select_fraction" />
279279

280-
<EditText
281-
android:id="@+id/cache_count_text"
282-
android:layout_width="0dp"
283-
android:layout_height="wrap_content"
284-
android:layout_marginTop="4dp"
285-
android:hint="@string/cache_count_default_10"
286-
android:inputType="phone"
287-
android:maxLines="1"
288-
android:singleLine="true"
289-
android:textSize="15sp"
290-
app:layout_constraintEnd_toStartOf="@+id/cache_count"
291-
app:layout_constraintHorizontal_weight="1"
292-
app:layout_constraintStart_toStartOf="parent"
293-
app:layout_constraintTop_toBottomOf="@+id/fixing_animation_duration" />
294-
295-
<Button
296-
android:id="@+id/cache_count"
297-
android:layout_width="wrap_content"
298-
android:layout_height="wrap_content"
299-
android:onClick="handleOnClick"
300-
android:text="@string/apply"
301-
app:layout_constraintEnd_toEndOf="parent"
302-
app:layout_constraintStart_toEndOf="@+id/cache_count_text"
303-
app:layout_constraintTop_toBottomOf="@+id/fixing_animation_duration" />
304-
305280
<EditText
306281
android:id="@+id/scale_ratio_text"
307282
android:layout_width="match_parent"
@@ -311,7 +286,7 @@
311286
android:maxLines="1"
312287
android:singleLine="true"
313288
android:textSize="15sp"
314-
app:layout_constraintTop_toBottomOf="@+id/cache_count_text" />
289+
app:layout_constraintTop_toBottomOf="@+id/fixing_animation_duration" />
315290

316291
<Button
317292
android:id="@+id/apply_scale_ratio"

app/src/main/res/values/strings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<string name="app_name">PathLayoutManagerTest</string>
33
<string name="success">success</string>
44
<string name="start_draw">start draw</string>
5-
<string name="stop_draw">stop draw</string>
5+
<string name="stop_draw">end draw</string>
66
<string name="add">add</string>
77
<string name="remove">remove</string>
88
<string name="item_type">item type</string>

previews/preview.gif

100644100755
File mode changed.

previews/preview2.gif

100644100755
File mode changed.

previews/preview3.gif

100644100755
File mode changed.

previews/preview4.gif

100644100755
File mode changed.

previews/preview5.gif

100644100755
File mode changed.

previews/preview6.gif

100644100755
File mode changed.

previews/preview7.gif

100644100755
File mode changed.

previews/preview8.gif

100644100755
File mode changed.

0 commit comments

Comments
 (0)