android页面怎么把数据显示在类似表格的控件上
解决方案 »
- 关于调用百度地图的一个问题
- Android如何设置Text的属性为:如 abc³ 等有上下标的文字
- 如何禁止/启动屏幕的触摸消息?弹出ProgressDialog进度框之后触摸屏幕就消失了
- 关于按钮中添加ChartFactory.getLineChartIntent
- 调用相机问题不能取到最近照的
- boa移植到android上,改写Android.mk时出错。。。
- 求教!
- android学习之我见
- 关于android的nativewindow的显示问题
- Android studio 运行错误
- android 求助EditText中组合键抓取
- 调试android 系统时, 想看java 中的调试信息, 如何看?
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:entries="@array/books"
/>android:entries="@array/books"
books就是你存在的数据数组
"字符串2",
"字符串3",
"字符串4",
"字符串5"};
ArrayAdapter aa=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,s);
listView.setAdapter(aa);这是显示到 listView中的代码,
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="horizontal"> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/str_url" />
<AutoCompleteTextView
android:id="@+id/et_mmssend_url"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_weight="0.27"
android:completionThreshold="1"
android:dropDownHeight="wrap_content" /> </LinearLayout>et_url = (EditText)findViewById(R.id.et_mmssend_url);
用类似的方法