没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
html文件常常是含有图片,如果需要在Textview中实现文字和图片的混排,需要使用ImageGetter。ImageGetter是Html类中一个接口,作用是给img标签获取图片内容,主要提供了一个getDrawable的方法。但很多情况下,需要支持点击图片后将图片放大显示。这样,我们需要支持img标签的点击处理,能够监听到点击事件就可以实现这个功能了。这里我们可以通过实现TagHandler接口来实现这个功能。首先看下android.text.Html类中的Taghandler接口
资源推荐
资源详情
资源评论
收起资源包目录
TextView加载html 图文混排 处理图片变形 图片点击缩放 (116个子文件)
gradlew.bat 2KB
taskHistory.bin 1.04MB
classAnalysis.bin 1.03MB
jarAnalysis.bin 459KB
fileHashes.bin 253KB
taskHistory.bin 86KB
taskJars.bin 24KB
resourceHashesCache.bin 21KB
outputFiles.bin 20KB
last-build.bin 1B
.gitignore 147B
.gitignore 8B
build.gradle 1KB
build.gradle 824B
settings.gradle 16B
gradlew 5KB
app.iml 15KB
TextViewHtmlDemo.iml 870B
gradle-wrapper.jar 53KB
CustomDialog.java 4KB
MImageGetter.java 2KB
CommonTipsDialog.java 2KB
URLTagHandler.java 1KB
MainActivity.kt 7KB
ExampleInstrumentedTest.kt 650B
ClickableImage.kt 639B
ExampleUnitTest.kt 354B
fileContent.lock 17B
javaCompile.lock 17B
fileHashes.lock 17B
taskHistory.lock 17B
buildOutputCleanup.lock 17B
ic_launcher_round.png 15KB
ic_launcher_round.png 10KB
ic_launcher.png 9KB
ic_launcher_round.png 7KB
ic_launcher.png 6KB
ic_launcher_round.png 5KB
ic_launcher.png 4KB
transparent_bg.png 3KB
ic_launcher.png 3KB
ic_launcher_round.png 3KB
ic_launcher.png 2KB
proguard-rules.pro 772B
gradle.properties 739B
local.properties 428B
gradle-wrapper.properties 236B
cache.properties 51B
build_file_checksums.ser 545B
version.txt 5B
workspace.xml 213KB
ic_launcher_background.xml 6KB
ic_launcher_foreground.xml 2KB
Project.xml 2KB
misc.xml 2KB
AndroidManifest.xml 796B
activity_main.xml 778B
Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml 773B
Gradle__com_android_support_test_espresso_espresso_core_3_0_2.xml 718B
Gradle__android_arch_lifecycle_livedata_core_1_1_1.xml 695B
Gradle__android_arch_lifecycle_viewmodel_1_1_1.xml 676B
Gradle__com_github_chrisbanes_PhotoView_2_1_4.xml 674B
Gradle__android_arch_lifecycle_livedata_1_1_1.xml 671B
Gradle__com_android_support_test_monitor_1_0_2.xml 670B
Gradle__android_arch_lifecycle_runtime_1_1_1.xml 666B
Gradle__com_android_support_test_runner_1_0_2.xml 665B
Gradle__android_arch_core_runtime_1_1_1.xml 655B
gradle.xml 626B
Gradle__org_jetbrains_kotlin_kotlin_stdlib_jre7_1_2_30_jar.xml 614B
Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_2_30_jar.xml 589B
Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml 586B
Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml 565B
runConfigurations.xml 564B
Gradle__com_github_bumptech_glide_glide_3_7_0_jar.xml 560B
Gradle__android_arch_lifecycle_common_1_1_1_jar.xml 556B
Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml 551B
Gradle__org_jetbrains_annotations_13_0_jar.xml 549B
Gradle__com_squareup_javawriter_2_1_1_jar.xml 546B
Gradle__android_arch_core_common_1_1_1_jar.xml 541B
Gradle__javax_inject_javax_inject_1_jar.xml 536B
Gradle__com_android_support_animated_vector_drawable_28_0_0.xml 522B
Gradle__com_android_support_support_vector_drawable_28_0_0.xml 519B
Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml 518B
Gradle__org_jsoup_jsoup_1_11_1_jar.xml 517B
Gradle__com_android_support_localbroadcastmanager_28_0_0.xml 513B
Gradle__com_android_support_constraint_constraint_layout_1_1_3.xml 509B
Gradle__com_android_support_versionedparcelable_28_0_0.xml 507B
Gradle__com_android_support_asynclayoutinflater_28_0_0.xml 507B
Gradle__com_android_support_support_core_utils_28_0_0.xml 504B
Gradle__com_android_support_swiperefreshlayout_28_0_0.xml 504B
Gradle__com_android_support_coordinatorlayout_28_0_0.xml 501B
Gradle__com_android_support_slidingpanelayout_28_0_0.xml 501B
Gradle__com_android_support_support_fragment_28_0_0.xml 498B
Gradle__com_android_support_support_core_ui_28_0_0.xml 495B
Gradle__junit_junit_4_12_jar.xml 495B
Gradle__com_android_support_support_compat_28_0_0.xml 492B
Gradle__com_android_support_cursoradapter_28_0_0.xml 489B
Gradle__com_android_support_appcompat_v7_28_0_0.xml 486B
Gradle__com_android_support_interpolator_28_0_0.xml 486B
Gradle__com_android_support_drawerlayout_28_0_0.xml 486B
共 116 条
- 1
- 2
资源评论
我一直在路上---
- 粉丝: 0
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功