2013-04-27 53 views
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(); 

現在我想顯示這些行其中有一些空的精密組件獲得節數行數。 我該怎麼做?

+0

一看便知下來ListLayout

2013-04-27 07:22:07

回答

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> 

佈局,並把它裏面使用這個鏈接

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

相關問題