Questions tagged [android-framelayout]

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.

1070 questions
0
votes
1 answer

RelativeLayout over ListView, onclick not detected when RealtiveLayout is shown as

I am currently a relative layout is shown in a listview. Turns out that when I click RelativeLayout, is always caught the click event in the list view. I wanted to detect a gesture on the layout when it is being shown, but when I click, the item is…
0
votes
0 answers

interacting between 2 FrameLayout

any Android code example of interacting between 2 FrameLayout or a list of parent Buttons and a FrameLayout? add child Activity to bottom (main) FrameLayout show iOS like push animation when new Child Activity is added ==============
Jason Lam
  • 112
  • 4
0
votes
1 answer

FrameLayout image shrinks

i'm working on an app, it loads the photo from the gallery( the photo is taken from device camera), and do other app relevant features and save, the problem i'm facing is that the image which loads compress vertically and horizontally which makes…
Numair
  • 1,062
  • 1
  • 20
  • 41
0
votes
2 answers

framelayout is not working

am creating an application in which i am using framelayout ..... I have used three class 1) activity 2)selecting image 3)drawing on image so my activity class is as follow public void onCreate(Bundle savedInstanceState) { …
Ashishsingh
  • 742
  • 2
  • 12
  • 31
0
votes
1 answer

Gridview and FrameLayout improperly places images

Let's simplify this question. What I did: I created a custom Gridview I created an adapter view of the framelayout What I am trying to accomplish is something similar to Shelve view. Now the result was a proper view of how the background of the…
sdfwer
  • 1,042
  • 3
  • 10
  • 23
0
votes
1 answer

Show 3 Activity in One Screen

I have 3 FrameLayout in my program. I have three FrameLayout in my program. I want in the each one, one Activity will be displayed. Is there such a thing possible? Thanks.
0
votes
2 answers

How to show / hide ImageView in FrameLayout

Im trying to show / hide a specifically ImageView, that it's inside a FrameLayout. At the same time, im gonna hide or show (on the contrary to ImageView), the LinearLayout with id…
0
votes
2 answers

Android: How to perform zoom on two imageviews in android?

I have two images inside my layout. I need to zoom that image which i touched. We know that Frame can display a single view at a time. So how do i perform zoom on each imageview separately ? My xml file :
Rahul Baradia
  • 11,802
  • 17
  • 73
  • 121
0
votes
1 answer

android game surfaceview with framelayout slow

i'm currently writing a game and now encountered a issue. in my game, if i overlay a framelayout over my custom surfaceview class, my frame rate will drop according to how many view widgets are placed in the framwlayout. i'm using the framelayout to…
tom91136
  • 8,662
  • 12
  • 58
  • 74
0
votes
1 answer

android game loop surfaceview overlay with framelayout cause lag

i'm currently writing a android game, but now, i'm having some strange issues with the controls if i have a framelayout with all my controls(the HP, points, game controls..etc) and put it on top of my surfaceview, my fps will never get above 20…
tom91136
  • 8,662
  • 12
  • 58
  • 74
0
votes
6 answers

How to display an activity inside FrameLayout in android

I had searched for this but could not get the solution. I had created 3 tabs (using buttons) in an activity. Whenever I click a button the corresponding activity should display below the tabs. I know this can be achieved with Tab Host, but I don't…
Dileep Perla
  • 1,865
  • 7
  • 33
  • 54
-1
votes
2 answers

How to display a LinearLayout 100px below the top of the screen?

I have a FrameLayout (all the screen is the FL) wich haves a openGLview and a header image on the top of the screen. Now i want to display a menu of two buttons, created with a LinearLayout. My LL Menu must be floating on the framelayout, 100px…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
-1
votes
1 answer

ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams

Java codes: package com.bariskarapelit.stajprojesi_1; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.view.MotionEvent; import android.view.View; import…
BARIŞ
  • 21
  • 7
-1
votes
1 answer

How to get XY coordinates of FrameLayout in Android?

I am trying to get coordinates of frame layout present in my screen in android. I tried getLocationOnScreen but it is giving me 0. How to get the right value? int[] location = new int[2]; face_oval_layout.getLocationOnScreen(location); …
AroshiS
  • 79
  • 1
  • 9
-1
votes
1 answer

Purpose of FrameLayout?

All examples I find for FrameLayout use the FrameLayout to stack multiple children on top of each other. Even e.g. Stackoverflow answer here says You use a FrameLayout to stack child views on top of each other, The official documentation however…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270