android-linearlayout Questions
1
Solved
Tried implementing a toolbar for my layout but a gap keeps appearing underneath it. What is the correct way to eliminated that gap? I believe android:fitsSystemWindows="false" or android:fitsSystem...
Nickinickie asked 29/7, 2017 at 22:15
5
Solved
I tried the following code to convert the LinearLayout to image:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LinearLay...
Sheepshank asked 29/4, 2012 at 18:1
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...
Undue asked 7/10, 2015 at 20:31
6
Solved
I have this code in my application:
LinearLayout.LayoutParams params =
new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
and I just want to set the orientation of the LinearLayout to v...
Castello asked 7/6, 2011 at 6:38
4
I've been searching for a while with this issue and i cant find solution yet.
For my design of DrawerLayout, I will not be using listview but linearlayout as container for my views. I test it first...
Elitism asked 15/8, 2014 at 3:21
3
Solved
I have a LinearLayout set height as match_parent as below:
<LinearLayout
android:id="@+id/list_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orie...
Putnam asked 15/8, 2012 at 5:24
2
I am using the LinearLayout and inside there's button I am making visibilty gone based on supported states. SupportedStatuses are true then making Button as Visible but SupprtedStatuse are false th...
Christianson asked 21/5, 2015 at 7:45
1
Solved
On click of back button, navigate to the previous tab that was opened. You will exit the app only by traversing through last two tabs you have opened.how to achieve it
I just want to traverse all ...
Bearberry asked 5/6, 2017 at 6:20
4
Solved
I have a horizontal linear layout that contains 3 image views. Each image view contains the same image which is 200x200 pixels. Here is my layout xml:
<RelativeLayout xmlns:android="http://sche...
Handgun asked 3/3, 2013 at 18:11
3
Solved
I have the following ImageView and TextView:
Here is the XML:
<LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/headerLinearLay" android:...
Diamond asked 24/5, 2011 at 19:10
5
Solved
I have a layout that used to update the background color of the status bar based on colorPrimaryDark.
This worked great when the layout's root layout was a CoordinatorLayout, but when I switched ...
Reneta asked 15/12, 2015 at 1:16
4
Solved
I'm trying to add a header to an ExpandableListView like so:
headerView = View.inflate(this, R.layout.header, null);
expandableListView.addHeaderView(headerView);
expandableListView.setAdapter(new...
Cornice asked 9/12, 2010 at 0:33
7
I developed and tested my application the whole time on my 5.2 inch device (LG G2).
Only just I started the application on a bigger 5.5 inch device (OnePlus 3T) and it looks not good as you can se...
Fubsy asked 17/1, 2017 at 22:13
2
Solved
I want my card to look like the following
I kept my layout like this
<android.support.v7.widget.CardView
android:layout_gravity="center"
android:layout_width="fill_parent"
android:layout...
Kanya asked 23/3, 2016 at 3:8
2
Solved
How do I reference a later XML element?
Here's a specific use case. Let's say I have a form with a root LinearLayout, containing LinearLayouts for multiple rows, each row having one or more text i...
Rateable asked 4/8, 2015 at 20:27
2
I used a style file to set a unique style for same layouts,
Style:
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- User form layout style -->
<style n...
Halogenate asked 13/6, 2013 at 6:23
5
Solved
I am confused about the difference between LinearLayout, RelativeLayout, and AbsoluteLayout.
Could someone please tell me the exact differences between them?
Teachin asked 5/2, 2011 at 5:51
4
Solved
How do I use a compound drawable instead of a LinearLayout that contains an ImageView and a TextView
Ran the new Lint tool against my code. It came up with a lot of good suggestions, but this one I cannot understand.
This tag and its children can be replaced by one and a compound drawable
Issue: ...
Arteritis asked 29/11, 2011 at 22:39
1
Solved
Right now I have created a keyboard layout using linear layout, each key is an image e.g. "Q" , "W" , "E" are different images.
The problem is , how to add the hints image live the above? the i...
Hematology asked 15/12, 2016 at 11:27
5
Solved
I am trying to recrate following layout in android studio:
Because i am preety new at android stuff, i first tryed with LinearLayout, and figured thath this probably wont be possible with it. No...
Rabbit asked 26/8, 2013 at 13:7
2
I am uncertain of what type of layout to use for this certain scenario.
I basically want to have a horizontal linear layout that i can add views to. in this case buttons (displaying tags in an appl...
Underlay asked 13/9, 2013 at 6:57
3
Solved
How can i split LinearLayout or RelativeLayout diagonally into two varying sizes and each having different child view. Example ViewPager in upper half section and a different LinearLayout in bottom...
Dvinsk asked 17/12, 2015 at 15:54
3
Solved
I am calculating the height of some items in a ListView and then I assign the calculated height to the ListView programmatically to ensure that the ListView will expand to accommodate its contents....
Stickybeak asked 10/12, 2016 at 10:42
3
Solved
This could be the simplest thing ever but for the life of me I haven't figured it out just yet.
I have a method that sets the background color of layout but I want to pass the color as a parameter...
Damon asked 23/11, 2016 at 18:34
3
Solved
I've got the following problem: I implemented a HorizontalScrollView which contains in one case a LinearLayout and an ImageView. In this case the image is about 50% of the screen width. So I want t...
Necrophilia asked 31/7, 2013 at 8:53
© 2022 - 2024 — McMap. All rights reserved.