Top "Android-framelayout" questions

Android layout that uses the screen to display views that can be stacked on top of each other, with the most recent child added on top.

Android: Set margins in a FrameLayout programmatically- not working

here is the code- FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) searchPin.getLayoutParams(); params.setMargins(135, 176, 0, 0); //params.leftMargin = 135; // also not worked //params.topMargin = 376; …

android android-layout android-framelayout
Android: when / why should I use FrameLayout instead of Fragment?

I am building a layout for large screens, that is supposed to consist of 2 different parts, a left one and …

android android-fragments android-framelayout
Scale background image to wrap content of layout

I have a layout that contains some text fields and has a background image that's displayed at the top of …

android background android-linearlayout android-relativelayout android-framelayout
FrameLayout vs RelativeLayout for overlays

I need to implement an overlay (translucent) screen for my app, something similar to Showcase View My guess was to …

android android-relativelayout android-framelayout
Get Fragment dynamically attached to <FrameLayout>?

Well, i got a simple <FrameLayout>: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:…

android android-layout android-fragments android-framelayout
Android Fragment does not respect match_parent as height

Sorry for the huge code dump, but I'm truly lost. MyActivity.java onCreate: super.onCreate(savedInstanceState); setContentView(R.layout.activity_…

android center android-linearlayout fragment android-framelayout
How to set foreground attribute to other non FrameLayout view

I would like to know how to apply or emulate foreground effect in a view different from FrameLayout, as LinearLayout …

android view drawable android-view android-framelayout
how to programmatically create an imageView with id and src parameters?

The following works, but I want to eliminate the xml so that I can change the image programmatically: Java: public …

android android-layout android-imageview android-framelayout