android constrait layout overlap with title bar












0















What's wrong with below constraint layout:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>


The button has been overlapped by title bar!



enter image description here










share|improve this question























  • Where is that ActionBar added? It doesn't look like the default one.

    – TheWanderer
    Nov 15 '18 at 2:19











  • use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"

    – Harin Kaklotar
    Nov 15 '18 at 2:54











  • is its layout of the fragment? so can you show me the root layout that contains this fragment?

    – GianhTran
    Nov 15 '18 at 3:59






  • 1





    From where you added ActionBar ? in manifest or in code?

    – scienticious
    Nov 15 '18 at 4:52











  • ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);

    – lucky1928
    Nov 15 '18 at 16:08
















0















What's wrong with below constraint layout:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>


The button has been overlapped by title bar!



enter image description here










share|improve this question























  • Where is that ActionBar added? It doesn't look like the default one.

    – TheWanderer
    Nov 15 '18 at 2:19











  • use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"

    – Harin Kaklotar
    Nov 15 '18 at 2:54











  • is its layout of the fragment? so can you show me the root layout that contains this fragment?

    – GianhTran
    Nov 15 '18 at 3:59






  • 1





    From where you added ActionBar ? in manifest or in code?

    – scienticious
    Nov 15 '18 at 4:52











  • ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);

    – lucky1928
    Nov 15 '18 at 16:08














0












0








0








What's wrong with below constraint layout:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>


The button has been overlapped by title bar!



enter image description here










share|improve this question














What's wrong with below constraint layout:



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>


The button has been overlapped by title bar!



enter image description here







android






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 2:16









lucky1928lucky1928

3,66742245




3,66742245













  • Where is that ActionBar added? It doesn't look like the default one.

    – TheWanderer
    Nov 15 '18 at 2:19











  • use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"

    – Harin Kaklotar
    Nov 15 '18 at 2:54











  • is its layout of the fragment? so can you show me the root layout that contains this fragment?

    – GianhTran
    Nov 15 '18 at 3:59






  • 1





    From where you added ActionBar ? in manifest or in code?

    – scienticious
    Nov 15 '18 at 4:52











  • ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);

    – lucky1928
    Nov 15 '18 at 16:08



















  • Where is that ActionBar added? It doesn't look like the default one.

    – TheWanderer
    Nov 15 '18 at 2:19











  • use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"

    – Harin Kaklotar
    Nov 15 '18 at 2:54











  • is its layout of the fragment? so can you show me the root layout that contains this fragment?

    – GianhTran
    Nov 15 '18 at 3:59






  • 1





    From where you added ActionBar ? in manifest or in code?

    – scienticious
    Nov 15 '18 at 4:52











  • ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);

    – lucky1928
    Nov 15 '18 at 16:08

















Where is that ActionBar added? It doesn't look like the default one.

– TheWanderer
Nov 15 '18 at 2:19





Where is that ActionBar added? It doesn't look like the default one.

– TheWanderer
Nov 15 '18 at 2:19













use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"

– Harin Kaklotar
Nov 15 '18 at 2:54





use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"

– Harin Kaklotar
Nov 15 '18 at 2:54













is its layout of the fragment? so can you show me the root layout that contains this fragment?

– GianhTran
Nov 15 '18 at 3:59





is its layout of the fragment? so can you show me the root layout that contains this fragment?

– GianhTran
Nov 15 '18 at 3:59




1




1





From where you added ActionBar ? in manifest or in code?

– scienticious
Nov 15 '18 at 4:52





From where you added ActionBar ? in manifest or in code?

– scienticious
Nov 15 '18 at 4:52













ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);

– lucky1928
Nov 15 '18 at 16:08





ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);

– lucky1928
Nov 15 '18 at 16:08












2 Answers
2






active

oldest

votes


















1














Try this...



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
/>
<TextView
android:id="@+id/txtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"/>
</android.support.constraint.ConstraintLayout>


Result:



output






share|improve this answer


























  • why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

    – lucky1928
    Nov 15 '18 at 16:12











  • @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

    – Silambarasan Poonguti
    Nov 16 '18 at 4:22





















1














     <Button
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="SEND"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:text="Hello World"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintVertical_bias="0.0">
</TextView>







share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311485%2fandroid-constrait-layout-overlap-with-title-bar%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Try this...



    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/constraint"
    tools:context=".MainActivity">
    <Button
    android:id="@+id/button"
    android:text="Send"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    android:layout_marginLeft="8dp"
    android:layout_marginStart="8dp"
    />
    <TextView
    android:id="@+id/txtView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_margin="10dp"
    android:text="Hello World!"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button"/>
    </android.support.constraint.ConstraintLayout>


    Result:



    output






    share|improve this answer


























    • why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

      – lucky1928
      Nov 15 '18 at 16:12











    • @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

      – Silambarasan Poonguti
      Nov 16 '18 at 4:22


















    1














    Try this...



    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/constraint"
    tools:context=".MainActivity">
    <Button
    android:id="@+id/button"
    android:text="Send"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    android:layout_marginLeft="8dp"
    android:layout_marginStart="8dp"
    />
    <TextView
    android:id="@+id/txtView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_margin="10dp"
    android:text="Hello World!"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button"/>
    </android.support.constraint.ConstraintLayout>


    Result:



    output






    share|improve this answer


























    • why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

      – lucky1928
      Nov 15 '18 at 16:12











    • @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

      – Silambarasan Poonguti
      Nov 16 '18 at 4:22
















    1












    1








    1







    Try this...



    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/constraint"
    tools:context=".MainActivity">
    <Button
    android:id="@+id/button"
    android:text="Send"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    android:layout_marginLeft="8dp"
    android:layout_marginStart="8dp"
    />
    <TextView
    android:id="@+id/txtView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_margin="10dp"
    android:text="Hello World!"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button"/>
    </android.support.constraint.ConstraintLayout>


    Result:



    output






    share|improve this answer















    Try this...



    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/constraint"
    tools:context=".MainActivity">
    <Button
    android:id="@+id/button"
    android:text="Send"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    android:layout_marginLeft="8dp"
    android:layout_marginStart="8dp"
    />
    <TextView
    android:id="@+id/txtView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_margin="10dp"
    android:text="Hello World!"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button"/>
    </android.support.constraint.ConstraintLayout>


    Result:



    output







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 16 '18 at 4:21

























    answered Nov 15 '18 at 4:37









    Silambarasan PoongutiSilambarasan Poonguti

    7,24223732




    7,24223732













    • why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

      – lucky1928
      Nov 15 '18 at 16:12











    • @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

      – Silambarasan Poonguti
      Nov 16 '18 at 4:22





















    • why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

      – lucky1928
      Nov 15 '18 at 16:12











    • @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

      – Silambarasan Poonguti
      Nov 16 '18 at 4:22



















    why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

    – lucky1928
    Nov 15 '18 at 16:12





    why I got a error: error: attribute layout_constraintLeft_toStartOf not found?

    – lucky1928
    Nov 15 '18 at 16:12













    @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

    – Silambarasan Poonguti
    Nov 16 '18 at 4:22







    @lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute

    – Silambarasan Poonguti
    Nov 16 '18 at 4:22















    1














         <Button
    android:id="@+id/toolbar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginEnd="8dp"
    android:layout_marginRight="8dp"
    android:text="SEND"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.05"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

    <TextView
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_marginBottom="8dp"
    android:layout_marginEnd="8dp"
    android:layout_marginLeft="8dp"
    android:layout_marginRight="8dp"
    android:layout_marginStart="8dp"
    android:text="Hello World"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/toolbar"
    app:layout_constraintVertical_bias="0.0">
    </TextView>







    share|improve this answer




























      1














           <Button
      android:id="@+id/toolbar"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginRight="8dp"
      android:text="SEND"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.05"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent" />

      <TextView
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_marginBottom="8dp"
      android:layout_marginEnd="8dp"
      android:layout_marginLeft="8dp"
      android:layout_marginRight="8dp"
      android:layout_marginStart="8dp"
      android:text="Hello World"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/toolbar"
      app:layout_constraintVertical_bias="0.0">
      </TextView>







      share|improve this answer


























        1












        1








        1







             <Button
        android:id="@+id/toolbar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="SEND"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.05"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

        <TextView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginBottom="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginStart="8dp"
        android:text="Hello World"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/toolbar"
        app:layout_constraintVertical_bias="0.0">
        </TextView>







        share|improve this answer













             <Button
        android:id="@+id/toolbar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        android:text="SEND"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.05"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

        <TextView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginBottom="8dp"
        android:layout_marginEnd="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginStart="8dp"
        android:text="Hello World"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/toolbar"
        app:layout_constraintVertical_bias="0.0">
        </TextView>








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 4:10









        Harshil kakadiyaHarshil kakadiya

        627




        627






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311485%2fandroid-constrait-layout-overlap-with-title-bar%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Danny Elfman

            Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues