Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to set layouts in android studio here is a problem i am trying to create some setting of multiple layouts here is some code
non i am try to add one more linearlayout in middle section but it flow out of screen
which i thing should not happen i want to add one more linear layout in middle section buti dont cover the remaining screen...........its come out of the textview instead below of the text view plz help
i did not find option for upload print screen i can upload this too i u did not get my answer thanks in advance


HTML
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android">
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent">

    <linearlayout>
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:weightSum="1"
        android:id="@+id/toplayout">

        <linearlayout>
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="center_horizontal"
            android:removed="#DDDDDD">

            <linearlayout>
                android:orientation="horizontal"
                android:layout_width="wrap_removed"
                android:layout_height="105dp"
                style="0"
                android:weightSum="1"
                android:gravity="center"
                android:padding="10dp">

                <ImageButton
                    android:layout_width="69dp"
                    android:layout_height="68dp"
                    android:id="@+id/imageButton"
                    android:src="@drawable/leaf"
                    android:adjustViewBounds="true"
                    android:background="#00000000" />

                <textview>
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textAppearance="?android:attr/textAppearanceLarge"
                    android:text="OSIF Companion"
                    android:id="@+id/textView"
                    android:textSize="25dp" />

            </textview></linearlayout>

            <ImageButton
                android:layout_width="107dp"
                android:layout_height="match_parent"
                android:id="@+id/imageButton2"
                android:src="@drawable/setting"
                android:background="#00000000"
                android:layout_gravity="center" />
        </linearlayout>

    </linearlayout>

    <linearlayout>
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/middlelayout"
        android:weightSum="1">

        <linearlayout>
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content">

            <textview>
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAppearance="?android:attr/textAppearanceLarge"
                android:text="Large Text"
                android:id="@+id/textView2" />
        </textview></linearlayout>

    </linearlayout>


</linearlayout>
Posted
Updated 11-Oct-15 19:00pm
v2
Comments
Krunal Rohit 12-Oct-15 2:42am    
Quite not clear. Please elaborate your question.

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900