CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2024-09-27
by Isidro Rodriguez

Original Post

Original - Posted on 2018-05-22
by Hammad Tariq



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I thinks this is what you are looking for.
``` <androidx.constraintlayout.widget.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="wrap_content">
<TextView android:id="@+id/view1" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/a_guideline" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" tools:text="This is view 1" />
<TextView android:id="@+id/view2" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="@+id/a_guideline" app:layout_constraintTop_toTopOf="parent" tools:text="This isa long text in view 2" />
<androidx.constraintlayout.widget.Guideline android:id="@+id/a_guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" app:layout_constraintGuide_percent="0.5" /> </androidx.constraintlayout.widget.ConstraintLayout>
```
This is the result:

[![enter image description here][1]][1]

[1]: https://i.sstatic.net/HlqF3MjO.png
<?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="wrap_content">

<TextView android:id="@+id/txt_service_request_id" android:layout_width="0dp" android:layout_height="wrap_content" android:background="@drawable/bg_rectangle_blue" android:gravity="center" android:padding="8dp" android:text="@string/service_request_id" android:textColor="@android:color/white" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/txt_service_request_status" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />
<TextView android:id="@+id/txt_service_request_status" android:layout_width="0dp" android:layout_height="0dp" android:background="@drawable/bg_rectangle_blue" android:gravity="center" android:padding="8dp" android:text="@string/service_request_status" android:textColor="@android:color/white" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="@+id/txt_service_request_id" app:layout_constraintEnd_toStartOf="@+id/txt_service_request_desc" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/txt_service_request_id" app:layout_constraintTop_toTopOf="parent" />

<TextView android:id="@+id/txt_service_request_desc" android:layout_width="0dp" android:layout_height="0dp" android:background="@drawable/bg_rectangle_blue" android:gravity="center" android:padding="8dp" android:text="@string/service_request_desc" android:textColor="@android:color/white" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="@+id/txt_service_request_id" app:layout_constraintEnd_toStartOf="@+id/txt_service_request_cat" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/txt_service_request_status" app:layout_constraintTop_toTopOf="parent" />
<TextView android:id="@+id/txt_service_request_cat" android:layout_width="0dp" android:layout_height="0dp" android:background="@drawable/bg_rectangle_blue" android:gravity="center" android:padding="8dp" android:text="@string/service_request_cat" android:textColor="@android:color/white" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="@+id/txt_service_request_id" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/txt_service_request_desc" app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
[![Assigning equal width and Height][1]][1]

[1]: https://i.sstatic.net/CNfrv.png

        
Present in both answers; Present only in the new answer; Present only in the old answer;