android-linearlayout Questions

7

Solved

i have button in that i want to put same space between all button so if i run app in tablet the space between button will equal divide, i am using linearlayout, i know there is layout_weight option...
Aweigh asked 22/2, 2013 at 9:26

5

Solved

I am new to Android. I want to hide and show Linearlayout based on if else conditions. In my application I have taken 1 spinner. Based on selected spinner values I want my next layout hide or visib...
Lakesha asked 31/8, 2013 at 6:25

8

Solved

I have 6 ImageButton in my activity, I set images through my code in them ( not using xml). I want them to cover 75% of the button area. But where as some images cover less area, some are too big ...
Cornew asked 27/2, 2013 at 15:51

10

Solved

I just implemented a ListView inside a LinearLayout, but I need to define the height of the LinearLayout (it has to be 50% of the screen height). <LinearLayout android:id="@+id/widget34" andr...

4

Solved

Margins in group layouts do not seem to work. For example, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layou...
Replevin asked 23/3, 2011 at 23:14

2

Solved

In my app, I populate a linearlayout with a text and a little icon (like a listview with a custom adapter). I need the text and the picture to have the same size. Is there a way to do that? Here'...
Midkiff asked 24/6, 2014 at 15:3

5

Solved

I would like to create a linear layout which would behave similarly to ImageButton. <LinearLayout android:id="@+id/container" style="?WidgetHomeIconContainer"> <ImageView android:id...
Schist asked 16/4, 2012 at 8:40

5

Solved

i am new in app development. i am using 3 tabs. in each fragment i want to display a list of cardview(7-8 cards). my first fragment.xml <ScrollView android:layout_height="fill_parent" androi...

2

Solved

I am risking writing a duplicate question, but as I was researching the answer to another SO question, I realized that I couldn't find a simple question and answer that included setting both gravit...
Sayer asked 23/11, 2014 at 7:8

2

Solved

We have been using AdMob on our Android app for more than 4 years. In the last days, we encountered an issue with AdMob, without modifying any code. As you can see from the picture below: PREVIO...
Juback asked 6/11, 2018 at 5:8

5

Solved

I am using a LinearLayout with a vertical orientation to list fragments. I add fragments to the container programmatically like this: FragmentTransaction ft = fragmentManager.beginTransaction(); ...
Festal asked 21/3, 2014 at 11:54

5

Solved

Is there way by programming that all the children of a certain layout? For example i have this layout with two children: <LinearLayout android:layout_height="wrap_content" android:id="@+id/...
Persevere asked 7/10, 2011 at 13:15

5

I have two views in a linear layout, I programmatically change their layout_weight property. Is there a way I could animate this change in weight so when the weight is changed views slides towards ...

6

Solved

I face the nest layout problems and throws some exceptions. The error is "This LinearLayout layout or its LinearLayout parent is useless ...". I know i can ignore it this warning by this setting. ...

2

Solved

I have a registration form in a LinearLayout as shown below: When emulator screen is in it's default position it is working fine. But when I rotate the emulator screen it only displays the eleme...
Devaluation asked 17/11, 2010 at 7:54

7

Solved

i have two linear layouts in one frame layout. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren...
Grivet asked 18/6, 2013 at 12:11

4

I have a hierarchy that is like this: LinearLayout(horizontal) ImageView LinearLayout(vertical) TextView TextView TextView TextView I want to be able to add the hierarchy above through iter...
Unexampled asked 29/11, 2013 at 10:36

2

Solved

I have the following code working which generates fragments, but only if I am adding them to a linear layout which exists in my XML file. LinearLayout fragmentsLayout = (LinearLayout) findViewById...
Pereyra asked 18/8, 2013 at 7:48

3

I am trying to build a UI, where in I have a linear layout which has been defined in the XML. As per the user's input, I need to add some TextViews to this linear layout. I am able to do this. M...

3

Solved

I have an edit text with a 200sp size. The cursor appears in the middle. How can I make sure the cursor appears in the left corner? It looks odd being in the center. <?xml version="1.0" encodin...
Unbuild asked 23/5, 2011 at 16:7

3

Solved

I want to add a bottom view to a Coordinator layout with view pager in it , Bottom View will be on top of fragment loaded by view pager and independent of it . I added a linear layout with layou...

13

Solved

How can I show shadow for my linear layout. I want white colored rounded background with shadow around the linearlayout. I have done this so far. <LinearLayout android:layout_width="fill_pare...
Schweitzer asked 22/10, 2012 at 6:1

4

Solved

I am creating an application and posted a question yesterday how to start activity by click any where on row. Got an idea to do like below but I am getting this error: The method setOnClickListe...
Tight asked 24/3, 2013 at 8:22

5

Solved

I have the following basic layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_h...
Cleaning asked 4/10, 2011 at 17:44

1

When I change visibility to GONE with CoordinatorLayout as parent view, the AppBarLayout already take place, but when I use the LinearLayout, i haven't this problem. I want to use CoordinatorLayou...
Transistor asked 1/10, 2015 at 22:17

© 2022 - 2024 — McMap. All rights reserved.