android-linearlayout Questions

5

Solved

I tried this code: LinearLayout someLayout=(LinearLayout)view.findViewById(R.id.someLayout); someLayout.setBackgroundTintList(context.getResources().getColorStateList(Color.parseColor("#ff8800"))...
Apollus asked 15/12, 2017 at 17:50

7

Solved

I try to add a TextView to a LinearLayout dynamically such as in the following code, but it doesn't appear when I run the application? setContentView(R.layout.advanced); m_vwJokeLayout=(LinearLay...
Arieariel asked 17/11, 2010 at 10:34

2

Solved

My purpose is to have an invisible LinearLayout that appear whit an animation when click on a specific button. To do this i have set the default height to WRAP_CONTENT, get the height when the app ...
Flirtatious asked 7/12, 2016 at 10:5

8

Solved

I want to have a single lined TextView to show up 3 dots at the end when the text is longer than the TextView. I don't know why - but I don't get it. I already wrapped my head around similar Stack...
Firstfoot asked 29/6, 2012 at 12:36

14

Solved

I would like to create the same border of this LinearLayout as the example : In this example, we can see that the border is not the same all around the linearLayout. How can I create this using ...
Vortical asked 7/6, 2014 at 8:12

9

Solved

I have a TextView which I want to pin at the bottom of a landscape activity that is using LinearLayout with vertically arranged elements. I have set android:gravity="bottom" on the text view, but...
Lesko asked 24/3, 2011 at 20:50

6

I am implementing a custom expandable action bar in my game. I am using ViewDragHelper to handle the dragging and flinging of the bar view, which is contained in a LinearLayout I subclassed to atta...
Syne asked 4/4, 2014 at 14:16

14

Solved

I have the following layout i'd like to make the textview appear in the center and middle of the view. How can i acheive this? I've tried adjusting the various gravity attributes when looking at t...
Perse asked 20/11, 2012 at 14:8

4

I'd like to set the layout_weight of the TextView with the tv_long_text to 80% in the following LinearLayout of vertical orientation. <LinearLayout android:layout_height="match_parent" androi...
Liz asked 25/1, 2017 at 16:28

2

Solved

If I call setPadding() on a view, I can successfully set the padding, however, if I first set the layoutParams and then the padding, or set the padding and then set the layoutParams, the padding is...
Divebomb asked 4/11, 2015 at 13:49

4

Solved

I am having an issue with my application. I recently added ScrollView as the Parent of LinearLayout. When flip my device orientation to Landscape, my buttons get cut off on the top. I can see the l...
Starry asked 17/12, 2010 at 18:19

2

Solved

Im trying to implement a GridView as part of a image gallery. I followed the following example from the Android developer portal. The tutorial seems to work for all screen sizes. As you can see be...

24

Solved

I have a LinearLayout (oriented horizontally) that contains 3 buttons. I want the 3 buttons to have a fixed width and be evenly distributed across the width of the LinearLayout. I can manage this b...
Persia asked 12/8, 2010 at 17:36

6

Solved

I recently ran into a problem again that I already had several times in the last years. LinearLayout is a very convenient layout manager. But what I totally miss is the possibility to add a certa...
Multitudinous asked 17/9, 2012 at 7:38

10

Solved

I have one big layout, and one smaller layout inside of it. How do I create a line border around the small layout?
Brussels asked 27/2, 2013 at 11:50

16

Solved

I can't make a ScrollView properly scrolling. It always cut off the content on the bottom, as if it were a normal LinearLayout. My code <ScrollView xmlns:android="http://schemas.android.com...
Derwent asked 11/2, 2013 at 11:9

3

Solved

Suppose in my LinearLayout (say parentLayout) there are 5 other LinearLayouts (say childLayout), where only one of them are visible at the moment. The other layouts depend on some external event to...
Tinsel asked 10/9, 2013 at 16:10

11

Solved

I have the following code, how do I make it so that the 3 buttons are at the bottom? <TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="wrap_...

2

Solved

I'm new with fragments and I try to use these. My xml from activity is: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" a...

15

Solved

I've got a custom LinearLayout with a smaller TextView child. I'd like to be able to click the area not covered by the TextView, so I set clickable=true and an onclicklistener to the LinearLayout, ...
Belgrade asked 20/7, 2011 at 14:52

3

Solved

This is my layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/LinearLayout1" android:layout_width="fill_parent" android:layout_height="fill_par...

17

Solved

I'm creating a chat based UI screen where I have toolbar and recyclerview for chat messages, and reply msg layout. Whenever edittext get focus It moves up the toolbar. Instead I would like to resi...

19

Solved

I always read about this funny weight value in the Android documentations. Now I want to try it for the first time but it isn't working at all. As I understand it from the documentations this la...
Cuirassier asked 23/4, 2010 at 13:18

2

Solved

I want to set the background android.R.attr.selectableItemBackground to a LinearLayout. When using XML there are no problems (it works) <LinearLayout android:id="@+id/llMiner" android:layout_...
Parisparish asked 4/1, 2012 at 19:18

6

Solved

Is it possible to show the first view in a LinearLayout overlapping the second? I would like to layout my views like so: <LinearLayout android:layout_width="wrap_content" android:layout_hei...
Siler asked 6/6, 2013 at 22:31

© 2022 - 2024 — McMap. All rights reserved.