XML in Android Studio: Wrapcontent in RelativeLayout












0














I need to have items arranged vertically in this order: TextView, LinearLayout (under the textview), then BottomNavigationView. But the result is this:



enter image description here



I have this code:



<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<TextView
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:textSize="30dp"
android:gravity="center"
android:layout_alignParentTop="true"
android:text="Home"
/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:id="@+id/fragmentholder"
android:orientation="vertical"></LinearLayout>

<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"

android:layout_alignParentBottom="true"
android:background="?android:attr/windowBackground"

app:menu="@menu/navigation"/>

</RelativeLayout>


What am I doing wrong?










share|improve this question





























    0














    I need to have items arranged vertically in this order: TextView, LinearLayout (under the textview), then BottomNavigationView. But the result is this:



    enter image description here



    I have this code:



    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
    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:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <TextView
    android:id="@+id/message"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

    android:textSize="30dp"
    android:gravity="center"
    android:layout_alignParentTop="true"
    android:text="Home"
    />

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

    android:id="@+id/fragmentholder"
    android:orientation="vertical"></LinearLayout>

    <android.support.design.widget.BottomNavigationView
    android:id="@+id/navigation"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

    android:layout_alignParentBottom="true"
    android:background="?android:attr/windowBackground"

    app:menu="@menu/navigation"/>

    </RelativeLayout>


    What am I doing wrong?










    share|improve this question



























      0












      0








      0







      I need to have items arranged vertically in this order: TextView, LinearLayout (under the textview), then BottomNavigationView. But the result is this:



      enter image description here



      I have this code:



      <?xml version="1.0" encoding="utf-8"?>
      <RelativeLayout
      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:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity">

      <TextView
      android:id="@+id/message"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"

      android:textSize="30dp"
      android:gravity="center"
      android:layout_alignParentTop="true"
      android:text="Home"
      />

      <LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"

      android:id="@+id/fragmentholder"
      android:orientation="vertical"></LinearLayout>

      <android.support.design.widget.BottomNavigationView
      android:id="@+id/navigation"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"

      android:layout_alignParentBottom="true"
      android:background="?android:attr/windowBackground"

      app:menu="@menu/navigation"/>

      </RelativeLayout>


      What am I doing wrong?










      share|improve this question















      I need to have items arranged vertically in this order: TextView, LinearLayout (under the textview), then BottomNavigationView. But the result is this:



      enter image description here



      I have this code:



      <?xml version="1.0" encoding="utf-8"?>
      <RelativeLayout
      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:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity">

      <TextView
      android:id="@+id/message"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"

      android:textSize="30dp"
      android:gravity="center"
      android:layout_alignParentTop="true"
      android:text="Home"
      />

      <LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"

      android:id="@+id/fragmentholder"
      android:orientation="vertical"></LinearLayout>

      <android.support.design.widget.BottomNavigationView
      android:id="@+id/navigation"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"

      android:layout_alignParentBottom="true"
      android:background="?android:attr/windowBackground"

      app:menu="@menu/navigation"/>

      </RelativeLayout>


      What am I doing wrong?







      android android-linearlayout android-relativelayout






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 30 '18 at 8:58









      Onik

      11.1k103762




      11.1k103762










      asked Nov 21 '18 at 14:56









      caa5042caa5042

      3417




      3417
























          3 Answers
          3






          active

          oldest

          votes


















          1














          Set this to the LinearLayout:



          <LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@+id/message"
          android:layout_above="@+id/navigation"
          android:id="@+id/fragmentholder"
          android:orientation="vertical">
          </LinearLayout>





          share|improve this answer





























            0














            ou can make something like this: with property layout_below



            <?xml version="1.0" encoding="utf-8"?>
            <RelativeLayout
            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:id="@+id/container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:context=".MainActivity">

            <TextView
            android:id="@+id/message"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="30dp"
            android:gravity="center"
            android:layout_alignParentTop="true"
            android:text="Home"/>

            <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/message"
            android:id="@+id/fragmentholder"
            android:orientation="vertical"></LinearLayout>

            <android.support.design.widget.BottomNavigationView
            android:id="@+id/navigation"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:background="?android:attr/windowBackground"
            app:menu="@menu/navigation"/>

            </RelativeLayout>





            share|improve this answer





























              0














              <?xml version="1.0" encoding="utf-8"?>
              <RelativeLayout 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:id="@+id/container"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              tools:context=".MainActivity">

              <TextView
              android:id="@+id/message"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"

              android:layout_alignParentTop="true"
              android:gravity="center"
              android:text="Home"
              android:textSize="30dp" />

              <LinearLayout
              android:id="@+id/fragmentholder"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_alignParentStart="true"
              android:layout_below="@+id/message"
              android:orientation="vertical"></LinearLayout>

              <android.support.design.widget.BottomNavigationView
              android:id="@+id/navigation"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"

              android:layout_alignParentBottom="true"
              android:background="?android:attr/windowBackground"

              app:menu="@menu/navigation" />

              </RelativeLayout>


              This comes in the order "TextView, LinearLayout (under the textview)" specified in the question.
              The android:gravity="centre" feature is used to 'Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.' for the TextView.






              share|improve this answer























              • Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                – arirawr
                Nov 21 '18 at 15:32











              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%2f53414758%2fxml-in-android-studio-wrapcontent-in-relativelayout%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Set this to the LinearLayout:



              <LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@+id/message"
              android:layout_above="@+id/navigation"
              android:id="@+id/fragmentholder"
              android:orientation="vertical">
              </LinearLayout>





              share|improve this answer


























                1














                Set this to the LinearLayout:



                <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/message"
                android:layout_above="@+id/navigation"
                android:id="@+id/fragmentholder"
                android:orientation="vertical">
                </LinearLayout>





                share|improve this answer
























                  1












                  1








                  1






                  Set this to the LinearLayout:



                  <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@+id/message"
                  android:layout_above="@+id/navigation"
                  android:id="@+id/fragmentholder"
                  android:orientation="vertical">
                  </LinearLayout>





                  share|improve this answer












                  Set this to the LinearLayout:



                  <LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@+id/message"
                  android:layout_above="@+id/navigation"
                  android:id="@+id/fragmentholder"
                  android:orientation="vertical">
                  </LinearLayout>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 '18 at 14:59









                  forpasforpas

                  9,5071421




                  9,5071421

























                      0














                      ou can make something like this: with property layout_below



                      <?xml version="1.0" encoding="utf-8"?>
                      <RelativeLayout
                      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:id="@+id/container"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      tools:context=".MainActivity">

                      <TextView
                      android:id="@+id/message"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:textSize="30dp"
                      android:gravity="center"
                      android:layout_alignParentTop="true"
                      android:text="Home"/>

                      <LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_below="@+id/message"
                      android:id="@+id/fragmentholder"
                      android:orientation="vertical"></LinearLayout>

                      <android.support.design.widget.BottomNavigationView
                      android:id="@+id/navigation"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignParentBottom="true"
                      android:background="?android:attr/windowBackground"
                      app:menu="@menu/navigation"/>

                      </RelativeLayout>





                      share|improve this answer


























                        0














                        ou can make something like this: with property layout_below



                        <?xml version="1.0" encoding="utf-8"?>
                        <RelativeLayout
                        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:id="@+id/container"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        tools:context=".MainActivity">

                        <TextView
                        android:id="@+id/message"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textSize="30dp"
                        android:gravity="center"
                        android:layout_alignParentTop="true"
                        android:text="Home"/>

                        <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/message"
                        android:id="@+id/fragmentholder"
                        android:orientation="vertical"></LinearLayout>

                        <android.support.design.widget.BottomNavigationView
                        android:id="@+id/navigation"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_alignParentBottom="true"
                        android:background="?android:attr/windowBackground"
                        app:menu="@menu/navigation"/>

                        </RelativeLayout>





                        share|improve this answer
























                          0












                          0








                          0






                          ou can make something like this: with property layout_below



                          <?xml version="1.0" encoding="utf-8"?>
                          <RelativeLayout
                          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:id="@+id/container"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          tools:context=".MainActivity">

                          <TextView
                          android:id="@+id/message"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:textSize="30dp"
                          android:gravity="center"
                          android:layout_alignParentTop="true"
                          android:text="Home"/>

                          <LinearLayout
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/message"
                          android:id="@+id/fragmentholder"
                          android:orientation="vertical"></LinearLayout>

                          <android.support.design.widget.BottomNavigationView
                          android:id="@+id/navigation"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_alignParentBottom="true"
                          android:background="?android:attr/windowBackground"
                          app:menu="@menu/navigation"/>

                          </RelativeLayout>





                          share|improve this answer












                          ou can make something like this: with property layout_below



                          <?xml version="1.0" encoding="utf-8"?>
                          <RelativeLayout
                          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:id="@+id/container"
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          tools:context=".MainActivity">

                          <TextView
                          android:id="@+id/message"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:textSize="30dp"
                          android:gravity="center"
                          android:layout_alignParentTop="true"
                          android:text="Home"/>

                          <LinearLayout
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_below="@+id/message"
                          android:id="@+id/fragmentholder"
                          android:orientation="vertical"></LinearLayout>

                          <android.support.design.widget.BottomNavigationView
                          android:id="@+id/navigation"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_alignParentBottom="true"
                          android:background="?android:attr/windowBackground"
                          app:menu="@menu/navigation"/>

                          </RelativeLayout>






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 21 '18 at 15:24









                          OnixOnix

                          4228




                          4228























                              0














                              <?xml version="1.0" encoding="utf-8"?>
                              <RelativeLayout 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:id="@+id/container"
                              android:layout_width="match_parent"
                              android:layout_height="match_parent"
                              tools:context=".MainActivity">

                              <TextView
                              android:id="@+id/message"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentTop="true"
                              android:gravity="center"
                              android:text="Home"
                              android:textSize="30dp" />

                              <LinearLayout
                              android:id="@+id/fragmentholder"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_alignParentStart="true"
                              android:layout_below="@+id/message"
                              android:orientation="vertical"></LinearLayout>

                              <android.support.design.widget.BottomNavigationView
                              android:id="@+id/navigation"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentBottom="true"
                              android:background="?android:attr/windowBackground"

                              app:menu="@menu/navigation" />

                              </RelativeLayout>


                              This comes in the order "TextView, LinearLayout (under the textview)" specified in the question.
                              The android:gravity="centre" feature is used to 'Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.' for the TextView.






                              share|improve this answer























                              • Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                                – arirawr
                                Nov 21 '18 at 15:32
















                              0














                              <?xml version="1.0" encoding="utf-8"?>
                              <RelativeLayout 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:id="@+id/container"
                              android:layout_width="match_parent"
                              android:layout_height="match_parent"
                              tools:context=".MainActivity">

                              <TextView
                              android:id="@+id/message"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentTop="true"
                              android:gravity="center"
                              android:text="Home"
                              android:textSize="30dp" />

                              <LinearLayout
                              android:id="@+id/fragmentholder"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_alignParentStart="true"
                              android:layout_below="@+id/message"
                              android:orientation="vertical"></LinearLayout>

                              <android.support.design.widget.BottomNavigationView
                              android:id="@+id/navigation"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentBottom="true"
                              android:background="?android:attr/windowBackground"

                              app:menu="@menu/navigation" />

                              </RelativeLayout>


                              This comes in the order "TextView, LinearLayout (under the textview)" specified in the question.
                              The android:gravity="centre" feature is used to 'Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.' for the TextView.






                              share|improve this answer























                              • Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                                – arirawr
                                Nov 21 '18 at 15:32














                              0












                              0








                              0






                              <?xml version="1.0" encoding="utf-8"?>
                              <RelativeLayout 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:id="@+id/container"
                              android:layout_width="match_parent"
                              android:layout_height="match_parent"
                              tools:context=".MainActivity">

                              <TextView
                              android:id="@+id/message"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentTop="true"
                              android:gravity="center"
                              android:text="Home"
                              android:textSize="30dp" />

                              <LinearLayout
                              android:id="@+id/fragmentholder"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_alignParentStart="true"
                              android:layout_below="@+id/message"
                              android:orientation="vertical"></LinearLayout>

                              <android.support.design.widget.BottomNavigationView
                              android:id="@+id/navigation"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentBottom="true"
                              android:background="?android:attr/windowBackground"

                              app:menu="@menu/navigation" />

                              </RelativeLayout>


                              This comes in the order "TextView, LinearLayout (under the textview)" specified in the question.
                              The android:gravity="centre" feature is used to 'Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.' for the TextView.






                              share|improve this answer














                              <?xml version="1.0" encoding="utf-8"?>
                              <RelativeLayout 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:id="@+id/container"
                              android:layout_width="match_parent"
                              android:layout_height="match_parent"
                              tools:context=".MainActivity">

                              <TextView
                              android:id="@+id/message"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentTop="true"
                              android:gravity="center"
                              android:text="Home"
                              android:textSize="30dp" />

                              <LinearLayout
                              android:id="@+id/fragmentholder"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"
                              android:layout_alignParentLeft="true"
                              android:layout_alignParentStart="true"
                              android:layout_below="@+id/message"
                              android:orientation="vertical"></LinearLayout>

                              <android.support.design.widget.BottomNavigationView
                              android:id="@+id/navigation"
                              android:layout_width="match_parent"
                              android:layout_height="wrap_content"

                              android:layout_alignParentBottom="true"
                              android:background="?android:attr/windowBackground"

                              app:menu="@menu/navigation" />

                              </RelativeLayout>


                              This comes in the order "TextView, LinearLayout (under the textview)" specified in the question.
                              The android:gravity="centre" feature is used to 'Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.' for the TextView.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Nov 21 '18 at 15:49

























                              answered Nov 21 '18 at 15:28









                              D.PereraD.Perera

                              12




                              12












                              • Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                                – arirawr
                                Nov 21 '18 at 15:32


















                              • Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                                – arirawr
                                Nov 21 '18 at 15:32
















                              Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                              – arirawr
                              Nov 21 '18 at 15:32




                              Hey, welcome to Stack Overflow! Could you add some more context to your answer, describing why it works to solve the problem?
                              – arirawr
                              Nov 21 '18 at 15:32


















                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2f53414758%2fxml-in-android-studio-wrapcontent-in-relativelayout%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

                              Wiesbaden

                              Marschland

                              Dieringhausen