本文整理了Java中butterknife.OnItemClick.<init>()
方法的一些代码示例,展示了OnItemClick.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OnItemClick.<init>()
方法的具体详情如下:
包路径:butterknife.OnItemClick
类名称:OnItemClick
方法名:<init>
暂无
代码示例来源:origin: square/sqlbrite
@OnItemClick(android.R.id.list) void listClicked(long listId) {
listener.onListClicked(listId);
}
代码示例来源:origin: zfman/hputimetable
@OnItemClick(R.id.id_listView)
public void onItemClick(int pos){
Intent intent=new Intent(this,AdapterDebugHtmlActivity.class);
intent.putExtra("schoolName",list.get(pos).get("name"));
intent.putExtra("aid",list.get(pos).get("aid"));
startActivity(intent);
}
代码示例来源:origin: mengdd/HelloActivityAndFragment
@OnItemClick(R.id.samples_list)
void onSampleListClick(AdapterView<?> parent, View view, int position, long id) {
// Launch the sample associated with this list position.
startActivity(new Intent(MainActivity.this, mSamples[position].activityClass));
}
代码示例来源:origin: behindeye/WxPhoneNumberHelper
@OnItemClick(R.id.lv_group_list)
void onItemClick(int index) {
mHost.jump2PagerFragment(mGroupList, index);
}
代码示例来源:origin: mengdd/AndroidButterKnifeSample
@OnItemClick(R.id.samples_list)
void onSampleListClick(AdapterView<?> parent, View view, int position, long id) {
// Launch the sample associated with this list position.
startActivity(new Intent(MainActivity.this, mSamples[position].activityClass));
}
代码示例来源:origin: behindeye/WxPhoneNumberHelper
@OnItemClick(R.id.lv_center_number)
void onItemClick(int position) {
Intent intent = new Intent();
intent.putExtra(Const.KEY_CHOOSE_CENTER_NUMBER, mPhoneList.get(position));
setResult(RESULT_OK, intent);
back();
}
}
代码示例来源:origin: mengdd/AndroidButterKnifeSample
@OnItemClick(R.id.my_list_view)
void onItemClick(int position) {//though there are 4 parameters, you can just write the one you want to use
Toast.makeText(this, "You clicked: " + adapter.getItem(position).getName(), Toast.LENGTH_SHORT).show();
}
代码示例来源:origin: zfman/hputimetable
@OnItemClick(R.id.id_set_major_listview)
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
String major = datas.get(i).get("major");
setLoadLayout(true);
TimetableRequest.getByMajor(getContext(), major, new GetByMajorCallback(major));
}
代码示例来源:origin: m-cakir/radio-player
@OnItemClick(R.id.listview)
public void onItemClick(AdapterView<?> parent, View view, int position, long id){
Shoutcast shoutcast = (Shoutcast) parent.getItemAtPosition(position);
if(shoutcast == null){
return;
}
textView.setText(shoutcast.getName());
subPlayer.setVisibility(View.VISIBLE);
streamURL = shoutcast.getUrl();
radioManager.playOrPause(streamURL);
}
}
代码示例来源:origin: Coinomi/coinomi-android
@OnItemClick(R.id.coins_list)
void editFee(int currentSelection) {
Value fee = (Value) coinList.getItemAtPosition(currentSelection);
// Create the fragment and show it as a dialog.
DialogFragment editFeeDialog = EditFeeDialog.newInstance(fee.type);
editFeeDialog.show(getFragmentManager(), EDIT_FEE_DIALOG);
}
代码示例来源:origin: mzule/AndroidWeekly
@OnItemClick(R.id.listView)
void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Object item = parent.getAdapter().getItem(position);
if (item instanceof Article) {
startActivity(ArticleActivity.makeIntent(this, (Article) item));
}
}
代码示例来源:origin: mzule/AndroidWeekly
@OnItemClick(R.id.listView)
void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Object item = parent.getAdapter().getItem(position);
if (item instanceof Article) {
startActivityForResult(ArticleActivity.makeIntent(this, (Article) item), REQUEST_CODE_OPEN_ARTICLE);
}
}
代码示例来源:origin: mzule/AndroidWeekly
@OnItemClick(R.id.listView)
void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Object item = parent.getAdapter().getItem(position);
if (item instanceof Article) {
startActivity(ArticleActivity.makeIntent(this, (Article) item));
}
}
代码示例来源:origin: AmazMod/AmazMod
@OnItemClick(R.id.activity_file_explorer_list)
public void onItemClick(int position) {
FileData fileData = fileExplorerAdapter.getItem(position);
if (fileData.isDirectory()) {
loadPath(fileData.getPath());
}
}
代码示例来源:origin: openwalletGH/openwallet-android
@OnItemClick(R.id.coins_list)
void editFee(int currentSelection) {
Value fee = (Value) coinList.getItemAtPosition(currentSelection);
// Create the fragment and show it as a dialog.
DialogFragment editFeeDialog = EditFeeDialog.newInstance(fee.type);
editFeeDialog.show(getFragmentManager(), EDIT_FEE_DIALOG);
}
代码示例来源:origin: rakuishi/todo-android
@OnItemClick(R.id.todo_list_listview)
void onItemClick(int position) {
Todo todo = adapter.getItem(position);
todoManager.update(todo, !todo.isCompleted());
bus.post(new TodoEvent(TodoEvent.QUERY_UPDATE));
}
代码示例来源:origin: mzule/AndroidWeekly
@OnItemClick(R.id.listView)
void onItemClick(AdapterView<?> parent, View view, int position, long id) {
String q = (String) parent.getAdapter().getItem(position);
SearchHistoryKeeper.save(q);
startActivity(SearchResultActivity.makeIntent(this, q));
}
代码示例来源:origin: guofudong/EShop
@OnItemClick(R.id.list_cart_goods) void onItemClick(int position) {
// 跳转到商品详情页面.
CartGoods cartGoods = mGoodsAdapter.getItem(position);
Intent intent = GoodsActivity.getStartIntent(getContext(), cartGoods.getGoodsId());
startActivity(intent);
}
代码示例来源:origin: zfman/hputimetable
@OnItemClick(R.id.id_search_listview)
public void onItemClick(int i) {
School school = schools.get(i);
ActivityTools.toActivity(this, AdapterSchoolActivity.class,
new BundleModel().setFromClass(SearchSchoolActivity.class)
.put("school", school.getSchoolName())
.put("url", school.getUrl())
.put("type", school.getType())
.put("parsejs", school.getParsejs()));
}
代码示例来源:origin: mzule/AndroidWeekly
@OnItemClick(R.id.slideListView)
void onSlideItemClick(AdapterView<?> parent, View view, int position, long id) {
Issue issue = (Issue) parent.getAdapter().getItem(position);
active(issue);
slideAdapter.notifyDataSetChanged();
sendArticleListRequest(issue.getUrl());
drawerLayout.closeDrawers();
progressView.start();
}
内容来源于网络,如有侵权,请联系作者删除!