将ListView伸展到单个屏幕?
答
与自定义视图不见了。
夫妇片断: PreferenceCategory样的TextView:
<TextView style="?android:attr/listSeparatorTextViewStyle"/>
ListView的分离:
<ImageView android:src="?android:attr/listDivider"android:layout_height="1dp" android:layout_width="fill_parent"/>
答
不要以为这是一种简单的方法。
定义您自己的适配器类,然后您将不得不调整出现在ListView中的TextView的文本大小和其他参数,以便适合您的屏幕。
答
有没有简单的方法来做到这一点。最好的方法是将你的列表视图封装在div中并为其添加溢出。这将使它成为apper,该列表位于iframe中。请参阅本 - >
style type="text/css">
<!--
div.scroll {
height: 200px;
width: 300px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;
}
-->
</style>
<div class="scroll">
<asp:ListView id="ListView1"...../>
</div>
请参阅本 - >http://www.domedia.org/oveklykken/css-div-scroll.php
+0
赦免........? – 2013-07-31 07:56:42
是,目前看来不占用全屏或占用更多较发行全屏?您希望如何对屏幕方向更改做出反应? – Will 2009-07-01 17:44:59
无所谓,它需要几乎全屏,我希望它完全满屏。该应用仅限肖像。自定义视图。 – yanchenko 2009-07-01 18:58:29