Java Code Examples for com.lidroid.xutils.ViewUtils#inject()
The following examples show how to use
com.lidroid.xutils.ViewUtils#inject() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BitMapFragment.java From android-open-project-demo with Apache License 2.0 | 6 votes |
@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; }
Example 2
Source File: UserCenterActivity.java From QiQuYing with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); init(); initCheckBoxStatusAndSetListenner(); UmengUpdateAgent.setUpdateListener(new UmengUpdateListener() { @Override public void onUpdateReturned(int updateStatus,UpdateResponse updateInfo) { switch (updateStatus) { case UpdateStatus.Yes: // has update UmengUpdateAgent.showUpdateDialog(UserCenterActivity.this, updateInfo); break; case UpdateStatus.No: // has no update ToastUtils.showMessageInCenter(UserCenterActivity.this, "已是最新版本"); break; case UpdateStatus.Timeout: // time out ToastUtils.showMessageInCenter(UserCenterActivity.this, "检测超时"); break; } } }); }
Example 3
Source File: QuShiDetailActivity.java From QiQuYing with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mQuShiService = new JokeServiceImpl(this); if(App.currentUser != null) { mUserId = App.currentUser.getId(); } mSharePopWindow = new SharePopWindow(this); mListView.setHaveScrollbar(false); mCommentAdapter = new CommentAdapter(this); mListView.setAdapter(mCommentAdapter); mListView.setOnFootLoadingListener(new OnFootLoadingListener() { @Override public void onFootLoading() { loadComments(); } }); initQuShiContent(); }
Example 4
Source File: CartActivity.java From MarketAndroidApp with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cart); ViewUtils.inject(this); mContext = this; //从SharedPreferences中获取用户id uId = (Integer) SharedPreferencesUtil .get(mContext, "userInfo", "userId", 0); //初始化绑定控件 init(); //初始化数据 initData(); }
Example 5
Source File: MeiTuActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mCategoryList.add("最新"); mCategoryList.add("最热"); mFragments = new ArrayList<Fragment>(); initFragment(); }
Example 6
Source File: QuTuActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mCategoryList.add("最新"); mCategoryList.add("最热"); mFragments = new ArrayList<Fragment>(); initFragment(); }
Example 7
Source File: MyCollectActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); if(App.currentUser != null) { mUserId = App.currentUser.getId(); } mCollectDAO = new CollectDAO(this); init(); }
Example 8
Source File: FindPwdActivity1.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mHint = getResources().getString(R.string.sms_timer); mSmsContent = new SmsContent(new Handler()); //注册短信变化监听 this.getContentResolver().registerContentObserver(Uri.parse("content://sms/"), true, mSmsContent); }
Example 9
Source File: QuShiActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mCategoryList.add("最新"); mCategoryList.add("最热"); mFragments = new ArrayList<Fragment>(); initFragment(); }
Example 10
Source File: ImageShowActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); initBitmapUtils(); String url = getIntent().getStringExtra("url"); mBitmapUtils.display(mPhotoView, url); }
Example 11
Source File: CreateOrderActivity.java From ImitateTaobaoApp with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_create_order); ViewUtils.inject(this); showData(); init(); }
Example 12
Source File: CheckCodeActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mSmsContent = new SmsContent(new Handler()); //注册短信变化监听 this.getContentResolver().registerContentObserver(Uri.parse("content://sms/"), true, mSmsContent); init(); }
Example 13
Source File: LoginActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mTencent = App.mTencent; mEventHandler = new EventHandler(){ @Override public void afterEvent(int event, int result, Object data) { ProgressDialogUtils.dismiss(); if (result == SMSSDK.RESULT_COMPLETE) { // 回调完成 if (event == SMSSDK.EVENT_GET_VERIFICATION_CODE) { // 获取验证码成功 if(App.smsCodeRecode == null) { App.smsCodeRecode = new HashMap<String, Long>(); } //记录已发送记录 App.smsCodeRecode.put(mPhone, System.currentTimeMillis()); Intent intent = new Intent(LoginActivity.this, CheckCodeActivity.class); intent.putExtra("phone", mPhone); intent.putExtra("password", mPassword); startActivityWithAnimation(intent); } } else { ToastUtils.showMessageInCenter(LoginActivity.this, "发送失败, 请重试"); } } }; }
Example 14
Source File: ReSetPwdActivity.java From QiQuYing with Apache License 2.0 | 4 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mPhone = getIntent().getStringExtra("phone"); }
Example 15
Source File: UpdateNickActivity.java From QiQuYing with Apache License 2.0 | 4 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); init(); }
Example 16
Source File: UserInfoActivity.java From QiQuYing with Apache License 2.0 | 4 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); init(); }
Example 17
Source File: CreateUserInfoActivity.java From QiQuYing with Apache License 2.0 | 4 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); }
Example 18
Source File: BaseActivity.java From AndJie with GNU General Public License v2.0 | 4 votes |
protected void beforeCreate() { ViewUtils.inject(this); }
Example 19
Source File: AboutActivity.java From QiQuYing with Apache License 2.0 | 4 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mAboutVersion.setText(new StringBuilder("奇趣营 V").append(ToolsUtils.getVersionName(this))); }
Example 20
Source File: EmoticonsKeyBoardFragment.java From BigApp_Discuz_Android with Apache License 2.0 | 3 votes |
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.view_keyboardpopwindow, container, false); ViewUtils.inject(this, view); mEmoticonsPageView = (EmoticonsPageView) view.findViewById(R.id.view_epv); mEmoticonsIndicatorView = (EmoticonsIndicatorView) view.findViewById(R.id.view_eiv); mEmoticonsToolBarView = (EmoticonsToolBarView) view.findViewById(R.id.view_etv); ZogUtils.printError(EmoticonsKeyBoardFragment.class, "onCreateView mEmoticonsPageView:" + mEmoticonsPageView + " mEmoticonsToolBarView:" + mEmoticonsToolBarView); view.setBackgroundColor(Color.WHITE); int w = getActivity().getWindowManager().getDefaultDisplay().getWidth(); ZogUtils.printError(EmoticonsKeyBoardFragment.class, "w:" + w + " h:" + Utils.dip2px(getActivity(), Utils.getDefKeyboardHeight(getActivity()))); RelativeLayout.LayoutParams param = new RelativeLayout.LayoutParams(w , Utils.dip2px(getActivity(), Utils.getDefKeyboardHeight(getActivity()))); param.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); view.setLayoutParams(param); updateView(); return view; }