2013-04-27 3 views
0

사용자가 양식을 작성해야하는 앱을 만들고 있습니다. 일부 특정 열이 비어있는 행을 가져와 사용자에게 표시해야합니다. 내가 지금은 일부 빈 feilds이 이러한 행을 표시 할테이블의 일부 열에 빈 값이있는 행을 표시합니다.

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 내부에 넣을 수 있습니다 –

답변

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

관련 문제