我想在微调器中设置提示。就像在编辑文本中,我给出的提示,那就是:如何在Android中为微调器设置提示
android:Hint="First Name"
那么我应该怎样为Spinner做状态?
我的状态将从数据库动态填充。如果我给出index[0]
数组中的提示,那么它将影响该字段的第零个位置。
我该怎么办?
代码
public String[] getState()
{
try
{
Cursor cursor = dbUser.State();
if (cursor.getCount() >= 0)
{
array_state = new String[cursor.getCount()];
i = 0;
while (cursor.moveToNext())
{
array_state[i] = cursor.getString(1);
i++;
}
}
}
catch (Exception e)
{
// TODO: handle exception
}
return array_state;
}
使用TOAST信息... – 2011-12-19 06:15:12
不... ...如何吐司留言..我想显示它进入微调,提示是什么,你应该填写here..like如果状态是那里..then.then.like这种类型 – user1061793 2011-12-19 06:17:09
我无法理解 – 2011-12-19 06:18:32