下面放置一个的ListView的WebView在Android应用程序图像 [英] Placing a WebView below ListView with images in android application
本文介绍了下面放置一个的ListView的WebView在Android应用程序图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发一个Android应用程序中,我有一个的ListView
与images.I想要的的WebView
应放在以下类别。
I am developing an android application In which i have a ListView
with images.I want that WebView
should be placed below the categories..
该视图的截图
http://www.imageupload.org/?d=B6D3C3E61
谁能告诉我应该怎么放置的WebView
在下方空间类别?
Can anyone tell how should I place a WebView
in the space below categories?
在此先感谢
图莎尔
Thanks in advance Tushar
推荐答案
使用相对布局。下面的列表视图的地方的WebView
Use relative layout. place webview below of listview
与下面的XML的方法尝试
Try with the following xml approach
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/toplayout"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="100dip"
android:layout_alignParentTop="true"
android:background="#ffffff">
<ListView
android:id="@+id/ListView01"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</ListView>
</LinearLayout>
<LinearLayout
android:id="@+id/buttonlayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/toplayout">
<WebView
android:id="@+id/webview001"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
谢谢
迪帕克
Thanks Deepak
这篇关于下面放置一个的ListView的WebView在Android应用程序图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文