About 41,800,000 results
Open links in new tab
  1. Is it possible to place one view over another in android?

    Mar 28, 2018 · RelativeLayout will work but you can use FrameLayout. The FrameLayout is the simplest ViewGroup and stacks the Views in the order they're defined in layout XML (or added programmatically); the first will be lower, and the last will be on top. Here is an example where two Views are stacked and offset to better illustrate the point:

  2. Placing/Overlapping(z-index) a view above another view in android

    Nov 15, 2010 · I want to know how can we place one view above the other, with varying z-index (preferably in linear layout) ? You can't use a LinearLayout for this, but you can use a FrameLayout. In a FrameLayout, the z-index is defined by the order in which the items are added, for example: xmlns:android="http://schemas.android.com/apk/res/android"

  3. android - How would I display one view as an overlay of another ...

    You could use the ViewGroup.addView(View child, int index, ViewGroup.LayoutParams params) or a variant along with ViewGroup.removeView(View view) or ViewGroup.removeViewAt(int index).

  4. ViewOverlay in Android. What is an Overlay? - Medium

    Feb 11, 2018 · An overlay is an extra layer that sits on top of a View (the “host view”) which is drawn after all other content in that view (including children if the view is a ViewGroup). Interaction with the...

  5. Build a responsive UI with ConstraintLayout - Android Developers

    Feb 26, 2025 · Learn how to work with layouts in Compose. ConstraintLayout lets you create large, complex layouts with a flat view hierarchy—no nested view groups.

  6. Responsive/adaptive design with views - Android Developers

    Feb 10, 2025 · Implement responsive/adaptive layouts to enable your view‑based app to support all display sizes, orientations, and configurations, including resizable configurations such as multi-window mode.

  7. Create custom view components | Views | Android Developers

    Jun 27, 2024 · Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout classes View and ViewGroup. The platform includes a variety of prebuilt View and ViewGroup subclasses—called widgets and layouts, respectively—that you can use to construct your UI.

  8. Create an Overlay View that will appear on top of other apps …

    Hello in this tutorial, I will show you how to create an overlay view that will appear on top of other apps using Accessibility Service. Creating the Service. Begin by creating a class that extends AccessibilityService. Then override the onAccessibilityEvent() and onInterrupt() required methods to remove the error.

  9. Android overlay a view ontop of everything? - Stack Overflow

    Dec 5, 2016 · You can define rules like View A has to align parent layout bottom, View B has to align A bottom to top, etc. Update based on comment. Usually you set the content with setContentView(R.layout.your_layout) in onCreate (it will inflate the layout for you). You can do that manually and call setContentView(inflatedView), there's no difference.

  10. How to draw over view content via PopupWindow in Android

    Aug 1, 2017 · From API level 1 and onward you can place your content into a PopupWindow, which is a new temporary window in which you can place views that will be displayed on top of the current activity window.

Refresh