Exemplo n.º 1
0
 @Override
 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
   propGridView.requestFocusFromTouch();
   propGridView.setSelection(position);
   propAdapter.notifyDataSetChanged();
   /*
   Toast.makeText(SelectProp.this, "prop ID : " + propList.get(position).getID()  +
   		"\nprop Name : " + propList.get(position).getName() +
   		"\nprop Path : " + propList.get(position).getPath()
   		, Toast.LENGTH_SHORT).show();
   		*/
   selectedposition = position;
   FinishSelection();
 }
Exemplo n.º 2
0
  private void loadPropList() {
    propList.clear();
    String msg;
    msg = queryer.SelectPropID();
    String[] imgID = msg.split("\n");
    msg = queryer.SelectPropLabel();
    String[] imgName = msg.split("\n");
    msg = queryer.SelectPropSource();
    String[] imgSrc = msg.split("\n");

    for (int i = 0; i < imgID.length; i++) {
      ItemObject prop = new ItemObject();
      prop.setID(imgID[i]);
      prop.setName(imgName[i]);
      prop.setPath(queryer.getMaterialURL() + DefaultSetting.PropPath + imgSrc[i]);
      propList.add(prop);
      propAdapter.notifyDataSetChanged();
    }
  }