Constraint Layout Issue












0














This is the code that I keep getting an error when I try to put it into Constraint Layout. I have tried numerous different methods to allow the constraint layout to appear successfully on the profile page. However, I still have been unsuccessful with getting the name to display without being jumbled together.



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:background="@color/graylight"
android:orientation="vertical">

<RelativeLayout

android:layout_width="match_parent"
android:layout_height="260dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="400dp"
android:background="@drawable/gradientbackground"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="wrap_content"
android:layout_height="425dp"
android:scaleType="centerInside"
android:src="@drawable/jussim" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="Justina Simone"
android:textColor="#fff"
android:textSize="21sp"
android:textStyle="bold" />

<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

</LinearLayout>
</RelativeLayout>

<ImageView
android:id="@+id/IVaddfriend"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_person_add_black_24dp" />


<ImageView
android:id="@+id/IVimage1"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_message_black_24dp"
tools:ignore="InvalidId" />
<ImageView
android:id="@+id/IVimage2"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_grade_black_24dp"/>
</LinearLayout>









share|improve this question




















  • 1




    Show us some code please
    – Hocine B
    Nov 13 '18 at 0:54










  • @HocineB Please see the revised post.
    – Cassandra Campbell
    Nov 13 '18 at 2:03






  • 1




    Show the output you're getting now.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 3:54










  • @HEWhoDoesn'tKnow It's not giving me output. My code just becomes red after adding the constraint layout code.
    – Cassandra Campbell
    Nov 13 '18 at 5:22






  • 2




    @CassandraCampbell you're saying that you have an error in constraint layout, but in here your're using linear.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 6:32
















0














This is the code that I keep getting an error when I try to put it into Constraint Layout. I have tried numerous different methods to allow the constraint layout to appear successfully on the profile page. However, I still have been unsuccessful with getting the name to display without being jumbled together.



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:background="@color/graylight"
android:orientation="vertical">

<RelativeLayout

android:layout_width="match_parent"
android:layout_height="260dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="400dp"
android:background="@drawable/gradientbackground"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="wrap_content"
android:layout_height="425dp"
android:scaleType="centerInside"
android:src="@drawable/jussim" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="Justina Simone"
android:textColor="#fff"
android:textSize="21sp"
android:textStyle="bold" />

<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

</LinearLayout>
</RelativeLayout>

<ImageView
android:id="@+id/IVaddfriend"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_person_add_black_24dp" />


<ImageView
android:id="@+id/IVimage1"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_message_black_24dp"
tools:ignore="InvalidId" />
<ImageView
android:id="@+id/IVimage2"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_grade_black_24dp"/>
</LinearLayout>









share|improve this question




















  • 1




    Show us some code please
    – Hocine B
    Nov 13 '18 at 0:54










  • @HocineB Please see the revised post.
    – Cassandra Campbell
    Nov 13 '18 at 2:03






  • 1




    Show the output you're getting now.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 3:54










  • @HEWhoDoesn'tKnow It's not giving me output. My code just becomes red after adding the constraint layout code.
    – Cassandra Campbell
    Nov 13 '18 at 5:22






  • 2




    @CassandraCampbell you're saying that you have an error in constraint layout, but in here your're using linear.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 6:32














0












0








0







This is the code that I keep getting an error when I try to put it into Constraint Layout. I have tried numerous different methods to allow the constraint layout to appear successfully on the profile page. However, I still have been unsuccessful with getting the name to display without being jumbled together.



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:background="@color/graylight"
android:orientation="vertical">

<RelativeLayout

android:layout_width="match_parent"
android:layout_height="260dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="400dp"
android:background="@drawable/gradientbackground"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="wrap_content"
android:layout_height="425dp"
android:scaleType="centerInside"
android:src="@drawable/jussim" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="Justina Simone"
android:textColor="#fff"
android:textSize="21sp"
android:textStyle="bold" />

<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

</LinearLayout>
</RelativeLayout>

<ImageView
android:id="@+id/IVaddfriend"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_person_add_black_24dp" />


<ImageView
android:id="@+id/IVimage1"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_message_black_24dp"
tools:ignore="InvalidId" />
<ImageView
android:id="@+id/IVimage2"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_grade_black_24dp"/>
</LinearLayout>









share|improve this question















This is the code that I keep getting an error when I try to put it into Constraint Layout. I have tried numerous different methods to allow the constraint layout to appear successfully on the profile page. However, I still have been unsuccessful with getting the name to display without being jumbled together.



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:background="@color/graylight"
android:orientation="vertical">

<RelativeLayout

android:layout_width="match_parent"
android:layout_height="260dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="400dp"
android:background="@drawable/gradientbackground"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="wrap_content"
android:layout_height="425dp"
android:scaleType="centerInside"
android:src="@drawable/jussim" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="Justina Simone"
android:textColor="#fff"
android:textSize="21sp"
android:textStyle="bold" />

<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

</LinearLayout>
</RelativeLayout>

<ImageView
android:id="@+id/IVaddfriend"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_person_add_black_24dp" />


<ImageView
android:id="@+id/IVimage1"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_message_black_24dp"
tools:ignore="InvalidId" />
<ImageView
android:id="@+id/IVimage2"
android:layout_width="425dp"
android:layout_height="85dp"
android:src="@drawable/ic_grade_black_24dp"/>
</LinearLayout>






android android-studio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 6:55









HEWhoDoesn'tKnow

29013




29013










asked Nov 13 '18 at 0:49









Cassandra CampbellCassandra Campbell

84




84








  • 1




    Show us some code please
    – Hocine B
    Nov 13 '18 at 0:54










  • @HocineB Please see the revised post.
    – Cassandra Campbell
    Nov 13 '18 at 2:03






  • 1




    Show the output you're getting now.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 3:54










  • @HEWhoDoesn'tKnow It's not giving me output. My code just becomes red after adding the constraint layout code.
    – Cassandra Campbell
    Nov 13 '18 at 5:22






  • 2




    @CassandraCampbell you're saying that you have an error in constraint layout, but in here your're using linear.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 6:32














  • 1




    Show us some code please
    – Hocine B
    Nov 13 '18 at 0:54










  • @HocineB Please see the revised post.
    – Cassandra Campbell
    Nov 13 '18 at 2:03






  • 1




    Show the output you're getting now.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 3:54










  • @HEWhoDoesn'tKnow It's not giving me output. My code just becomes red after adding the constraint layout code.
    – Cassandra Campbell
    Nov 13 '18 at 5:22






  • 2




    @CassandraCampbell you're saying that you have an error in constraint layout, but in here your're using linear.
    – HEWhoDoesn'tKnow
    Nov 13 '18 at 6:32








1




1




Show us some code please
– Hocine B
Nov 13 '18 at 0:54




Show us some code please
– Hocine B
Nov 13 '18 at 0:54












@HocineB Please see the revised post.
– Cassandra Campbell
Nov 13 '18 at 2:03




@HocineB Please see the revised post.
– Cassandra Campbell
Nov 13 '18 at 2:03




1




1




Show the output you're getting now.
– HEWhoDoesn'tKnow
Nov 13 '18 at 3:54




Show the output you're getting now.
– HEWhoDoesn'tKnow
Nov 13 '18 at 3:54












@HEWhoDoesn'tKnow It's not giving me output. My code just becomes red after adding the constraint layout code.
– Cassandra Campbell
Nov 13 '18 at 5:22




@HEWhoDoesn'tKnow It's not giving me output. My code just becomes red after adding the constraint layout code.
– Cassandra Campbell
Nov 13 '18 at 5:22




2




2




@CassandraCampbell you're saying that you have an error in constraint layout, but in here your're using linear.
– HEWhoDoesn'tKnow
Nov 13 '18 at 6:32




@CassandraCampbell you're saying that you have an error in constraint layout, but in here your're using linear.
– HEWhoDoesn'tKnow
Nov 13 '18 at 6:32












0






active

oldest

votes











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%2f53272196%2fconstraint-layout-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f53272196%2fconstraint-layout-issue%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







這個網誌中的熱門文章

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Xamarin.form Move up view when keyboard appear

JBPM : POST request for execute process go wrong