webview in android -
i using webview control in android show html content. face problem in webview have fix height thats why if html content contains less data wasted space. there solution solve problem how can show same content html has in webview without wasted space please help.
following xml used draw webview right? in give fix height webview. if not giving fix height show 1 line data scroll.
<linearlayout android:id="@+id/llweb" android:layout_width="fill_parent" android:scrollbars="vertical" android:background="@android:color/transparent" android:layout_height="500dip"> <webview android:id="@+id/hellowebview" android:layout_width="fill_parent" android:background="@android:color/transparent" android:layout_height="500dip"/> </linearlayout>
thanks
use "fill_parent" attribute height , width in webview.
Comments
Post a Comment