早教吧作业答案频道 -->其他-->
求解,有关cursor的方法movetoposition请问当movetoposition的参数传入值为-1时,返回值是什么?在androiddevelopers里是只说明了范围是从-1~count,并没有说明传入-1时是啥。publicabstractbooleanmoveToPosit
题目详情
求解,有关cursor的方法movetoposition
请问 当movetoposition的参数传入值为-1时,返回值是什么?在android developers里是只说明了范围是从-1~count,并没有说明传入-1时是啥。public abstract boolean moveToPosition (int position) Move the cursor to an absolute position. The valid range of values is -1 <= position <= count. This method will return true if the request destination was reachable, otherwise, it returns false.Parametersposition the zero-based position to move to.Returns[*]whether the requested move fully succeeded.
请问 当movetoposition的参数传入值为-1时,返回值是什么?在android developers里是只说明了范围是从-1~count,并没有说明传入-1时是啥。public abstract boolean moveToPosition (int position) Move the cursor to an absolute position. The valid range of values is -1 <= position <= count. This method will return true if the request destination was reachable, otherwise, it returns false.Parametersposition the zero-based position to move to.Returns[*]whether the requested move fully succeeded.
▼优质解答
答案和解析
-1哪行神马都没有。cursor是个游标,初始位置是-1.通过movetonext获取到第一行,第二行。。。。。直到全部获取完。你给他传值-1如果取值的话。估计会报错吧
看了求解,有关cursor的方法m...的网友还看了以下:
有个单词“rg”中间缺俩字母.有个单词“rg”中间缺俩字母,是什么?还有“lrm”,还是缺俩。Th 2020-04-27 …
连字成词(英语)l u o e b s r u s r e t o s w a e s r t e 2020-05-14 …
用所给字母拼成单词.1.a,l,a,d,s.2.a,d,o,s.3.c,o,r,p,n用所给字母拼 2020-05-15 …
u,i,n,c,o,s可以拼成什么单词?还有,o,s,l,h,u,d还有,t,p.s.n.e.r, 2020-05-23 …
A.根据释义,拼写单词.1.costingalotofmoneyx,p,s,i,e,e,e,n,v 2020-06-10 …
.已知:Kps(ZnS)=1.2×10-23,Ksp(MnS)=1.4×10-15则()A.ϕo( 2020-06-11 …
英语中S+V+P,S+V,S+V+O,S+V+O+O和S+V+O+C句型是指什么? 2020-06-12 …
关于英语句子成分的一些问题S.V.N.C.O.M.VR.请全部列举并解释好的追加100分! 2020-07-17 …
已知直线l:y=k(x+2根号2)与圆x方+y方=4相交于A、B,O是原点.三角形ABO的面积为S已 2020-11-03 …
数学分析中的大O和小O我知道小o()是表示比括号中式子更高阶的无穷小,想请教一下小o的计算规则,如何 2020-11-28 …