com.lidroid.xutils.ViewUtils Java Examples
The following examples show how to use
com.lidroid.xutils.ViewUtils.
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: 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 #3
Source File: TuDetailActivity.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(); } }); initContent(); }
Example #4
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 #5
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 #6
Source File: AllJokeActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.e(TAG, "onCreate"); ViewUtils.inject(this); mCategoryList.add("最新"); mCategoryList.add("最热"); mFragments = new ArrayList<Fragment>(); initFragment(); }
Example #7
Source File: DbFragment.java From android-open-project-demo with Apache License 2.0 | 5 votes |
@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; }
Example #8
Source File: DownFragment.java From android-open-project-demo with Apache License 2.0 | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.down_fragment_view, container, false); ViewUtils.inject(this, view); http = new HttpUtils(); return view; }
Example #9
Source File: HttpFragment.java From android-open-project-demo with Apache License 2.0 | 5 votes |
@Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.http_fragment_view, container, false); ViewUtils.inject(this, view); http = new HttpUtils(); return view; }
Example #10
Source File: TitleNavigate.java From AndJie with GNU General Public License v2.0 | 5 votes |
private void initLayout() { context = getContext(); view = LayoutInflater.from(context).inflate(R.layout.item_title_bar, null); ViewUtils.inject(this, view); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT); addView(view, params); }
Example #11
Source File: AddPicturePopup.java From AndJie with GNU General Public License v2.0 | 5 votes |
@Override public void initPopView(View parent) { super.initPopView(parent); view = (View) JieApp.instance.getInflater().inflate( R.layout.item_pop_add_picture, null); ViewUtils.inject(this, view); initPopWindow(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); startPop(Gravity.BOTTOM, 0, 0); }
Example #12
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 #13
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 #14
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 #15
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 #16
Source File: IndexActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); App.addActivity(this); // 在界面启动栈中加入该界面 UmengUpdateAgent.update(this); //友盟检查更新 init(); uploadDingOrCai(); }
Example #17
Source File: FeedbackActivity.java From QiQuYing with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); mUserService = new UserServiceImpl(this); mHandler = new ClassHandler(this); }
Example #18
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 #19
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 #20
Source File: LoginActivity.java From ImitateTaobaoApp with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); ViewUtils.inject(this); initToolBar(); }
Example #21
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 #22
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 #23
Source File: ShoppingDetailActivity.java From ShoppingCartActivity with Apache License 2.0 | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_shop_detail); ViewUtils.inject(this); initView(); tvCommodity.setText("商品详情"); //btnRightHead.setBackgroundResource(R.drawable.menu_com); getNetDatas(); popuWindowDialog(); }
Example #24
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 #25
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 #26
Source File: BaseActivity.java From AndJie with GNU General Public License v2.0 | 4 votes |
protected void beforeCreate() { ViewUtils.inject(this); }
Example #27
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 #28
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 #29
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 #30
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); }