我现在想用android中显示以下的内容,但不是全屏显示,是屏幕的一部分显示,数据时从服务器传送过来的,

2025-03-04 06:34:18
推荐回答(3个)
回答1:

用android的ListView啊,设置listview为全屏就可以了,这样的表格在item中设置textView为1像素就可以了

回答2:


android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="@android:color/darker_gray" >

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal" >
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@android:color/background_light" >

android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2" >




大概就是这个意思,你要实现的内容还是用 ListView。不知道具体需求,仅供参考

回答3:

用一个listview,定住他的高和宽,获取数据直接写入listview就可以了