@Override protected void onFinishInflate() { super.onFinishInflate(); mSelectButton = (ImageButton) findViewById(R.id.channel_chek); mSelectButton.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { setItemViewSelected(!mIsSelected); if (channelListener != null) { channelListener.onSelected(ChannelView.this, mIsSelected); } } }); mStarButton = (ImageButton) findViewById(R.id.channel_star); mStarButton.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { setItemViewStarred(!mIsStarred); if (channelListener != null) { channelListener.onStarred(ChannelView.this, mIsStarred); } } }); mTextView = (TextView) findViewById(R.id.channel_updated); // description = (TextView) findViewById(R.id.channel_description); }
@Override protected void onFinishInflate() { super.onFinishInflate(); // mDragView = getChildAt(0); // mAutoBackView = getChildAt(1); // mEdgeTrackerView = getChildAt(2); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mLoadingView = findViewById(R.id.loading_view); mContentView = findViewById(R.id.content_view); mLoadFailView = findViewById(R.id.loading_fail_view); mReloadBtn = (TextView) findViewById(R.id.reloadBtn); mReloadBtn.setText(Html.fromHtml(mContext.getResources().getString(R.string.tip_reload))); mReloadBtn.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { showLoadingView(); if (null != mCallback) { mCallback.onReloadForFail(TabMainView.this); } } }); mViewPager = (ViewPager) findViewById(R.id.hot_event); ViewCompat.setOverScrollMode(mViewPager, ViewCompat.OVER_SCROLL_NEVER); mCircleContainer = (LinearLayout) findViewById(R.id.circle_container); mCategoryGrid = (GridView) findViewById(R.id.category_grid); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mFavoritesBackground = (LinearLayout) findViewById(R.id.starred_contacts); mFavoritesBackground.setBackgroundColor(ThemeManager.getBackgroundColor()); mTitle = (QKTextView) findViewById(R.id.title); mFavorites = (LinearLayout) findViewById(R.id.favorites); mToggle = findViewById(R.id.toggle); mToggle.setOnClickListener(this); mIndicator = (ImageView) findViewById(R.id.indicator); if (mPrefs.getBoolean(SettingsFragment.COMPOSE_FAVORITES, true)) { expand(); } else { collapse(); } LiveViewManager.registerView(this); LiveViewManager.registerPreference(this, SettingsFragment.BACKGROUND); refresh(); }
/** ******************* 初始化UI ******************* */ @Override protected void onFinishInflate() { super.onFinishInflate(); mContext = getContext(); tvUpdateTotal = (TextView) findViewById(R.id.app_update_total); tvNotUpdate = findViewById(R.id.no_content); findViewById(R.id.jump) .setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { TAApplication.sendHandler( null, IDiyFrameIds.NAVIGATIONBAR, IDiyMsgIds.NAV_SWITCH_NAVIGATION, -1, TabController.NAVIGATIONFEATURE, null); } }); updateLayout = (LinearLayout) findViewById(R.id.update_show_layout); listview = (ListView) findViewById(R.id.app_update_listview); btnAllUpdate = (Button) findViewById(R.id.app_update_all_btn); btnAllUpdate.setOnClickListener(this); home_liear_pro = (LinearLayout) findViewById(R.id.home_liear_pro); home_liear_connent = (LinearLayout) findViewById(R.id.home_liear_connent); bgPageView = new BgPageView(mContext, home_liear_pro, home_liear_connent); adapter = new UpdateAppAdapter(mContext); listview.setAdapter(adapter); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mContent = (CellLayout) findViewById(R.id.folder_content); mContent.setGridSize(0, 0); mContent.getShortcutsAndWidgets().setMotionEventSplittingEnabled(false); mFolderName = (FolderEditText) findViewById(R.id.folder_name); mFolderName.setFolder(this); mFolderName.setOnFocusChangeListener(this); // 算出TextView最终需要多大,以便可以给它腾出适合大小的地方 int measureSpec = MeasureSpec.UNSPECIFIED; mFolderName.measure(measureSpec, measureSpec); mFolderNameHeight = mFolderName.getMeasuredHeight(); // We disable action mode for now since it messes up the view on phones // 暂时禁止action mode,因为它有可能会情致view混乱 mFolderName.setCustomSelectionActionModeCallback(mActionModeCallback); mFolderName.setOnEditorActionListener(this); mFolderName.setSelectAllOnFocus(true); mFolderName.setInputType( mFolderName.getInputType() | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_FLAG_CAP_WORDS); }
@Override public void onFinishInflate() { super.onFinishInflate(); this.name = (TextView) findViewById(R.id.name); this.created = (TextView) findViewById(R.id.created); this.lastActive = (TextView) findViewById(R.id.active); }
@Override public void onFinishInflate() { super.onFinishInflate(); if (getChildCount() != 3) { throw new IllegalStateException(BGAStickyNavLayout.class.getSimpleName() + "必须有且只有三个子控件"); } mHeaderView = getChildAt(0); mNavView = getChildAt(1); mContentView = getChildAt(2); if (mContentView instanceof AbsListView) { mDirectAbsListView = (AbsListView) mContentView; mDirectAbsListView.setOnScrollListener(mLvOnScrollListener); } else if (mContentView instanceof RecyclerView) { mDirectRecyclerView = (RecyclerView) mContentView; mDirectRecyclerView.addOnScrollListener(mRvOnScrollListener); } else if (mContentView instanceof ScrollView) { mDirectScrollView = (ScrollView) mContentView; } else if (mContentView instanceof WebView) { mDirectWebView = (WebView) mContentView; } else if (mContentView instanceof ViewPager) { mDirectViewPager = (ViewPager) mContentView; mDirectViewPager.addOnPageChangeListener( new ViewPager.SimpleOnPageChangeListener() { @Override public void onPageSelected(int position) { regetNestedContentView(); } }); } else { mDirectNormalView = mContentView; } }
@Override public void onFinishInflate() { super.onFinishInflate(); this.title = (TextView) findViewById(R.id.title); this.subtitle = (TextView) findViewById(R.id.subtitle); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mContent = (CellLayout) findViewById(R.id.folder_content); mContent.setGridSize(0, 0); mContent.getChildrenLayout().setMotionEventSplittingEnabled(false); mFolderName = (FolderEditText) findViewById(R.id.folder_name); mFolderName.setFolder(this); mFolderName.setOnFocusChangeListener(this); // We find out how tall the text view wants to be (it is set to wrap_content), so that // we can allocate the appropriate amount of space for it. int measureSpec = MeasureSpec.UNSPECIFIED; mFolderName.measure(measureSpec, measureSpec); mFolderNameHeight = mFolderName.getMeasuredHeight(); // We disable action mode for now since it messes up the view on phones mFolderName.setCustomSelectionActionModeCallback(mActionModeCallback); mFolderName.setOnEditorActionListener(this); mFolderName.setSelectAllOnFocus(true); mFolderName.setInputType( mFolderName.getInputType() | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_FLAG_CAP_WORDS); }
@Override protected void onFinishInflate() { super.onFinishInflate(); if (!mMerging) { if (Config.GD_INFO_LOGS_ENABLED) { Log.i(LOG_TAG, "onFinishInflate() - not merging"); } // Work done for both Dashboard and Normal type mHomeButton = (ImageButton) findViewById(R.id.gd_action_bar_home_item); mHomeButton.setOnClickListener(mClickHandler); switch (mType) { case Normal: mHomeButton.setImageDrawable(mHomeDrawable); mHomeButton.setContentDescription(getContext().getString(R.string.gd_go_home)); mTitleView = (TextView) findViewById(R.id.gd_action_bar_title); if (mTitle != null) { setTitle(mTitle); } default: // Do nothing break; } } }
@Override protected void onFinishInflate() { super.onFinishInflate(); addView(hint, 0); addView(error, getChildCount()); }
@Override public void onFinishInflate() { super.onFinishInflate(); if (getChildCount() != 2) { throw new RuntimeException(BGARefreshLayout.class.getSimpleName() + "必须有且只有一个子控件"); } mContentView = getChildAt(1); if (mContentView instanceof AbsListView) { mAbsListView = (AbsListView) mContentView; } else if (mContentView instanceof RecyclerView) { mRecyclerView = (RecyclerView) mContentView; } else if (mContentView instanceof ScrollView) { mScrollView = (ScrollView) mContentView; } else if (mContentView instanceof WebView) { mWebView = (WebView) mContentView; } else if (mContentView instanceof BGAStickyNavLayout) { mStickyNavLayout = (BGAStickyNavLayout) mContentView; mStickyNavLayout.setRefreshLayout(this); } else { mNormalView = mContentView; // 设置为可点击,否则在空白区域无法拖动 mNormalView.setClickable(true); } }
@SuppressWarnings("deprecation") @Override protected void onFinishInflate() { super.onFinishInflate(); mHandle = findViewById(R.id.panelHandle); if (mHandle == null) { throw new RuntimeException( "Your Panel must have a View whose id attribute is 'R.id.panelHandle'"); } mHandle.setOnTouchListener(touchListener); mContent = findViewById(R.id.panelContent); if (mContent == null) { throw new RuntimeException( "Your Panel must have a View whose id attribute is 'R.id.panelContent'"); } // reposition children removeView(mHandle); removeView(mContent); if (mPosition == TOP || mPosition == LEFT) { addView(mContent); addView(mHandle); } else { addView(mHandle); addView(mContent); } if (mClosedHandle != null) { mHandle.setBackgroundDrawable(mClosedHandle); } mContent.setVisibility(GONE); }
@Override protected void onFinishInflate() { super.onFinishInflate(); lecturer = (TextView) findViewById(R.id.lecturer); name = (TextView) findViewById(R.id.name); id = (TextView) findViewById(R.id.id); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mProgressDrawable = (ClipDrawable) findViewById(R.id.toolbar).getBackground(); initializeUrlField(); initializeNavigationButtons(); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mPreviewView = (WorkspaceCustomSettingsPreviewView) findViewWithTag("preview"); mAppearanceContainer = findViewWithTag("container_appearance"); mWorkspaceGridContainer = (ViewGroup) findViewWithTag("container_grid_list"); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mTitle = findViewById(R.id.home_span_bill_title); mItemsField = findViewById(R.id.home_span_bill_content); mTitleArrow = (ImageView) findViewById(R.id.home_ic_bill_title_arrow); mTop = getPaddingTop() + mItemsField.getHeight(); }
@Override protected void onFinishInflate() { super.onFinishInflate(); text = (TextView) findViewById(R.id.text); text.setTypeface(ROBOTO_MEDIUM); setOnClickListener(this); }
@Override protected void onFinishInflate() { super.onFinishInflate(); Resources resources = mContext.getResources(); mPrimaryTextColor = resources.getColor(R.color.primary_text_color); mSecondaryTextColor = resources.getColor(R.color.secondary_text_color); mNoGroupString = mContext.getString(R.string.group_edit_field_hint_text); }
@Override public void onFinishInflate() { super.onFinishInflate(); View view = inflate(getContext(), R.layout.cover_anim_view, (ViewGroup) this); Arpan_ßløødy_CoverImages = new ImageView[2]; Arpan_ßløødy_CoverImages[0] = (ImageView) view.findViewById(R.id.image0); Arpan_ßløødy_CoverImages[1] = (ImageView) view.findViewById(R.id.image1); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mNameView = (TextView) findViewById(R.id.group_name); mTaskCountView = (TextView) findViewById(R.id.group_task_count); mNameView.setText(mGroup.getName()); mNameView.setTypeface(TaskTimerApplication.Typefaces.ROBOTO_LIGHT); Log.v(TAG, "Inflated"); }
@Override protected void onFinishInflate() { super.onFinishInflate(); _iconTextView = (TextView) findViewById(R.id.IconTextView); _iconTextView.setGravity(Gravity.CENTER); // _iconTextView.setTextAlignment(View.TEXT_ALIGNMENT_GRAVITY); _titleTextView = (TextView) findViewById(R.id.TitleTextView); }
@Override protected void onFinishInflate() { super.onFinishInflate(); final ImageView image = (ImageView) findViewById(R.id.widget_preview); mOriginalImagePadding.left = image.getPaddingLeft(); mOriginalImagePadding.top = image.getPaddingTop(); mOriginalImagePadding.right = image.getPaddingRight(); mOriginalImagePadding.bottom = image.getPaddingBottom(); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mTitle = (TextView) findViewById(R.id.title); mContactImage = (ImageView) findViewById(R.id.contact_image); mTextBody = (TextView) findViewById(R.id.text_body); mContactImageLayout = (RelativeLayout) findViewById(R.id.contact_image_layout); mPlaySlideshowButton = (ImageView) findViewById(R.id.play_slideshow_button); mContactImageParent = (LinearLayout) findViewById(R.id.contact_image_parent); }
@Override protected void onFinishInflate() { super.onFinishInflate(); mLeftAmplitude = (LinearLayout) findViewById(R.id.chatroom_l_status); mRightAmplitude = (LinearLayout) findViewById(R.id.chatroom_r_status); mMikeView = (ImageView) findViewById(R.id.chatroom_mike); mMikeView.setOnClickListener(mMicClickListener); initBottomStatus(0); }
@Override protected void onFinishInflate() { super.onFinishInflate(); one = (CircleView) findViewById(R.id.cirlce_one); two = (CircleView) findViewById(R.id.cirlce_two); three = (CircleView) findViewById(R.id.cirlce_three); four = (CircleView) findViewById(R.id.cirlce_four); five = (CircleView) findViewById(R.id.cirlce_five); initAnim(); }
@Override protected void onFinishInflate() { super.onFinishInflate(); Log.d(TAG, "onFinishInflate "); mNormal = getChildAt(0); mAutoBack = getChildAt(1); mEdgeLeft = getChildAt(2); mEdgeRight = getChildAt(3); mClickableView = getChildAt(4); }
@Override protected void onFinishInflate() { super.onFinishInflate(); categoryImage = (ImageView) this.findViewById(R.id.categoryButtonImage); categoryImage.setImageResource(imageSrc); categoryName = (TextView) this.findViewById(R.id.categoryButtonCategoryName); categoryName.setText(categoryNameString); }
@Override protected void onFinishInflate() { // TODO Auto-generated method stub left_text = (TextView) findViewById(R.id.left_text); right_text = (TextView) findViewById(R.id.right_text); mMidleTitle = (TextView) findViewById(R.id.middle_title); mRightTitle = (LinearLayout) findViewById(R.id.btn_head_right); mLeftTitle = (LinearLayout) findViewById(R.id.btn_head_left); // setBackgroundColor(default_background_color); super.onFinishInflate(); }