android-framelayout Questions

0

I am adding fragment like bellow : @OnClick(R.id.lnNews) void newsList() { String tagName = returnStatusFragment(getString(R.string.news_list_fragment)); if (!TextUtils.isEmpty(tagName) &&am...

2

Solved

What purpose does FrameLayout serve in Android? Is there any specific scenario for which it is designed for? In my Android application, I have a scenario where I have to show two ImageViews, one ...

4

I've got a FrameLayout with two nested LinearLayouts. I want an onClickListener() for FrameLayout. After a search I got a solution clickable="false". This is my Layout file: <FrameLayout andr...
Ictinus asked 14/10, 2017 at 12:9

2

Solved

FrameLayout has the attributes android:foreground, android:foregroundGravity and android:measureAllChildren. I have tried these attributes, but couldn't make out how they affect the layout's appear...
Detumescence asked 26/1, 2016 at 20:9

1

I'm doing an Augmented Reality app and I need to show some objects on the camera view. I'm creating a FrameLayout to which I add my camera view and then I add my AR objects (now I'm trying with Tex...
Acronym asked 18/7, 2011 at 9:25

2

I am using camera API to take picture i have to open camera in different sizes according to my Image view size. I am following the sample project which we get inside Android sdk/sample/adroid-18 at...
Campanulate asked 14/1, 2014 at 6:21

2

Solved

I have a problem with my FrameLayout (Container in Drawer Layout). The height of the FrameLayout exceeds the screen height (below the android default menu buttons at bottom). <android.support.d...
Singletree asked 18/9, 2015 at 11:2

5

Solved

I'm having a very weird problem with a layout. It looks as designed in eclipse XML editor and in my Samsung galaxy but it's messed up in my old phone xperia x10 mini. I can only assume that this wo...

4

Solved

On a button click, I am attempting to inflate an EditText above a RecyclerView. But instead of the EditText being added to the top of the layout, thus pushing down the RecyclerView, it is simply be...

3

Solved

In my application, I have a layout which has a RelativeLayout to which I want to set margins at runtime programmatically. But when I do that, it gives me ClassCastException saying FrameLayout can n...

2

I have seen an approach where frameLayout is used in case of fragments. The ultimate goal was to have multiple fragments.
Tomikotomkiel asked 18/4, 2017 at 14:22

8

Solved

I have set up a FrameLayout which has a TextView on top of a ListView. Now, in the MainActivity, after executing some code, I check whether the ListView is empty. If it is, I display the TextView, ...
Boogie asked 9/7, 2013 at 6:23

3

I'm new to android programming but from how much I have understood of the layouts from the documentation, RelativeLayout is mostly used when you need the views based on some rules and the FrameLayo...

5

Solved

I am confused about the difference between LinearLayout, RelativeLayout, and AbsoluteLayout. Could someone please tell me the exact differences between them?

2

Solved

In FrameLayout of XML we have an attribute by name tools:ignore="MergeRootFrame", what is MergeRootFrame ?
Kagoshima asked 12/11, 2014 at 5:46

1

Solved

I have following Android XML layout file: <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/AutoComplete_marginSides" ...

1

i want to implement Globe-Weis File Folder like picture below which by clicking on green button it scrolling smoothly up and by clicking on the green button again ,the folder page scrolling down sm...

0

In order to implement a clean architecture with separate and reusable UI components, I need to have hierarchies of nested FrameLayouts (up to 3-4 nested FrameLayouts), all of which have both layout...
Hux asked 10/5, 2016 at 15:37

1

Solved

I use a framelayout at the bottom of an activity, in order to show the shadow effects on the fragment, I add android:elevation. But the shadow effects only appear in the bottom side not on top side...

2

Solved

I have added Fragment to Activity like getSupportFragmentManager().beginTransaction() .add(R.id.container,new MyFragment).commit(); where container is the id of FrameLayout <FrameLayout...

4

Solved

I want to make my ImageView on top of my Button, but the button will always overlay the ImageView , no matter which layout I choose or the way I arrange my layout... this is an example of a FrameLa...

6

Solved

I have a FrameLayout which contains 2 views , the second is something like a Close Button (X) and i want to position it on the right. I've tried layout_gravity = " right ", but that didn't work. ...
Cedell asked 19/5, 2011 at 15:1

3

Solved

I am building an application with one Activity MainActivity which consists of two fragments. And I came across with many tutorials that use FrameLayout as the parent container for the fragment layo...
Natalienatalina asked 31/12, 2015 at 3:22

1

Solved

I have a FrameLayout inside a NestedScrollView, as <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@...

2

Trying to get a background of a pizza logo on a mock pizza form. For some reason, I keep getting an error. Here is the layout xml: <FrameLayout xmlns:android="http://schemas.android.com/apk/r...
Traduce asked 28/10, 2015 at 16:33

© 2022 - 2024 — McMap. All rights reserved.