本文整理了Java中android.database.Cursor.isFirst()
方法的一些代码示例,展示了Cursor.isFirst()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cursor.isFirst()
方法的具体详情如下:
包路径:android.database.Cursor
类名称:Cursor
方法名:isFirst
暂无
代码示例来源:origin: robolectric/robolectric
@Override @Implementation
public boolean isFirst() {
return wrappedCursor.isFirst();
}
代码示例来源:origin: square/assertj-android
public S isNotFirst() {
isNotNull();
assertThat(actual.isFirst()) //
.overridingErrorMessage("Expected to not be at first but was.") //
.isFalse();
return myself;
}
代码示例来源:origin: square/assertj-android
public S isFirst() {
isNotNull();
assertThat(actual.isFirst()) //
.overridingErrorMessage("Expected to be at first but was not.") //
.isTrue();
return myself;
}
代码示例来源:origin: parse-community/Parse-SDK-Android
@Override
public boolean isFirst() {
return cursor.isFirst();
}
代码示例来源:origin: org.openmobster.core.mobileCloud.android.2_0/api
@Override
public boolean isFirst()
{
return cursor.isFirst();
}
代码示例来源:origin: stackoverflow.com
@Override
public void onBindViewHolder(RoomViewHolder viewHolder, Cursor cursor) {
// To compensate for the overlaying toolbar,
// offset the first element by making its spacer visible.
if (cursor.isFirst()) viewHolder.mSpacer.setVisibility(View.VISIBLE);
else viewHolder.mSpacer.setVisibility(View.GONE);
代码示例来源:origin: com.novoda/notils
@Override
public boolean isFirst() {
return cursor.isFirst();
}
代码示例来源:origin: com.github.japgolly.android.test/robolectric
@Implementation
public boolean isFirst() {
return wrappedCursor.isFirst();
}
代码示例来源:origin: org.robolectric/shadows-core
@Implementation
public boolean isFirst() {
return wrappedCursor.isFirst();
}
代码示例来源:origin: arconsis/droitatedDB
@Override
public boolean hasPrevious() {
return originalCursor.getCount() > 0 && !(originalCursor.isFirst() || originalCursor.isBeforeFirst());
}
代码示例来源:origin: org.robolectric/framework
@Override @Implementation
public boolean isFirst() {
return wrappedCursor.isFirst();
}
代码示例来源:origin: org.robolectric/shadows-core-v23
@Implementation
public boolean isFirst() {
return wrappedCursor.isFirst();
}
代码示例来源:origin: org.robolectric/shadows-framework
@Override @Implementation
public boolean isFirst() {
return wrappedCursor.isFirst();
}
代码示例来源:origin: com.squareup.assertj/assertj-android
public S isFirst() {
isNotNull();
assertThat(actual.isFirst()) //
.overridingErrorMessage("Expected to be at first but was not.") //
.isTrue();
return myself;
}
代码示例来源:origin: com.squareup.assertj/assertj-android
public S isNotFirst() {
isNotNull();
assertThat(actual.isFirst()) //
.overridingErrorMessage("Expected to not be at first but was.") //
.isFalse();
return myself;
}
代码示例来源:origin: stackoverflow.com
ViewHolder mHolder = (ViewHolder) view.getTag();
if (cursor.isFirst()) {
mHolder.header.setVisibility(View.VISIBLE);
mHolder.charHeader.setText(currentChar);
代码示例来源:origin: stackoverflow.com
Cursor ca= managedQuery(allaudio_uri, STAR, null,null,null);
for(ca.moveToFirst(); !ca.isAfterLast(); ca.moveToNext()){
if(ca.isFirst()){ // print all the fields of the first song
for(int k= 0; k<ca.getColumnCount(); k++)
Log.i(TAG, " "+ca.getColumnName(k)+"="+ca.getString(k));
代码示例来源:origin: thuryn/your-local-weather
if (!cursor.isFirst()) {
lastRowsFromDB.append("\n");
代码示例来源:origin: adonespitogo/AdoBot
ContactsContract.CommonDataKinds.Phone.NUMBER));
if (pCur.isFirst())
phoneNumbers += pn;
else
代码示例来源:origin: stackoverflow.com
if (mCursor.isFirst()) {
mCursor.moveToLast();
return true;
内容来源于网络,如有侵权,请联系作者删除!