android - WebView not wraping content -


i can't make webview wrap displayed content. problem webview width screen, while height 300px. how can make wrap content , file suppose be?

here current layout xml:

 <webview   android:id="@+id/animation_1"   android:layout_width="wrap_content"   android:layout_height="wrap_content" /> 

webview built render html pages doesn't have size. there no way determine doesn't exist , re-size according same way imageview resizes when src image has changed.

your best choice set size of webview fixed value maybe weight , user have scroll inside when page bigger webview itself.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -