本文整理汇总了Java中com.lidroid.xutils.ViewUtils.inject方法的典型用法代码示例。如果您正苦于以下问题:Java ViewUtils.inject方法的具体用法?Java ViewUtils.inject怎么用?Java ViewUtils.inject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.lidroid.xutils.ViewUtils
的用法示例。
在下文中一共展示了ViewUtils.inject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder viewHolder=null;
if(convertView==null){
convertView= LayoutInflater.from(context).inflate(R.layout.item_introduce_gridview,null);
viewHolder=new ViewHolder();
ViewUtils.inject(viewHolder,convertView);
convertView.setTag(viewHolder);
}else {
viewHolder = (ViewHolder) convertView.getTag();
viewHolder.imageViewIntroduce.setImageResource(R.mipmap.xiangguanfenxiang_morentu);
}
Introduce.Member_Share data=datas.get(position);
viewHolder.address.setText(data.getShop_name());
viewHolder.timeIntroduce.setText(data.getTime_tips());
viewHolder.dishNameIntroduce.setText(data.getDish_name());
viewHolder.num.setText(data.getAward_count());
bitmapUtils.display(viewHolder.imageViewIntroduce, data.getMain_photo_url());
return convertView;
}
示例2: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater,
@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.bitmap_fragment_view, container,
false);
ViewUtils.inject(this, view);
adapter = new MyAdapter(getActivity());
listView.setAdapter(adapter);
bitmapUtils = new BitmapUtils(getActivity());
bitmapUtils.configDefaultLoadingImage(R.drawable.ic_launcher);
bitmapUtils.configDefaultLoadFailedImage(R.drawable.down);
bitmapUtils.configDefaultBitmapConfig(Bitmap.Config.RGB_565);
loadImgList("http://www.22mm.cc/");
return view;
}
示例3: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
if (v != null) {
ViewUtils.inject(this, v);
return v;
}
v = inflater.inflate(R.layout.disco_fragment, container, false);
ViewUtils.inject(this, v);
addView();
MyAdapter myAdapter = new MyAdapter(getFragmentManager());
myAdapter.notifyDataSetChanged();
main_viewpager.setAdapter(myAdapter);
main_viewpager.setOffscreenPageLimit(2);
main_tab.setTabMode(TabLayout.MODE_FIXED);
main_tab.setupWithViewPager(main_viewpager);
return v;
}
示例4: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.my_fragment_layout,container,false);
ViewUtils.inject(this,view);
return view;
}
示例5: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.home_fragment_layout, null);
this.inflater = inflater;
ViewUtils.inject(this, view);
return view;
}
示例6: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.carmara_fragment_layout,null);
ViewUtils.inject(this, view);
takeImage();
return view;
}
示例7: onCreate
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_hddetail);
ViewUtils.inject(this);
ptrListView.setMode(PullToRefreshBase.Mode.DISABLED);
initBitmapUtils();
View headView = getHeadView();
ptrListView.getRefreshableView().addHeaderView(headView);
list = new ArrayList<>();
adapter = new HdPtrlistviewAdapter(list,getApplicationContext());
ptrListView.setAdapter(adapter);
loadData();
}
示例8: getHeadView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
public View getHeadView(){
View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.huodong_detail_headview_layout,null);
ViewUtils.inject(this,view);
if (huoDongBean!=null){
bitmapUtils.display(huodong_headview_img,huoDongBean.getData().getIndex_activity_item().getImage_url());
huodong_upimg_name.setText(huoDongBean.getData().getIndex_activity_item().getName());
huodong_people_time.setText(huoDongBean.getData().getIndex_activity_item().getActivity_time_tip()+" "+huoDongBean.getData().getIndex_activity_item().getMember_count()+"人分享");
huodong_huodong_detail_textview.setText(huoDongBean.getData().getIndex_activity_item().getDesc());
}
return view;
}
示例9: onCreate
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
setContentView(R.layout.activity_wellcomeinour);
ViewUtils.inject(this);
httpUtils=new HttpUtils();
mobile=telephoneNum.getText().toString();
}
示例10: onCreate
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ViewUtils.inject(this);
initFragments();
FragmentTabUtils fragmentTalUtils = new FragmentTabUtils(getSupportFragmentManager(),fragments,R.id.main_activity_zhanweilayout,raiogroup);
//
}
示例11: onCreate
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.introduce_gridview);
ViewUtils.inject(this);
path=String.format(method,getIntent().getStringExtra("_member_id"));
initView();
loadData();
}
示例12: onCreate
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ViewUtils.inject(this);
mContext = this;
initView();
setRecyclerView();
initHttp();
}
示例13: initViews
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public View initViews() {
View view = View.inflate(mActivity, R.layout.news_menu_detail, null);
mViewPager = (ViewPager) view.findViewById(R.id.vp_menu_detail);
ViewUtils.inject(this, view);// 注入事件
mIndicator = (TabPageIndicator) view.findViewById(R.id.indicator);
mIndicator.setOnPageChangeListener(this);
return view;
}
示例14: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
if (v != null) {
ViewUtils.inject(this, v);
return v;
}
v = inflater.inflate(R.layout.bottom_music_layout, container, false);
ViewUtils.inject(this, v);
addView();
return v;
}
示例15: onCreateView
import com.lidroid.xutils.ViewUtils; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater,
@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.db_fragment_view, container,
false);
ViewUtils.inject(this, view);
db = DbUtils.create(this.getActivity());
// 创建方式有多个重载, 实际项目中可能选择这个 因为数据库升级,后期数据维护都用的到
// DbUtils.create(context, dbDir, dbName, dbVersion, dbUpgradeListener)
db.configDebug(true); // debug模式 会输入sql语句
db.configAllowTransaction(true); // 允许事务
return view;
}