本文整理汇总了Java中android.support.v7.internal.widget.AdapterViewCompat类的典型用法代码示例。如果您正苦于以下问题:Java AdapterViewCompat类的具体用法?Java AdapterViewCompat怎么用?Java AdapterViewCompat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdapterViewCompat类属于android.support.v7.internal.widget包,在下文中一共展示了AdapterViewCompat类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateContextMenu
import android.support.v7.internal.widget.AdapterViewCompat; //导入依赖的package包/类
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
MenuInflater inflater = getActivity().getMenuInflater();
inflater.inflate(R.menu.audio_list_browser, menu);
int position = 0;
if (menuInfo instanceof AdapterViewCompat.AdapterContextMenuInfo)
position = ((AdapterViewCompat.AdapterContextMenuInfo)menuInfo).position;
setContextMenuItems(menu, v, position);
}
示例2: IconAdapter
import android.support.v7.internal.widget.AdapterViewCompat; //导入依赖的package包/类
public IconAdapter(Context context, AdapterViewCompat.OnItemClickListener onItemClickListener) {
mContext = context;
mOnItemClickListener = onItemClickListener;
}
示例3: onItemSelected
import android.support.v7.internal.widget.AdapterViewCompat; //导入依赖的package包/类
@Override
public void onItemSelected(AdapterViewCompat<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
}
示例4: onNothingSelected
import android.support.v7.internal.widget.AdapterViewCompat; //导入依赖的package包/类
@Override
public void onNothingSelected(AdapterViewCompat<?> arg0) {
// TODO Auto-generated method stub
}