Use SINGLE_COLUMN layout in shownotes webview

This commit is contained in:
daniel oeh 2012-12-20 15:03:21 +01:00
parent bf904781e6
commit 63c86505a3
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;
import com.actionbarsherlock.app.SherlockFragment;
@ -65,6 +66,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
webvDescription.setBackgroundColor(0);
}
webvDescription.getSettings().setUseWideViewPort(false);
webvDescription.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
return webvDescription;
}