java - How do I add text to a ScrollView at run time? -


i know how add text scroll view @ run time. working in android studio. have file reading , have put lines of text stringbuilder buffer object. how display text in scrollview? need use .addview? thanks

scrollview single-element container, meaning should have 1 element in it.

a scrollview framelayout, meaning should place 1 child in containing entire contents scroll; child may layout manager complex hierarchy of objects. child used linearlayout in vertical orientation, presenting vertical array of top-level items user can scroll through.

so should add linearlayout in scrollview , add views instead.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -