0

我正在创建一个用户需要填写表格的应用程序。我需要获取某些特定列为空的行并将其显示给用户。我可以通过

Cursor appcount=db.rawQuery("select count(app_salutation) AS appempty from "+AllValuesTable+" where app_salutation=''", null);
    appcount.moveToFirst();
    int apco=appcount.getInt(0);
    appcount.close();

现在我想显示这些有一些空字段的行。我怎么做??

4

1 回答 1

0

您可以使用

<?xml version="1.0" encoding="utf-8"?>
<ListLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >
</ListLayout> 
</Scrollable>

布局并放入其中 ListLayout

使用此链接

http://www.codeproject.com/Articles/316690/Custom-list-item-layout

于 2013-04-27T07:19:56.140 回答