Available Methods
- LayoutParams ( )
- addView ( )
- removeView ( )
- getChildCount ( )
- getChildAt ( )
- getContext ( )
- MarginLayoutParams ( )
- findViewById ( )
- removeAllViews ( )
- getChildMeasureSpec ( )
- indexOfChild ( )
- getWidth ( )
- setVisibility ( )
- setClipToPadding ( )
- setFitsSystemWindows ( )
- removeViewAt ( )
- setBackgroundColor ( )
- getHeight ( )
- setPadding ( )
- setLayoutParams ( )
- getTop ( )
- getLayoutParams ( )
- setTag ( )
- setOnClickListener ( )
- findViewWithTag ( )
- getTag ( )
- setBackgroundResource ( )
- getMeasuredHeight ( )
- offsetDescendantRectToMyCoords ( )
- setClipChildren ( )
- getParent ( )
- getId ( )
- getPaddingTop ( )
- getBottom ( )
- post ( )
- removeAllViewsInLayout ( )
- getResources ( )
- getMeasuredWidth ( )
- requestFocus ( )
- requestLayout ( )
- bringToFront ( )
- getLeft ( )
- invalidate ( )
- getPaddingBottom ( )
- setEnabled ( )
- setLayoutTransition ( )
- OnHierarchyChangeListener ( )
- getViewTreeObserver ( )
- getVisibility ( )
- getPaddingRight ( )
- setOnHierarchyChangeListener ( )
- getBackground ( )
- layout ( )
- setOnTouchListener ( )
- getScrollY ( )
- measure ( )
- setId ( )
- setPaddingRelative ( )
- setDrawingCacheEnabled ( )
- setTranslationY ( )
- FOCUS_BLOCK_DESCENDANTS
- getRight ( )
- getPaddingLeft ( )
- getScrollX ( )
- setBackground ( )
- setPivotY ( )
- removeViewInLayout ( )
- equals ( )
- getSystemUiVisibility ( )
- removeViews ( )
- dispatchTouchEvent ( )
- addOnAttachStateChangeListener ( )
- postInvalidate ( )
- requestChildFocus ( )
- getWindowVisibility ( )
- getLocationOnScreen ( )
- setBottom ( )
- generateLayoutParams ( )
- isShown ( )
- isInLayout ( )
- getWindowId ( )
- getOverlay ( )
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.support.annotation.Nullable
- android.widget.EditText
- android.support.annotation.NonNull
- android.annotation.SuppressLint
- android.content.DialogInterface
Java Code Examples for android.view.ViewGroup#equals()
The following examples show how to use
android.view.ViewGroup#equals() .
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: PageViewPagerAdapter.java From PageMenuLayout with Apache License 2.0 | 5 votes |
@NonNull @Override public Object instantiateItem(@NonNull ViewGroup container, int position) { int realPosition = position % mViewList.size(); View view = mViewList.get(realPosition); if (container.equals(view.getParent())) { container.removeView(view); } container.addView(view); return view; }
Example 2
Source File: XBanner.java From XBanner with Apache License 2.0 | 5 votes |
@NonNull @Override public Object instantiateItem(@NonNull ViewGroup container, int position) { if (getRealCount() == 0) { return null; } final int realPosition = position % getRealCount(); final View view; //fix #109 修复初始设置空集合之后刷新数据之后,页面空白文体 if (mViews.size() < 3 && mLessViews != null) { view = mLessViews.get(position % mLessViews.size()); } else { view = mViews.get(realPosition); } if (container.equals(view.getParent())) { container.removeView(view); } if (mOnItemClickListener != null && mDatas.size() != 0) { view.setOnClickListener(new OnDoubleClickListener() { @Override public void onNoDoubleClick(View v) { int currentPos = getCurrentPos(realPosition); mOnItemClickListener.onItemClick(XBanner.this, mDatas.get(currentPos), v, currentPos); } }); } if (null != mAdapter && mDatas.size() != 0) { mAdapter.loadBanner(XBanner.this, mDatas.get(realPosition), view, realPosition); } ViewParent parent = view.getParent(); if (parent != null) { ((ViewGroup) parent).removeView(view); } container.addView(view); return view; }
Example 3
Source File: DecentBannerAdapter.java From DecentBanner with Apache License 2.0 | 5 votes |
@Override public Object instantiateItem(ViewGroup container, int position) { View view = viewList.get(position % tabNum); if(container.equals(view.getParent())) { container.removeView(view); } container.addView(view); return view; }