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
-1
votes
1 answer

Whats the best way to create a view like this in android so that it supports various screen resolutions?

I want to label different images and all the labels must be clickable.Is their a way to add particular hotspots in imageview that respond differently? Please guide me in right direction.
Rahul
  • 189
  • 1
  • 13
-1
votes
1 answer

How to put a framelayout in a layout with buttons?

I've 9 buttons in 3 rows, and I want a FrameLayout too. The purpose of it is that when a user clicks on the menu options and chooses something it has to remove the buttons and open the FrameLayout. What I need help for is the XML for this layout as…
dada dudu
  • 129
  • 6
-1
votes
1 answer

Android: cannot focus anything in FrameLayout

I'm creating a FragmentActivity. The xml file related to this Activity is a FrameLayout. When i'm inflating my FrameLayout, i've got differents views in it like Spinners, EditTexts, Buttons ... But I cannot focus on touch any of them. The spinners…
-1
votes
1 answer

ScrollView with FrameLayout

I am trying to use scroll from ScrollView to expand, collapse a header I have. I cannot use the new support library because that project does not compile with latest SDK and I am doing it manually. If I use it with a WebView or another Layout it…
-1
votes
1 answer

Position a particular view

I am using a frameLayout and adding that to a viewgroup that already consists of a list view. Now the problem that arise is that the frameview is settled a bottom. I want it to come down at the bottom. Here is my code: public void…
Rahul Verma
  • 25
  • 1
  • 8
-1
votes
1 answer

Draw a circle as an overlay within a frame layout

I have a frame layout (full screen) that acts as a container for another frame layout which shows the camera preview. Now I want to show on top of the camera preview a circle of a given radius. The radius shall change as a function of some…
Settembrini
  • 1,366
  • 3
  • 20
  • 32
-1
votes
2 answers

How to Place a FAB at the end of a View?

I'm trying to create a layout like below. The problem is that the FAB is changing position in some devices because i have hardcoded the bottom margin. I want the FAB as like in the below image. PRESENT CODE
-1
votes
1 answer

Android XML DrawLayout

How to add a button to a DrawLayout? This code is for showing google map, and I need to add a button in the bottom of the map.
user3020848
  • 101
  • 1
  • 1
  • 2
-1
votes
5 answers

View of the one fragment displaying behind another fragment

I have multiple fragments in my app,ok lets say i have fragment f1 and f2..now in f1 i have imageview and buttons,now if click on button it goes to f2 and display f2,but in background the view of the f1 is still visible,can any one tell what is the…
Aditya
  • 1,508
  • 1
  • 19
  • 37
-1
votes
3 answers

the method startactivity(intent,bundle) in the type activity is not applicable for the argument (int,intent)

I want to link the activity from main activity in list view to other activity using intent. When i linked it using intent and direct the result to the frame layout that has id (R.id.main) in mainactivity ,it happens a problem. Any one can help…
-1
votes
1 answer

How to change the text within multiple buttons?

I'm trying to convert a c# windows form program over to android and I'm at the very last piece that I can't seem to figure out the translation for. I have 9 buttons in a framelayout that I need to remove the text from either by iterating or by…
-1
votes
1 answer

Implementation of two ListViews in a Frame Layout

i have very basic knowledge about the framelayout . i wants to implement two listviews in a One frame Layout plus and the condition is whenever i click any of list out of two list in a frame layout "the clicked list must get zoomed out to fill the…
abbyandrew
  • 93
  • 1
  • 1
  • 9
-1
votes
2 answers

Call requests min level of 16

I want to change the background of my framelayout (which holds all my pages!) by: FrameLayout fl = (FrameLayout)findViewById(R.id.container); fl.setBackground(getResources().getDrawable(R.drawable.juraquiz_app_background)); but apparently I…
user3432220
  • 101
  • 6
-1
votes
1 answer

Imageview Drawing catch not come as needed

I have image view inside frame layout ,i put random sticker on image view at run time but when i save image bitmap using frame layout drawing-catch then image save but with unnecessary black part comes in saved image. i want bitmap without this…
Pranav
  • 4,172
  • 3
  • 30
  • 31
-1
votes
3 answers

Passing data into multiple fragments that uses one container

First time posting here and also a new developer for Android Apps. Desire Function of Example App: 1) Activity starts in fullscreen A 2) Fragment B then populates/inflates container of A fullscreen 3) Fragment B has a button, button is press 4)…
Quan
  • 23
  • 5