android-framelayout Questions

4

Solved

I have this function in my main activity which doesn't display a badge: private fun setFindShiftBadge(state: HomeState) { val findShiftsBadge = BadgeDrawable.create(this) home_framelayout.foreg...

3

Design of my app Screen - 1 <NestedScrollview> <LinearLayout orientation:horizontal"> <RecyclerView-1> <Framelayout>(contains Recyclerview-2) </NestedScroll> ...

10

Solved

Here i have one view pager activity which has one imageview and 2 overlay bars. there overlay bars i made using android xml file layout itself. Here my requirement is like that 1) single tap on ...

4

I have created an xml file called editor.xml which contains a FrameLayout. In my main activity I am trying to add my custom fragment to my FrameLayout. The error I receive when trying to add my fr...

2

I am Currently getting tons of crashes in Fabric regarding many different instances of the same crash. I.E FrameLayout.java line 275, FrameLayout.java line 405, FrameLayout.java line 531. There is ...
Feminize asked 3/6, 2019 at 16:20

8

Solved

I have FrameLayout like this: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <Butto...
Esculent asked 31/8, 2015 at 8:47

6

Solved

I have a FrameLayout in which I have 2 controls: - a custom view which draws a image and some text on it - a textview with a text I want to center both in the FrameLayout but I can't manage to do...
Floccose asked 29/10, 2010 at 11:59

6

Solved

Sorry for the huge code dump, but I'm truly lost. MyActivity.java onCreate: super.onCreate(savedInstanceState); setContentView(R.layout.activity_singlepane_empty); mFragment = new PlacesFragment();...

6

Solved

I'm building a UI, and it's all static defined in the XML. All of it has weights all over the place, and while it looks right, I wanted to see that things actually have the right height and all. Th...
Xmas asked 17/11, 2011 at 16:42

4

Solved

I have a FrameLayout that contains a TextView and two LinearLayouts: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout...
Rebuff asked 31/1, 2014 at 19:2

8

Solved

I'm using YouTubePlayer (YouTube api for android) within a Fragment I am inflating a LinearLayout with the YouTube Player, in this way: fragmentManager = getActivity().getSupportFragmentManager();...
Tartuffe asked 17/4, 2013 at 18:48

4

I am trying to set the width and height of 2 frame layouts which are the containers for 2 fragments, both being children of a Linear Layout. However whenever I set width and height of the layout w...

2

I have a WebView inside a FrameLayout, to add tabs because i am creating a browser. The FrameLayout is inside a SwipeRefreshLayout. The problem: Whenever i scroll the content up fast in the WebVie...

2

Solved

I am building a layout for large screens, that is supposed to consist of 2 different parts, a left one and a right one. For doing that I thought using 2 Fragments is the right choice. Then I had ...
Onitaonlooker asked 18/10, 2013 at 15:36

9

I have a layout that contains some text fields and has a background image that's displayed at the top of my activity. I'd like the background image to scale to wrap the content (don't care about as...

2

I have read a few questions regarding this topic on SO but haven't really found a solid answer to it. I have a framelayout that I stack multiple custom views on, however the onTouch event only wor...
Softpedal asked 18/11, 2011 at 22:52

4

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mypackage/com.mypackage.activities.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual m...

8

Solved

I'm working on the Navigation Drawer for Android. As per my requirement I was to display gridview and listview of items in the navigation drawer. I have created a linearLayout in the layout xml fil...

3

Solved

I have a FrameLayout inside my root view (linear:vertical) that I'm using to hold different fragments depending on user input. The FrameLayout is smaller than the background, so it appears to be "f...
Schizo asked 24/3, 2016 at 19:17

2

I am creating an Android application. I am new to android. I want to create a label like in the image below. Here is the below code that I have tried. I have labels over the images. Any help wil...
Loquacious asked 4/6, 2019 at 10:45

3

Solved

I have FrameLayout with android:elevation="4dp". Shadow of this elevation directed down. I want change direction of shadow to up. <FrameLayout android:id="@+id/container" android:layout_width...
Orthoclase asked 20/9, 2015 at 9:25

13

Solved

I see many applications that use a full-screen image as background. This is an example: I want to use this in a project, the best way I've found so far to do this is to use an image with a large...
Ingamar asked 21/4, 2013 at 20:40

5

I'm new to programming. I was using Graphical Layout then when I was reading xml file, I saw FrameLayout. Then I searched, but I couldn't find something useful. What is FrameLayout and what does it...
Kamalakamaria asked 5/9, 2014 at 5:48

3

Solved

How can I make the FrameLayout end with the beginning of the BottomNavigationView? The content of the FrameLayout is being overlapped by the navigation view. This is the xml: <?xml version="1....
Ossification asked 22/8, 2017 at 10:36

4

I used a layer of framelayout with a semi-translucent background to create an overlay. But this overlay doesn't block touch events to interact with the views below it. How should create an overlay...
Cowshed asked 3/1, 2015 at 8:4

© 2022 - 2024 — McMap. All rights reserved.