@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.imagelay); ViewUtils.inject(this); }
@Nullable @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fg_scenic, container, false); ViewUtils.inject(this, view); mFragments.add(FragScenicContainer.getInstance("1")); mFragments.add(FragScenicContainer.getInstance("2")); mFragments.add(FragScenicContainer.getInstance("3")); mSlidingTabLayout.setSelectedIndicatorColors(getResources().getColor(R.color.green)); // mViewPager.setOffscreenPageLimit(2); mSlidingTabLayout.setDistributeEvenly(true); mSlidingTabLayout.setCustomTabView(R.layout.sliding_layout, R.id.text); MyAdapter adapter = new MyAdapter(getFragmentManager()); mViewPager.setAdapter(adapter); mSlidingTabLayout.setViewPager(mViewPager); mViewPager.setCurrentItem(1); mCitySelect.setOnClickListener(this); return view; }
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_reg_second); ViewUtils.inject(this); initToolBar(); phone = getIntent().getStringExtra("phone"); pwd = getIntent().getStringExtra("pwd"); countryCode = getIntent().getStringExtra("countryCode"); String formatedPhone = "+" + countryCode + " " + splitPhoneNum(phone); String text = getString(R.string.smssdk_send_mobile_detail) + formatedPhone; mTxtTip.setText(Html.fromHtml(text)); CountTimerView timerView = new CountTimerView(mBtnResend); timerView.start(); SMSSDK.initSDK( this, ManifestUtil.getMetaDataValue(this, "mob_sms_appKey"), ManifestUtil.getMetaDataValue(this, "mob_sms_appSecrect")); evenHanlder = new SMSEvenHanlder(); SMSSDK.registerEventHandler(evenHanlder); dialog = new SpotsDialog(this); dialog = new SpotsDialog(this, "正在校验验证码"); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ui_list); ViewUtils.inject(this); initView(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); // 設置背景 Bitmap background = SingletonBitmapClass.getInstance().getBackgroundBitmap(); ViewCompat.setBackground(layout_all, new BitmapDrawable(getResources(), background)); teamInfoComplete = getIntent().getParcelableExtra(TeamInfoActivity.INTENT_TEAM_COMPLETE_INFO_BEAN); if (teamInfoComplete == null) { isCompleteInfo = false; onlyTeam = getIntent().getParcelableExtra(TeamInfoActivity.INTENT_TEAM_INFO_BEAN); if (onlyTeam == null) { // 加载默认的空白页面 right.setEnabled(false); title.setText("球队成员"); return; } else { title.setText("球队成员"); isCaptain = isCaptain(onlyTeam); path4Team(); } } else { isCompleteInfo = true; title.setText("球队成员"); isCaptain = isCaptain(teamInfoComplete.getTeam()); path4CompleteTeam(); } if (isCaptain) { right.setText("邀请"); } else { right.setVisibility(View.GONE); } }
@Override public View getView() { View view = View.inflate(UIUtils.getContext(), R.layout.home_item, null); ViewUtils.inject(this, view); return view; }
@Override public void initView() { ViewUtils.inject(this); getActionBar().setTitle("Gank"); getActionBar() .setSubtitle(TimeUtils.getYear() + "/" + TimeUtils.getMonth() + "/" + TimeUtils.getDay()); mDrawerToggle = new ActionBarDrawerToggle( this, drawerLayout, R.mipmap.ic_launcher, R.string.drawer_open, R.string.drawer_close) { public void onDrawerClosed(View view) { invalidateOptionsMenu(); // creates call to // onPrepareOptionsMenu() } public void onDrawerOpened(View drawerView) { invalidateOptionsMenu(); // creates call to // onPrepareOptionsMenu() } }; // drawerLayout.setDrawerShadow(R.mipmap.ic_launcher, GravityCompat.START); drawerLayout.setDrawerListener(mDrawerToggle); FragmentManager fm = getSupportFragmentManager(); FragmentTransaction transaction = fm.beginTransaction(); transaction.add(R.id.main_container, new CurrentDatasFragment()); transaction.commit(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.register_three); ViewUtils.inject(this); initialize(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); ViewUtils.inject(this); Init(); }
@Override public View initViews() { View view = View.inflate(mActivity, R.layout.fragment_content, null); // rgGroup = (RadioGroup) view.findViewById(R.id.rg_group); ViewUtils.inject(this, view); // 注入view和事件 return view; }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); ViewUtils.inject(this); /* * 功能:获取前面activity传过来的uuid */ Bundle bundle = getIntent().getExtras(); uuid = bundle.getString("uuid"); isOrigin = bundle.getBoolean("isOrigin"); if (isOrigin) iv_inform_edit.setVisibility(View.VISIBLE); messageCount = bundle.getString("messageCount"); volleyRequestQueue = Volley.newRequestQueue(this); context = InformActivity.this; loadingDialog = new LoadingDialog(context); loadingDialog.setLoadingString("请稍等"); loadingDialog.showLoadingDialog(); // 初始化 init(); /* * 功能:progress'判断网络状态的标志 */ // progress = new ProgressDialog(InformActivity.this); // progress.setMessage("请稍等"); // progress.setCanceledOnTouchOutside(false); // progress.setCancelable(false); // progress.show(); // 获取后台数据 NetConnect(uuid); }
// 创建视图格式 @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.activity_viewpager, null); activity = (BaseActivity) getActivity(); ViewUtils.inject(this, view); if (from != null && from.equals(Constants.EXTRA_FROM_COMMENT_EDIT) || from.equals(Constants.EXTRA_FROM_FRAGMENT_MESSAGE)) { activity.initActionBar(R.drawable.icon_back, 0, getString(R.string.title_member), false); activity.setOnClickLeftListener( new View.OnClickListener() { @Override public void onClick(View v) { activity.detachFragment(MemberContainerFrg.this); if (onActionBarUpdateListener != null) { onActionBarUpdateListener.shouldUpdateActionBar(); } } }); } else if (from.equals(Constants.EXTRA_FROM_HOME)) { activity.initActionBar( R.drawable.icon_navigation, 0, getString(R.string.title_member), false); } setSearchView(); sideBar.setVisibility(View.VISIBLE); sideBar.setTextView(alphabeticHint); tabStrip.setUnderlineHeight(1); tabStrip.setDividerColorResource(R.color.slide_filler); tabStrip.setDividerPadding(DensityUtil.dip2px(activity, 4)); return view; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_successrenzheng); ViewUtils.inject(this); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.verify); ViewUtils.inject(this); // 记录Activity以便退出时全部finish() Const.activityList.add(this); count = new TimeCount(60000, 1000); // 构造CountDownTimer对象 Button goButton = (Button) findViewById(R.id.gobutton); ImageView back = (ImageView) findViewById(R.id.ivAppBack); textState.setTextSize(12); SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder("点击“手机绑定登陆”,即表示同意《超速洗用户协议》"); ForegroundColorSpan blueSpan = new ForegroundColorSpan(Color.parseColor("#28ccfc")); spannableStringBuilder.setSpan( new URLSpan("http://www.baidu.com"), 16, spannableStringBuilder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); spannableStringBuilder.setSpan( blueSpan, 16, spannableStringBuilder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); textState.setMovementMethod(LinkMovementMethod.getInstance()); textState.setText(spannableStringBuilder); }
// 接口URL:http://www.gamept.cn/yx_lanmu_new.php?id=? @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_category, null); ViewUtils.inject(this, view); return view; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_main); ViewUtils.inject(this); mainActivity = this; remindDB = new RemindDB(this); remindfzDB = new RemindfzDB(this); remindzjDB = new RemindzjDB(this); remindnewsDB = new RemindnewsDB(this); userDB = new UserDB(this); users = userDB.select1(); username = users[1]; userstore = users[2]; User.setUserName(username); User.setUserscore(userstore); user = getSharedPreferences("main_background", 0); try { inui(); } catch (AppException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_reg); ViewUtils.inject(this); initToolbar(); SMSSDK.initSDK( this, ManifestUtil.getMetaDataValue(this, "mob_sms_appKey"), ManifestUtil.getMetaDataValue(this, "mob_sms_appSecrect")); evenHanlder = new SMSEventHandle(); SMSSDK.registerEventHandler(evenHanlder); String[] country = SMSSDK.getCountry(DEFAULT_COUNTRY_ID); if (country != null) { mCountryCode.setText("+" + country[1]); mCountry.setText(country[0]); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.viewpager_photo_view); ViewUtils.inject(this); initialize(); }
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.il_home_find_idea, null); ViewUtils.inject(this, view); return view; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_user_account); ViewUtils.inject(this); }
@Override protected void initViews() { super.initViews(); ViewUtils.inject(this); center(R.string.setting); left(TextView.class, R.string.back); getCacheSize(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.my_footprint); ViewUtils.inject(this); context = this; initViews(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ViewUtils.inject(this); initView(); loadData(); }
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // TODO Auto-generated method stub mview = inflater.inflate(R.layout.fragment_share_list, container, false); ViewUtils.inject(this, mview); return mview; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.ac_personal_setting); ViewUtils.inject(this); initView(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_complete_infomation); addActivityToArrayList(this); ViewUtils.inject(this); onInit(); }
@Override public void initLayout(Bundle paramBundle) { setContentView(R.layout.bind_ipp_layout); ViewUtils.inject(this); CHUtils.addUnderlineTextView(tvWhatIpp); CHUtils.addUnderlineTextView(tvForgetPwd); CHUtils.addUnderlineTextView(tvNoIpp); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_forget_password); addActivityToArrayList(this); ViewUtils.inject(this); init(); }
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_modification_production, container, false); ViewUtils.inject(this, view); init(); return view; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_content_item_detail); ViewUtils.inject(this, this); initView(); }