Available Methods
- ViewHolder ( )
- State ( )
- LayoutManager ( )
- setAdapter ( )
- setLayoutManager ( )
- Adapter ( )
- NO_POSITION
- getChildCount ( )
- getLayoutManager ( )
- getChildAt ( )
- LayoutParams ( )
- getChildAdapterPosition ( )
- addItemDecoration ( )
- Recycler ( )
- setHasFixedSize ( )
- getPaddingLeft ( )
- getAdapter ( )
- getPaddingRight ( )
- addOnScrollListener ( )
- ItemDecoration ( )
- getHeight ( )
- getWidth ( )
- VERTICAL
- findChildViewUnder ( )
- setItemAnimator ( )
- getContext ( )
- getPaddingTop ( )
- SCROLL_STATE_IDLE
- getPaddingBottom ( )
- HORIZONTAL
- computeVerticalScrollOffset ( )
- setClipToPadding ( )
- getChildViewHolder ( )
- AdapterDataObserver ( )
- NO_ID
- setNestedScrollingEnabled ( )
- getDecoratedBoundsWithMargins ( )
- getClipToPadding ( )
- SCROLL_STATE_DRAGGING
- setBackgroundColor ( )
- OnScrollListener ( )
- getItemAnimator ( )
- ItemAnimator ( )
- removeOnScrollListener ( )
- getChildLayoutPosition ( )
- computeVerticalScrollRange ( )
- SmoothScroller ( )
- scrollToPosition ( )
- findViewHolderForAdapterPosition ( )
- RecycledViewPool ( )
- setPadding ( )
- addOnItemTouchListener ( )
- getMeasuredWidth ( )
- setVisibility ( )
- Orientation ( )
- setTag ( )
- canScrollVertically ( )
- post ( )
- getMeasuredHeight ( )
- findViewHolderForLayoutPosition ( )
- getTag ( )
- setOnTouchListener ( )
- setOverScrollMode ( )
- OnItemTouchListener ( )
- requestFocus ( )
- postDelayed ( )
- setLayoutParams ( )
- isEnabled ( )
- getViewTreeObserver ( )
- setAlpha ( )
- addOnChildAttachStateChangeListener ( )
- setId ( )
- removeOnChildAttachStateChangeListener ( )
- smoothScrollToPosition ( )
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.graphics.Canvas
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.widget.EditText
- android.content.SharedPreferences
- android.graphics.Rect
- android.annotation.SuppressLint
- android.widget.FrameLayout
- android.view.Gravity
- android.util.TypedValue
- android.animation.Animator
Java Code Examples for androidx.recyclerview.widget.RecyclerView#requestFocus()
The following examples show how to use
androidx.recyclerview.widget.RecyclerView#requestFocus() .
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: CountrySelectFragment.java From InviZible with GNU General Public License v3.0 | 5 votes |
@Override public void onResume() { super.onResume(); if (getActivity() == null) { return; } if (current_nodes_type == entryNodes) { getActivity().setTitle(R.string.pref_tor_entry_nodes); } else if (current_nodes_type == excludeNodes) { getActivity().setTitle(R.string.pref_tor_exclude_nodes); } else if (current_nodes_type == exitNodes) { getActivity().setTitle(R.string.pref_tor_exit_nodes); } else if (current_nodes_type == excludeExitNodes) { getActivity().setTitle(R.string.pref_tor_exclude_exit_nodes); } CheckBox chbTorCountriesSelectorAll = getActivity().findViewById(R.id.chbTorCountriesSelectorAll); chbTorCountriesSelectorAll.setOnCheckedChangeListener(this); ((SearchView) getActivity().findViewById(R.id.searhTorCountry)).setOnQueryTextListener(this); RecyclerView rvSelectCountries = getActivity().findViewById(R.id.rvSelectCountries); RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity()); rvSelectCountries.setLayoutManager(mLayoutManager); rvSelectCountries.requestFocus(); rvAdapter = new CountriesAdapter(); rvSelectCountries.setAdapter(rvAdapter); }
Example 2
Source File: LibraryView.java From FirefoxReality with Mozilla Public License 2.0 | 5 votes |
@Override public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); if (recyclerView.getScrollState() != RecyclerView.SCROLL_STATE_SETTLING) { recyclerView.requestFocus(); } }