RecyclerView Design Changing fetch from array
The Design of the screen is changing if I fetch the data from an array in a RecyclerView
but when the data is defined static (in XML) the design is correct, what should I do to keep the designed as it is in the preview?
I am using Fragments and recyclerView to inflate the data from an array
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/rentInvoice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_marginBottom="20dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/paymentsDate"
android:textStyle="bold"
android:textColor="@color/colorFontHeading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/date"
android:textSize="18sp" />
<TextView
android:id="@+id/paymentsReceiptNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reciept_number" />
<TextView
android:id="@+id/paymentsData"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PaymentData" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="end">
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:src="@drawable/ic_navigate_next_black_24dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Above is the XML code for Layout
Below is the XML code where RecyclerView is Located
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Fragments.PaymentsFragment"
android:orientation="vertical">
<SearchView
android:queryHint="@string/search"
android:layout_margin="15dp"
android:id="@+id/searchViewPayments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/search_view_rounded"
android:layoutDirection="rtl"/>
<LinearLayout
android:id="@+id/recyclerViewLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/paymentsRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
android android-layout android-studio android-recyclerview recyclerview-layout
|
show 3 more comments
The Design of the screen is changing if I fetch the data from an array in a RecyclerView
but when the data is defined static (in XML) the design is correct, what should I do to keep the designed as it is in the preview?
I am using Fragments and recyclerView to inflate the data from an array
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/rentInvoice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_marginBottom="20dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/paymentsDate"
android:textStyle="bold"
android:textColor="@color/colorFontHeading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/date"
android:textSize="18sp" />
<TextView
android:id="@+id/paymentsReceiptNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reciept_number" />
<TextView
android:id="@+id/paymentsData"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PaymentData" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="end">
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:src="@drawable/ic_navigate_next_black_24dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Above is the XML code for Layout
Below is the XML code where RecyclerView is Located
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Fragments.PaymentsFragment"
android:orientation="vertical">
<SearchView
android:queryHint="@string/search"
android:layout_margin="15dp"
android:id="@+id/searchViewPayments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/search_view_rounded"
android:layoutDirection="rtl"/>
<LinearLayout
android:id="@+id/recyclerViewLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/paymentsRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
android android-layout android-studio android-recyclerview recyclerview-layout
1
Share your XML code
– Vir Rajpurohit
Sep 11 '18 at 4:26
i think you set your main/parent layout to wrapContent that why design issue was occur ,share you XML for better solution.
– Arbaz.in
Sep 11 '18 at 4:44
I have Added the XML code @VirRajpurohit
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:50
Share your xml where yourRecyclerView
is located.
– Tepits
Sep 11 '18 at 5:51
@Tepits Both RecyclerView and Layout XML code is added
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:58
|
show 3 more comments
The Design of the screen is changing if I fetch the data from an array in a RecyclerView
but when the data is defined static (in XML) the design is correct, what should I do to keep the designed as it is in the preview?
I am using Fragments and recyclerView to inflate the data from an array
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/rentInvoice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_marginBottom="20dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/paymentsDate"
android:textStyle="bold"
android:textColor="@color/colorFontHeading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/date"
android:textSize="18sp" />
<TextView
android:id="@+id/paymentsReceiptNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reciept_number" />
<TextView
android:id="@+id/paymentsData"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PaymentData" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="end">
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:src="@drawable/ic_navigate_next_black_24dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Above is the XML code for Layout
Below is the XML code where RecyclerView is Located
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Fragments.PaymentsFragment"
android:orientation="vertical">
<SearchView
android:queryHint="@string/search"
android:layout_margin="15dp"
android:id="@+id/searchViewPayments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/search_view_rounded"
android:layoutDirection="rtl"/>
<LinearLayout
android:id="@+id/recyclerViewLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/paymentsRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
android android-layout android-studio android-recyclerview recyclerview-layout
The Design of the screen is changing if I fetch the data from an array in a RecyclerView
but when the data is defined static (in XML) the design is correct, what should I do to keep the designed as it is in the preview?
I am using Fragments and recyclerView to inflate the data from an array
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/rentInvoice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_marginBottom="20dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/paymentsDate"
android:textStyle="bold"
android:textColor="@color/colorFontHeading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/date"
android:textSize="18sp" />
<TextView
android:id="@+id/paymentsReceiptNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/reciept_number" />
<TextView
android:id="@+id/paymentsData"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PaymentData" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="end">
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:src="@drawable/ic_navigate_next_black_24dp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Above is the XML code for Layout
Below is the XML code where RecyclerView is Located
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Fragments.PaymentsFragment"
android:orientation="vertical">
<SearchView
android:queryHint="@string/search"
android:layout_margin="15dp"
android:id="@+id/searchViewPayments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/search_view_rounded"
android:layoutDirection="rtl"/>
<LinearLayout
android:id="@+id/recyclerViewLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/paymentsRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
android android-layout android-studio android-recyclerview recyclerview-layout
android android-layout android-studio android-recyclerview recyclerview-layout
edited Dec 6 '18 at 11:40
Rizwan Ahmed Shivalli
asked Sep 11 '18 at 4:23
Rizwan Ahmed ShivalliRizwan Ahmed Shivalli
9311
9311
1
Share your XML code
– Vir Rajpurohit
Sep 11 '18 at 4:26
i think you set your main/parent layout to wrapContent that why design issue was occur ,share you XML for better solution.
– Arbaz.in
Sep 11 '18 at 4:44
I have Added the XML code @VirRajpurohit
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:50
Share your xml where yourRecyclerView
is located.
– Tepits
Sep 11 '18 at 5:51
@Tepits Both RecyclerView and Layout XML code is added
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:58
|
show 3 more comments
1
Share your XML code
– Vir Rajpurohit
Sep 11 '18 at 4:26
i think you set your main/parent layout to wrapContent that why design issue was occur ,share you XML for better solution.
– Arbaz.in
Sep 11 '18 at 4:44
I have Added the XML code @VirRajpurohit
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:50
Share your xml where yourRecyclerView
is located.
– Tepits
Sep 11 '18 at 5:51
@Tepits Both RecyclerView and Layout XML code is added
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:58
1
1
Share your XML code
– Vir Rajpurohit
Sep 11 '18 at 4:26
Share your XML code
– Vir Rajpurohit
Sep 11 '18 at 4:26
i think you set your main/parent layout to wrapContent that why design issue was occur ,share you XML for better solution.
– Arbaz.in
Sep 11 '18 at 4:44
i think you set your main/parent layout to wrapContent that why design issue was occur ,share you XML for better solution.
– Arbaz.in
Sep 11 '18 at 4:44
I have Added the XML code @VirRajpurohit
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:50
I have Added the XML code @VirRajpurohit
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:50
Share your xml where your
RecyclerView
is located.– Tepits
Sep 11 '18 at 5:51
Share your xml where your
RecyclerView
is located.– Tepits
Sep 11 '18 at 5:51
@Tepits Both RecyclerView and Layout XML code is added
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:58
@Tepits Both RecyclerView and Layout XML code is added
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:58
|
show 3 more comments
1 Answer
1
active
oldest
votes
You can use RelativeLayout
as parent if you want to achieve a most left and right layout, using alignParentEnd
or alignParentStart
. This should be your layout inside your LinearLayout
tag with id rentInvoice
:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000" />
...
</LinearLayout>
</RelativeLayout>
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52268617%2frecyclerview-design-changing-fetch-from-array%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use RelativeLayout
as parent if you want to achieve a most left and right layout, using alignParentEnd
or alignParentStart
. This should be your layout inside your LinearLayout
tag with id rentInvoice
:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000" />
...
</LinearLayout>
</RelativeLayout>
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
add a comment |
You can use RelativeLayout
as parent if you want to achieve a most left and right layout, using alignParentEnd
or alignParentStart
. This should be your layout inside your LinearLayout
tag with id rentInvoice
:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000" />
...
</LinearLayout>
</RelativeLayout>
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
add a comment |
You can use RelativeLayout
as parent if you want to achieve a most left and right layout, using alignParentEnd
or alignParentStart
. This should be your layout inside your LinearLayout
tag with id rentInvoice
:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000" />
...
</LinearLayout>
</RelativeLayout>
You can use RelativeLayout
as parent if you want to achieve a most left and right layout, using alignParentEnd
or alignParentStart
. This should be your layout inside your LinearLayout
tag with id rentInvoice
:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
...
</LinearLayout>
<LinearLayout
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/paymentsAmount"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/rs_000000" />
...
</LinearLayout>
</RelativeLayout>
edited Sep 11 '18 at 6:25
answered Sep 11 '18 at 6:05
TepitsTepits
359515
359515
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
add a comment |
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
Worked like a charm, Thank you for your help
– Rizwan Ahmed Shivalli
Sep 11 '18 at 6:50
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52268617%2frecyclerview-design-changing-fetch-from-array%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Share your XML code
– Vir Rajpurohit
Sep 11 '18 at 4:26
i think you set your main/parent layout to wrapContent that why design issue was occur ,share you XML for better solution.
– Arbaz.in
Sep 11 '18 at 4:44
I have Added the XML code @VirRajpurohit
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:50
Share your xml where your
RecyclerView
is located.– Tepits
Sep 11 '18 at 5:51
@Tepits Both RecyclerView and Layout XML code is added
– Rizwan Ahmed Shivalli
Sep 11 '18 at 5:58