https://github.com/commit451/internallinkmovementmethod
LinkMovementMethod that allows for custom overrides
https://github.com/commit451/internallinkmovementmethod
android linkmovementmethod
Last synced: about 1 month ago
JSON representation
LinkMovementMethod that allows for custom overrides
- Host: GitHub
- URL: https://github.com/commit451/internallinkmovementmethod
- Owner: Commit451
- License: apache-2.0
- Created: 2017-03-13T20:22:36.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2022-06-27T04:27:57.000Z (over 3 years ago)
- Last Synced: 2025-04-26T02:52:38.502Z (11 months ago)
- Topics: android, linkmovementmethod
- Language: Kotlin
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# InternalLinkMovementMethod
LinkMovementMethod that allows for custom overrides
[](https://travis-ci.org/Commit451/InternalLinkMovementMethod) [](https://jitpack.io/#Commit451/InternalLinkMovementMethod)
# Usage
```java
textView.setText(Html.fromHtml(TEXT))
textView.movementMethod = object : InternalLinkMovementMethod() {
override fun onLinkClicked(textView: TextView, link: String, text: String?) {
Toast.makeText(this@MainActivity, "Link: $link with text: $text clicked", Toast.LENGTH_LONG)
.show()
}
}
```
License
--------
Copyright 2019 Commit 451
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.