80,492
社区成员
发帖
与我相关
我的任务
分享
contentView = (WebView)this.findViewById(R.id.content);
WebSettings mWebSettings = contentView.getSettings();
mWebSettings.setUseWideViewPort(true);
mWebSettings.setLoadWithOverviewMode(true);
mWebSettings.setTextZoom(getResources().getInteger(R.integer.webview_text_size));
contentView.loadDataWithBaseURL(null, content, "text/html", "utf-8", null);
sourceView.setText(source);
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".ListItemShowActivity" >
<ScrollView
android:id="@+id/scrollView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/content"
android:layout_alignParentTop="true" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
<LinearLayout
android:id="@+id/container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:layout_centerHorizontal="true"
android:orientation="horizontal" >
<TextView
android:id="@+id/create_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" " />
<TextView
android:id="@+id/source"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<WebView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/container"
android:layout_centerInParent="true"
android:padding="5dp" />
</RelativeLayout>
</ScrollView>
</LinearLayout>
[/quote]
那你把webView设定为固定宽度呢?
mWebSettings.setUseWideViewPort(true);
mWebSettings.setLoadWithOverviewMode(true);
改为了
WebSettings mWebSettings = contentView.getSettings();
mWebSettings.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
然后就正常了,具体原因未明。
自己设置宽度未尝试过,不过还是感谢楼上的帮助。
[/quote]
那你把webView设定为固定宽度呢?[/quote]
没有~所有关于 WebView 的代码都已经贴上了~没有其他设置[/quote]
我是叫你这样设置试试一下,看宽度是不是还是那样啊。
[/quote]
那你把webView设定为固定宽度呢?[/quote]
没有~所有关于 WebView 的代码都已经贴上了~没有其他设置<p>为贯彻落实《国务院关于取消和下放一批行政审批项目的决定》(国发[2013]44号),现对企业因国务院决定事项形成的资产损失税前扣除问题公告如下:<br /> 一、自国发〔2013〕44号文件发布之日起,企业因国务院决定事项形成的资产损失,不再上报国家税务总局审核。国家税务总局公告2011年第25号发布的《企业资产损失所得税税前扣除管理办法》第十二条同时废止。<br /> 二、企业因国务院决定事项形成的资产损失,应以专项申报的方式向主管税务机关申报扣除。专项申报扣除的有关事项,按照国家税务总局公告2011年第25号规定执行。<br /> 三、本公告适用于2013年度及以后年度企业所得税申报。<br /> 特此公告。</p>