在存储过程MS SQL中我的查询是:
SELECT *
FROM ContentReportRequests a,UserPreferences d
WHERE a.UserID = d.UserID and a.ID =@ID
Run Code Online (Sandbox Code Playgroud)
我想给结果表一些名字.我怎样才能做到这一点 ?
我想把它拉到ADO.Net DataSet.tables ["NAME"]
由于某种原因,setItemChecked不起作用.有人可以帮我解决问题吗?
String[] str = getResources().getStringArray(R.array.brush_type);
sizeArrayAdapter = new ArrayAdapter<String>(this.getContext(), R.layout.drawing_list_item, str);
listType = SIZE_LIST;
listView.setAdapter(sizeArrayAdapter);
// Populate the listView
listView.setItemChecked(4,true);
Run Code Online (Sandbox Code Playgroud)
这是列表项:
<CheckedTextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawingCheckedTextView"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:checkMark="?android:attr/listChoiceIndicatorSingle"
android:background="@drawable/list_panel"
android:paddingLeft="6dip"
android:paddingRight="6dip"/>
Run Code Online (Sandbox Code Playgroud)
请帮我.