当前位置: 首页>>代码示例>>Java>>正文


Java ViewUtils.inject方法代码示例

本文整理汇总了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;
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:24,代码来源:Introduce_GridViewAdapter.java

示例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;
}
 
开发者ID:xulailing,项目名称:android-open-project-demo-master,代码行数:18,代码来源:BitMapFragment.java

示例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;
}
 
开发者ID:Limuyang1013,项目名称:ImitateNetEasyCloud,代码行数:19,代码来源:DiscoFragment.java

示例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;
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:8,代码来源:MyFragment.java

示例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;
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:8,代码来源:HomeFragment.java

示例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;
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:8,代码来源:CarmaraFragment.java

示例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();
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:15,代码来源:HDdetailActivity.java

示例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;
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:12,代码来源:HDdetailActivity.java

示例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();

}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:10,代码来源:WellcomeAddOurActivity.java

示例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);
    // 
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:10,代码来源:MainActivity.java

示例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();
}
 
开发者ID:liupengandroid,项目名称:ywApplication,代码行数:10,代码来源:IntroduceActivity.java

示例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();
}
 
开发者ID:z13538657403,项目名称:CustomShoppingCarDemo,代码行数:13,代码来源:MainActivity.java

示例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;
}
 
开发者ID:zhangxiaomenglin,项目名称:PalmCampus,代码行数:13,代码来源:NewsMenuDetailPager.java

示例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;
}
 
开发者ID:Limuyang1013,项目名称:ImitateNetEasyCloud,代码行数:13,代码来源:ControlBarFragment.java

示例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;
}
 
开发者ID:xulailing,项目名称:android-open-project-demo-master,代码行数:15,代码来源:DbFragment.java


注:本文中的com.lidroid.xutils.ViewUtils.inject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。