在Android上使用適配器的最佳方式是什麼?我們可以將它用於多種自定義操作。通過使用適配器,我們將包含一些預先實施的方法。我應該什麼時候使用這些方法?我們如何通過使用適配器實現的方法來提高我們的應用程序的性能?在Android上使用適配器的最佳方式是什麼?
public int getCount() {
// TODO Auto-generated method stub
return country.length;
}
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
}
Android平臺所提供超過適配器巫婆適配器要使用? –
它更好地瞭解每個One One One中的所有適配器! – gowri
你有什麼嘗試?你遇到了什麼問題?更具體一點,這將有助於人們幫助你。 – neevek