android.view.InflateException: Binary XML file line (which doesn't exist)









up vote
0
down vote

favorite












I have this layout:



<?xml version="1.0" encoding="utf-8"?>
<merge>
<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:id="@+id/has_selected_account"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/account_display_name"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
app:layout_constraintBottom_toTopOf="@+id/account_name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
<TextView
android:id="@+id/account_name"
android:layout_width="wrap_content"
android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
android:includeFontPadding="false"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/account_display_name"
tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
</android.support.constraint.ConstraintLayout>
</merge>


And I get a very general inflation error:



 Caused by: android.view.InflateException: Binary XML file line #39: Error inflating class com.me.AccountParticle
at android.view.LayoutInflater.createView(Layo


(Cut like this)



I have tried to simplify my XML. How can I tackle the inflation error?



Plus my layout XML doesn't have like #39
so where does this refer to?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I have this layout:



    <?xml version="1.0" encoding="utf-8"?>
    <merge>
    <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:id="@+id/has_selected_account"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <TextView
    android:id="@+id/account_display_name"
    android:layout_width="wrap_content"
    android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
    android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
    app:layout_constraintBottom_toTopOf="@+id/account_name"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintVertical_chainStyle="packed"
    tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
    <TextView
    android:id="@+id/account_name"
    android:layout_width="wrap_content"
    android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
    android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
    android:includeFontPadding="false"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/account_display_name"
    tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
    </android.support.constraint.ConstraintLayout>
    </merge>


    And I get a very general inflation error:



     Caused by: android.view.InflateException: Binary XML file line #39: Error inflating class com.me.AccountParticle
    at android.view.LayoutInflater.createView(Layo


    (Cut like this)



    I have tried to simplify my XML. How can I tackle the inflation error?



    Plus my layout XML doesn't have like #39
    so where does this refer to?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have this layout:



      <?xml version="1.0" encoding="utf-8"?>
      <merge>
      <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:id="@+id/has_selected_account"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <TextView
      android:id="@+id/account_display_name"
      android:layout_width="wrap_content"
      android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
      android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
      app:layout_constraintBottom_toTopOf="@+id/account_name"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_chainStyle="packed"
      tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
      <TextView
      android:id="@+id/account_name"
      android:layout_width="wrap_content"
      android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
      android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
      android:includeFontPadding="false"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/account_display_name"
      tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
      </android.support.constraint.ConstraintLayout>
      </merge>


      And I get a very general inflation error:



       Caused by: android.view.InflateException: Binary XML file line #39: Error inflating class com.me.AccountParticle
      at android.view.LayoutInflater.createView(Layo


      (Cut like this)



      I have tried to simplify my XML. How can I tackle the inflation error?



      Plus my layout XML doesn't have like #39
      so where does this refer to?










      share|improve this question















      I have this layout:



      <?xml version="1.0" encoding="utf-8"?>
      <merge>
      <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:id="@+id/has_selected_account"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <TextView
      android:id="@+id/account_display_name"
      android:layout_width="wrap_content"
      android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
      android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
      app:layout_constraintBottom_toTopOf="@+id/account_name"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_chainStyle="packed"
      tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
      <TextView
      android:id="@+id/account_name"
      android:layout_width="wrap_content"
      android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
      android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
      android:includeFontPadding="false"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/account_display_name"
      tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
      </android.support.constraint.ConstraintLayout>
      </merge>


      And I get a very general inflation error:



       Caused by: android.view.InflateException: Binary XML file line #39: Error inflating class com.me.AccountParticle
      at android.view.LayoutInflater.createView(Layo


      (Cut like this)



      I have tried to simplify my XML. How can I tackle the inflation error?



      Plus my layout XML doesn't have like #39
      so where does this refer to?







      android layout android-constraintlayout layout-inflater






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 11:25









      Zoe

      10.6k73575




      10.6k73575










      asked Nov 11 at 11:12









      Elad Benda

      12.6k58179332




      12.6k58179332






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          You're missing android:layout_height for both TextView, that's how you get view inflation error. When the view is being inflated, it needs to resolve the merge tag possibly by another class or method, which seems to have a different way of parsing errors. Otherwise you would have seen a clearer error with android:layout_height being missing.






          share|improve this answer






















          • how could i have debugged it?
            – Elad Benda
            Nov 11 at 11:24










          • It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
            – Aaron
            Nov 11 at 11:32










          • so i could just paste the xml instead of using the merge.
            – Elad Benda
            Nov 11 at 11:40










          • Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
            – Aaron
            Nov 11 at 11:43


















          up vote
          0
          down vote













          Please use this.



          <?xml version="1.0" encoding="utf-8"?>
          <merge>
          <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:id="@+id/has_selected_account"
          android:layout_width="match_parent"
          android:layout_height="wrap_content">

          <TextView
          android:id="@+id/account_display_name"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
          android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
          app:layout_constraintBottom_toTopOf="@+id/account_name"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintVertical_chainStyle="packed"
          tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
          <TextView
          android:id="@+id/account_name"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
          android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
          android:includeFontPadding="false"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/account_display_name"
          tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
          </android.support.constraint.ConstraintLayout>
          </merge>





          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',
            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%2f53248143%2fandroid-view-inflateexception-binary-xml-file-line-which-doesnt-exist%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








            up vote
            2
            down vote



            accepted










            You're missing android:layout_height for both TextView, that's how you get view inflation error. When the view is being inflated, it needs to resolve the merge tag possibly by another class or method, which seems to have a different way of parsing errors. Otherwise you would have seen a clearer error with android:layout_height being missing.






            share|improve this answer






















            • how could i have debugged it?
              – Elad Benda
              Nov 11 at 11:24










            • It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
              – Aaron
              Nov 11 at 11:32










            • so i could just paste the xml instead of using the merge.
              – Elad Benda
              Nov 11 at 11:40










            • Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
              – Aaron
              Nov 11 at 11:43















            up vote
            2
            down vote



            accepted










            You're missing android:layout_height for both TextView, that's how you get view inflation error. When the view is being inflated, it needs to resolve the merge tag possibly by another class or method, which seems to have a different way of parsing errors. Otherwise you would have seen a clearer error with android:layout_height being missing.






            share|improve this answer






















            • how could i have debugged it?
              – Elad Benda
              Nov 11 at 11:24










            • It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
              – Aaron
              Nov 11 at 11:32










            • so i could just paste the xml instead of using the merge.
              – Elad Benda
              Nov 11 at 11:40










            • Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
              – Aaron
              Nov 11 at 11:43













            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted






            You're missing android:layout_height for both TextView, that's how you get view inflation error. When the view is being inflated, it needs to resolve the merge tag possibly by another class or method, which seems to have a different way of parsing errors. Otherwise you would have seen a clearer error with android:layout_height being missing.






            share|improve this answer














            You're missing android:layout_height for both TextView, that's how you get view inflation error. When the view is being inflated, it needs to resolve the merge tag possibly by another class or method, which seems to have a different way of parsing errors. Otherwise you would have seen a clearer error with android:layout_height being missing.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 11 at 11:38

























            answered Nov 11 at 11:18









            Aaron

            1,6151212




            1,6151212











            • how could i have debugged it?
              – Elad Benda
              Nov 11 at 11:24










            • It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
              – Aaron
              Nov 11 at 11:32










            • so i could just paste the xml instead of using the merge.
              – Elad Benda
              Nov 11 at 11:40










            • Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
              – Aaron
              Nov 11 at 11:43

















            • how could i have debugged it?
              – Elad Benda
              Nov 11 at 11:24










            • It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
              – Aaron
              Nov 11 at 11:32










            • so i could just paste the xml instead of using the merge.
              – Elad Benda
              Nov 11 at 11:40










            • Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
              – Aaron
              Nov 11 at 11:43
















            how could i have debugged it?
            – Elad Benda
            Nov 11 at 11:24




            how could i have debugged it?
            – Elad Benda
            Nov 11 at 11:24












            It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
            – Aaron
            Nov 11 at 11:32




            It could have shown you a clearer error, but because of merge tag it can become unclear when it is delegated to whichever the class is parsing it.
            – Aaron
            Nov 11 at 11:32












            so i could just paste the xml instead of using the merge.
            – Elad Benda
            Nov 11 at 11:40




            so i could just paste the xml instead of using the merge.
            – Elad Benda
            Nov 11 at 11:40












            Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
            – Aaron
            Nov 11 at 11:43





            Using merge is one way to optimize your views, and so it's fine using merge. I think the IDE or Android Studio should have given you the warnings when missing one of the important attributes. Maybe there's a plugin for it, but whenever there's a view inflation error, chances are it's within the XML layouts.
            – Aaron
            Nov 11 at 11:43













            up vote
            0
            down vote













            Please use this.



            <?xml version="1.0" encoding="utf-8"?>
            <merge>
            <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:id="@+id/has_selected_account"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
            android:id="@+id/account_display_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
            android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
            app:layout_constraintBottom_toTopOf="@+id/account_name"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintVertical_chainStyle="packed"
            tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
            <TextView
            android:id="@+id/account_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
            android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
            android:includeFontPadding="false"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/account_display_name"
            tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
            </android.support.constraint.ConstraintLayout>
            </merge>





            share|improve this answer
























              up vote
              0
              down vote













              Please use this.



              <?xml version="1.0" encoding="utf-8"?>
              <merge>
              <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:id="@+id/has_selected_account"
              android:layout_width="match_parent"
              android:layout_height="wrap_content">

              <TextView
              android:id="@+id/account_display_name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
              android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
              app:layout_constraintBottom_toTopOf="@+id/account_name"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintTop_toTopOf="parent"
              app:layout_constraintVertical_chainStyle="packed"
              tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
              <TextView
              android:id="@+id/account_name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
              android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
              android:includeFontPadding="false"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/account_display_name"
              tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
              </android.support.constraint.ConstraintLayout>
              </merge>





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Please use this.



                <?xml version="1.0" encoding="utf-8"?>
                <merge>
                <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:id="@+id/has_selected_account"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <TextView
                android:id="@+id/account_display_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
                android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
                app:layout_constraintBottom_toTopOf="@+id/account_name"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintVertical_chainStyle="packed"
                tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
                <TextView
                android:id="@+id/account_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
                android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
                android:includeFontPadding="false"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/account_display_name"
                tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
                </android.support.constraint.ConstraintLayout>
                </merge>





                share|improve this answer












                Please use this.



                <?xml version="1.0" encoding="utf-8"?>
                <merge>
                <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:id="@+id/has_selected_account"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <TextView
                android:id="@+id/account_display_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
                android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
                app:layout_constraintBottom_toTopOf="@+id/account_name"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintVertical_chainStyle="packed"
                tools:text="DisplayNameIsLongSoItShouldBeTruncatedAtSomePoint"/>
                <TextView
                android:id="@+id/account_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/account_menu_name_and_display_vertical_padding"
                android:layout_marginBottom="@dimen/account_menu_name_and_display_vertical_padding"
                android:includeFontPadding="false"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/account_display_name"
                tools:text="emailisverylongaswellwewantittogettruncated@gmail.longdomain.com"/>
                </android.support.constraint.ConstraintLayout>
                </merge>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 11 at 11:23









                Vishal Sharma

                7702212




                7702212



























                    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%2f53248143%2fandroid-view-inflateexception-binary-xml-file-line-which-doesnt-exist%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







                    這個網誌中的熱門文章

                    How to read a connectionString WITH PROVIDER in .NET Core?

                    Node.js Script on GitHub Pages or Amazon S3

                    Museum of Modern and Contemporary Art of Trento and Rovereto