You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
### Version 3.0
2
2
3
-
The `3.0.0-beta` version is now available! This should resolve a number of text handling issues and lay the groundwork for better support of mixed text and token input. This version is still a little unstable, so I would only recommend it if you are having trouble using version `2.0.8`. You can find the docs for `2.0.8`[here](https://github.com/splitwise/TokenAutoComplete/tree/2.0.8).
3
+
The `3.0.0` version is now available! This should resolve a number of text handling issues and lay the groundwork for better support of mixed text and token input. If you're still on `2.*`, you can find the docs for `2.0.8`[here](https://github.com/splitwise/TokenAutoComplete/tree/2.0.8).
4
4
5
5
### Upgrading from 2.* to 3.0
6
6
7
7
For most developers, the migration should be fairly simple. Here are the likely issues you'll need to resolve:
8
8
9
9
1. The view now inherits from `AppCompatAutoCompleteTextView`. You probably don't need to make any changes for this, but you will need to include the Android support library if you are not already.
10
10
11
-
1.`setTokenDeleteStyle` has been removed. Something similar to the Clear style has been hardcoded in. This feature never worked reliably and caused a lot of crashes.
11
+
2.`setTokenDeleteStyle` has been removed. Something similar to the Clear style has been hardcoded in. This feature never worked reliably and caused a lot of crashes.
12
12
13
-
1.`addObject` has been renamed `addObjectAsync`. `removeObject` has been renamed `removeObjectAsync`. There are also `addObjectSync`/`removeObjectSync` versions that can be called from the UI thread and guarantee that `getObjects` will include these changes on the next call.
13
+
3.`addObject` has been renamed `addObjectAsync`. `removeObject` has been renamed `removeObjectAsync`. There are also `addObjectSync`/`removeObjectSync` versions that can be called from the UI thread and guarantee that `getObjects` will include these changes on the next call.
14
14
15
-
1.`setAllowDuplicates(false)` has been made more flexible to deal with issues around different kinds of equality. If you need the 2.* version of the behavior, add this to your `TokenCompleteTextView` subclass:
15
+
4.`setAllowDuplicates(false)` has been made more flexible to deal with issues around different kinds of equality. If you need the 2.* version of the behavior, add this to your `TokenCompleteTextView` subclass:
16
16
17
17
```
18
18
@Override
@@ -21,7 +21,7 @@ public boolean shouldIgnoreToken(T token) {
21
21
}
22
22
```
23
23
24
-
1.`TokenListener` has a new method you will need to add:
24
+
5.`TokenListener` has a new method you will need to add:
25
25
26
26
```
27
27
public interface TokenListener<T> {
@@ -31,7 +31,7 @@ public interface TokenListener<T> {
31
31
}
32
32
```
33
33
34
-
1.`convertSerializableArrayToObjectArray` has been renamed `convertSerializableObjectsToTypedObjects`.
34
+
6.`convertSerializableArrayToObjectArray` has been renamed `convertSerializableObjectsToTypedObjects`.
35
35
36
36
You may also find that the vertical alignment of your tokens has changed. It appears that the app compat text view layout is slightly different than the normal one. You will likely find that you need to adjust the baseline values for your token views.
@@ -504,7 +504,7 @@ These options should allow you to build something similar to a Tweet composing v
504
504
preventFreeFormText(false);
505
505
```
506
506
507
-
* Get the string value of the text content of the view, including reasonable string representations of the tokens. If `getContextText` is not using an acceptable string representation of the token, you can overrid `tokenToString` to change how the token is represented.
507
+
* Get the string value of the text content of the view, including reasonable string representations of the tokens. If `getContextText` is not using an acceptable string representation of the token, you can override `tokenToString` to change how the token is represented.
0 commit comments