Top "Android-view" questions

Questions regarding Views in Android.

Use custom View in a RecyclerView Adapter?

I have a basic custom View which looks like this: public class CustomView extends RelativeLayout { private User user; private ImageView …

android android-recyclerview android-view android-adapter
Prevent BottomSheetDialogFragment covering navigation bar

I'm using really naive code to show a bottom sheet dialog fragment: class LogoutBottomSheetFragment : BottomSheetDialogFragment() { override fun onCreateView(inflater: LayoutInflater, …

android android-layout android-view navigationbar bottom-sheet
Full Screen without navigation & status bars

I want to create a activity with full screen. Nothing on above like Notification Bar and nothing below like Home-Button …

android android-layout android-activity android-view android-fullscreen
How to inflate multiple instances of a layout with the same id inside an inflated layout

I have a LinearLayout with many nested LinearLayouts and TextViewss My main activity inflates the main LinearLayout, Then I load …

android android-layout android-view android-inflate
What are WindowInsets?

I am trying to learn about the Android OS and while I was reading the Google I/O 2014 app, I …

java android android-layout android-view windowinsets
Android - Listener for catching changes in a View's properties (e.g. android:layout_marginTop)

In Android, can you create a Listener for catching changes in a View's properties (width / height / margin / position relative to …

android android-layout listener android-view android-event
How to generate id in android randomly and programmatically?

I'm trying to generate random ids for views as shown in following screenshot. But it didn't work. It got null. …

android android-view android-identifiers
Default overScrollMode value in Android View

Per Android documentation, the default value for overScrollMode is OVER_SCROLL_ALWAYS. But my ListView did not seem to follow …

android-listview android-view android-overscoll
How can I add a menu dynamically to bottom navigation view?

Android has new ui element - BottomNavigationView I don't want to contain my menus in the xml files. I will …

android android-view bottomnavigationview
Showing a popup window from Fragment

I want to show a popup window from my PlaceHodler class extending Fragment when the button is clicked. For a …

android android-fragments android-view placeholder android-popupwindow