我正在尝试Android Studio中的东西。它进展得很好,但只是我陷入了一件事。我如何让WebView活动使用全屏尺寸? http://i.stack.imgur.com/oYJoP.pngAndroid Studio - WebView全尺寸
2
A
回答
0
requestWindowFeature(Window.FEATURE_NO_TITLE);
在活动onCreate方法
0
使用下面的代码的setContentView
setContentView(R.layout.yourlayout);
之前。这个工作对我来说
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</WebView>
如果您正在使用WebView
在另一个布局如LinearLayout
不至布局给填充...
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</WebView>
</LinearLayout>
如果你想隐藏ActionBar
太然后跳转到你清单文件和您的活动标记使用android:theme="@style/Theme.AppCompat.Light.NoActionBar"
<activity
android:name=".YourActivityName"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
相关问题
- 1. WebView Android试图获得全尺寸
- 2. Android Studio多屏幕尺寸
- 3. 尺寸图像以适合WebView尺寸
- 4. Android WebView - 请参阅全尺寸的页面(如pc)
- 5. Android如何使用webview显示全尺寸的巨大图像
- 6. 全尺寸AmCharts
- 7. 全尺寸
- 8. 全屏尺寸
- 9. 更改屏幕尺寸的按钮尺寸Android Studio
- 10. android studio预览尺寸与实际尺寸不一样
- 11. 全尺寸Silverlight应用尺寸
- 12. Android Studio:减小字体尺寸
- 13. webview中的直接图像链接显示全部尺寸
- 14. 在Facebook上使用全尺寸在全尺寸上照片使用GRAPH API Android
- 15. Swing全尺寸JPanel
- 16. textarea至全尺寸
- 17. Android EditText布局宽度全尺寸
- 18. Android:不能让ListView的全尺寸
- 19. Android:按钮上的全尺寸文本
- 20. Android图片不显示全尺寸
- 21. Android Widget尺寸
- 22. Android ViewPager尺寸
- 23. c#Windows Phone 8.1 HTML尺寸小于WebView尺寸
- 24. android多种屏幕尺寸
- 25. Android屏幕尺寸
- 26. Android Bitmap降尺寸
- 27. Android屏幕尺寸
- 28. 离子全尺寸背景
- 29. colorbox全尺寸图像
- 30. get_post_gallery全尺寸图像
我在哪里可以找到setContentView? (是的,我是新手,不需要告诉我;)) – andreglud 2014-10-16 12:56:53