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#setBottom()
The following examples show how to use
android.view.ViewGroup#setBottom() .
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: ViewUtilsAndroidTest.java From PainlessMusicPlayer with Apache License 2.0 | 6 votes |
@Test public void testIsScrollableViewLargeEnoughToScrollWhenFalse() { final Context context = RuntimeEnvironment.application; final Pair<Integer, ViewGroup> heightsResult = prepareViewGroupWithValidChildHeights(); final ViewGroup rootView = new FrameLayout(context); rootView.setBottom(heightsResult.first); final ViewGroup appBarLayout = new FrameLayout(context); final ViewGroup scrollableView = heightsResult.second; rootView.addView(appBarLayout); rootView.addView(scrollableView); assertFalse(ViewUtils.isScrollableViewLargeEnoughToScroll(rootView, appBarLayout, scrollableView, 0)); }
Example 2
Source File: ViewUtilsAndroidTest.java From PainlessMusicPlayer with Apache License 2.0 | 6 votes |
@Test public void testIsScrollableViewLargeEnoughToScrollWhenTrue() { final Context context = RuntimeEnvironment.application; final Pair<Integer, ViewGroup> heightsResult = prepareViewGroupWithValidChildHeights(); final ViewGroup rootView = new FrameLayout(context); rootView.setBottom(heightsResult.first / 2); final ViewGroup appBarLayout = new FrameLayout(context); appBarLayout.setBottom(heightsResult.first / 2); final ViewGroup scrollableView = heightsResult.second; rootView.addView(appBarLayout); rootView.addView(scrollableView); assertTrue(ViewUtils.isScrollableViewLargeEnoughToScroll(rootView, appBarLayout, scrollableView, 0)); }
Example 3
Source File: ViewUtilsAndroidTest.java From PainlessMusicPlayer with Apache License 2.0 | 5 votes |
private Pair<Integer, ViewGroup> prepareViewGroupWithValidChildHeights() { final Context context = RuntimeEnvironment.application; final int v1h = 101; final int v2h = 102; final int v3h = 103; final int v4h = 0; final ViewGroup vg = new FrameLayout(context); vg.setBottom(666); final View v1 = new View(context); v1.setBottom(v1h); vg.addView(v1); final View v2 = new View(context); v2.setBottom(v2h); vg.addView(v2); final View v3 = new View(context); v3.setBottom(v3h); vg.addView(v3); final View v4 = new View(context); v4.setBottom(v4h); vg.addView(v4); return new Pair<>(v1h + v2h + v3h + v4h, vg); }
Example 4
Source File: ViewUtilsAndroidTest.java From PainlessMusicPlayer with Apache License 2.0 | 5 votes |
@Test public void testChildHeightsEmptyViewGroup() { final ViewGroup vg = new FrameLayout(RuntimeEnvironment.application); vg.setBottom(666); assertEquals(0, ViewUtils.childHeights(vg)); }