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.
Questions tagged [android-framelayout]
1070 questions
-1
votes
1 answer
FrameLayout inside Scroll view
I have a very big problem. I have a 60 images (3 columns and 20 rows) that are added into FrameLayout. But there is a problem. I want to scroll those images by ScrollView. So i added Scroll view, and inside it I add FrameLayout. But this scrollview…
-1
votes
3 answers
Textview under framelayout overrides with another icons
I want my layout to look like this:
I used framelayout for this. The icons fit well but how can I fit the text as well? I tried textview but it overrides. Any help will be appreciated.
Here is my code so far:

IRON MAN
- 191
- 3
- 18
-1
votes
2 answers
Is there a way to see what fragments are in a FrameLayout?
I have the fragment obj as well as the FrameLayout, I could also complete my logic if I can:
Get my fragments containerViewId
OR
See what FrameLayout a fragment is in?

Jose Flores
- 27
- 3
-1
votes
1 answer
Kotlin Display Fragment inside DialogFragment with FrameLayout
Im creating a DialogFragment but inside that Fragment there's a FrameLayout that is gonna change between fragments dynamically.
To have a better control over all the fragments i create an instance class to handle the fragments named…

Luis Cardoza Bird
- 1,265
- 4
- 24
- 43
-1
votes
1 answer
Frame Layout Add Images Not showing Images
I am adding multiple images on top of each other in frame layout but it doesn't show anything.
Images are loaded using glide app.
ImageView imageView = new ImageView(this);
imageView.setLayoutParams(new…

jaydeep_gedia
- 484
- 2
- 4
- 13
-1
votes
2 answers
RelativeLayout having FrameLayout with 15 ImageButton in it Crashes
i have a activity with RelativeLayout in which there is a FrameLayout and in FrameLayout there are 15 ImageButtons. App crashes whenever that activity loads. here is my xml code.

WaqasArshad
- 237
- 1
- 3
- 12
-1
votes
1 answer
put frame layout below relative layout
i'm trying to fix this issue but 'im stuck.
The problem:
I want to put frame layout below relative layout.
FrameLayout = Emoticons
Relative layout = container with edittext
i wish when i click in smile button, the framelayout show up above…

Lucas Bergamo
- 1
- 1
- 5
-1
votes
4 answers
How to set programatically height and width to framelayout in android
I want to set height and width for framelayout , if give values in java code using setlayoutparams its showing very small box, but in XML its showing properly.
This is my java code
FrameLayout frameLayout2= (FrameLayout)…

Kalaivani R
- 327
- 1
- 4
- 11
-1
votes
1 answer
How to display view in foreground based on focus?
JAVA CODE:
mEdtTextPickup.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if(hasFocus){
…

Sudhaskumar
- 39
- 1
- 5
-1
votes
1 answer
add fragment on another fragment in frame layout
I gonna add one fragment to another fragment in frameLayout but I do not want to replace. I gonna when click on button second fragment show up and when click on back key second fragment hide now . I do not want first fragment destroyed . what should…

hamid keyhani
- 451
- 3
- 12
-1
votes
2 answers
Add multiple buttons to Frame Layout (android)
I have an application that uses Google Maps in a frame layout. I am using alternative 2 in this (accepted) answer. When I use alternative 2, I have a single button at top of the application (Free Draw). My question is, can I add more than one button…

Umar Dastgir
- 688
- 9
- 25
-1
votes
1 answer
Loading Custom View using Fragment inside a Frame layout
I am trying to add a fragment on Activity which is having a custom view.
private void loadMonitorPage(){
fragmentManager = getFragmentManager();
MonitorFragment monitorFragment = new MonitorFragment();
fragmentTransaction =…

Tejas
- 358
- 5
- 23
-1
votes
1 answer
FrameLayout width is not equal to its parent which is a Toolbar
i have a frameLayout inside toolbar now problem is i set framelayout width to match patent but its not going to equal it wherease toolbar is full length
my code is as follows

Uttam Meerwal
- 324
- 2
- 12
-1
votes
3 answers
How to create this View(layout)
Actually i am working on a layout in which i have to put CardView on a ImageView and it only covers the half portion of a ImageView and also add one TextView(Check Attach Image).
Note:
I tried using FrameLayout and also with Relative Layout...
and…

Dhruv Tyagi
- 814
- 1
- 9
- 28
-1
votes
2 answers
Snackbar shown under view
I am using snackbar to alert user on exiting application, It works well on most of devices but on few devices like GALAXY A5(android version 5.0.2) it goes under my view like
what's the problem?

masoud vali
- 1,528
- 2
- 18
- 29