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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -