List of usage examples for android.support.v4.view NestedScrollingChildHelper NestedScrollingChildHelper
public NestedScrollingChildHelper(View view)
From source file:com.github.fo2rist.mclaren.ui.widgets.NestedWebView.java
public NestedWebView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); childHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);//from ww w . j a va2 s .com }
From source file:com.llf.nestlayout.library.NestedWebView.java
public NestedWebView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);//from ww w . j a va 2 s . c o m mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); }
From source file:akhil.alltrans.NestedScrollingMarkDownView.java
private void init() { mChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true); }
From source file:akhil.alltrans.NestedScrollingListView.java
public NestedScrollingListView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);//from ww w . jav a2s . c o m }
From source file:com.lovejjfg.blogdemo.ui.HeadViewFrameLayout.java
public HeadViewFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mNestedScrollingParentHelper = new NestedScrollingParentHelper(this); mNestedScrollingChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);/*from ww w.j a v a 2 s . c o m*/ }
From source file:com.lovejjfg.blogdemo.ui.HeaderRefreshLayout.java
public HeaderRefreshLayout(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mNestedScrollingParentHelper = new NestedScrollingParentHelper(this); mNestedScrollingChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);//from w ww . j ava 2 s. co m header = new TouchCircleView(getContext()); header.addLoadingListener(this); float density = context.getResources().getDisplayMetrics().density; addView(header, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) (density * 120))); }
From source file:com.views.ttRefrash.HeaderRefreshLayout.java
public HeaderRefreshLayout(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mNestedScrollingParentHelper = new NestedScrollingParentHelper(this); mNestedScrollingChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);/*from ww w .j av a2 s .c o m*/ // header = new TouchCircleView(getContext()); header.addLoadingListener(this); float density = context.getResources().getDisplayMetrics().density; // addView(header, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) (density * 130))); }
From source file:com.ewintory.footballscores.ui.widget.AnimatorStateView.java
private void initialize(Context context, AttributeSet attrs, int defStyle) { mRoot = LayoutInflater.from(context).inflate(R.layout.widget_animator_state, this, true); ButterKnife.bind(this, mRoot); TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AnimatorStateView, defStyle, 0); String text = a.getString(R.styleable.AnimatorStateView_messageText); Drawable image = a.getDrawable(R.styleable.AnimatorStateView_messageImage); mTextView.setText(text);/*www .j av a 2 s.co m*/ mImageView.setImageDrawable(image); a.recycle(); mScrollingChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true); }
From source file:com.example.tt.pullrefresh.widget.HeaderRefreshLayout.java
public HeaderRefreshLayout(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mNestedScrollingParentHelper = new NestedScrollingParentHelper(this); mNestedScrollingChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);//from w w w. j ava 2 s . c o m header = new TouchCircleView(getContext()); header.addLoadingListener(this); float density = context.getResources().getDisplayMetrics().density; addView(header, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, (int) (density * 130))); }
From source file:com.douban.rexxar.view.NestedWebView.java
public NestedWebView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mChildHelper = new NestedScrollingChildHelper(this); setNestedScrollingEnabled(true);/* w ww. j a va 2s. co m*/ final ViewConfiguration configuration = ViewConfiguration.get(getContext()); mTouchSlop = configuration.getScaledTouchSlop(); WebSettings webSettings = getSettings(); webSettings.setJavaScriptEnabled(true); // addJavascriptInterface(new NestScrollHelper(), "Android_NestScrollHelper"); // ? setOverScrollMode(OVER_SCROLL_NEVER); mMinimumVelocity = configuration.getScaledMinimumFlingVelocity(); mMaximumVelocity = configuration.getScaledMaximumFlingVelocity(); mScroller = new OverScroller(getContext()); }