+ 1

How to send data from a recyclerview to another recyclerview ????

Hi guys i need some help in java im trying to make a recyclerview that have some items and i wanted whenever someone clicked on one item it took him to the other recyclerview but with the data i set it for ?? PLS HELP

15th Apr 2018, 6:00 PM
DrawI X
DrawI X - avatar
7 Respostas
+ 4
Hmm, I would have thought that you would want to launch another activity when a recyclerview item is clicked. This new activity would also contain a recycler view. Is my assumption correct or is it something else?
15th Apr 2018, 8:15 PM
David Akhihiero
David Akhihiero - avatar
+ 3
Sorry Icemail I don't really know C++, but the underlying algorithm is pretty simple though. I used a math approach in the code. (X + Y) ^ n = nCr(X^(n-r) * Y^r) + ... where r is from 0 to n and nCr means n combination r
13th May 2018, 2:45 PM
David Akhihiero
David Akhihiero - avatar
+ 3
Icemail on second thought, check here. Users submitted answers in all kinds of languages https://www.sololearn.com/Discuss/975880/?ref=app
13th May 2018, 2:47 PM
David Akhihiero
David Akhihiero - avatar
+ 3
Icemail if you need assistance with anything unrelated to this post please use the Q & A to ask your own unique question. This will increase your chances of getting help 😃
2nd Nov 2018, 8:00 AM
David Akhihiero
David Akhihiero - avatar
0
#Yerucham yes bro but the second recyclerview i want it to display content of the item clicked in the first recyclerview. do i have to make for every item a recyclerview or just one will do the thing ?? thanks in advance bro
15th Apr 2018, 10:25 PM
DrawI X
DrawI X - avatar
0
Yerucham, I was checking through your codes and stumble upon a code to obtain the terms of binomial expansion......can you please do that once again using c++? I'll be forever thankful if you do so!!
13th May 2018, 12:35 PM
Icemail
Icemail - avatar
0
I need help with the code below. I keep on seeing error message like "invalid data types....float[int]" //LU Decomposition for #include<iostream> using namespace std; int main() { int n,i,k,j,p,sum; float a[10][10],l[10][10]={0},u[10],b[10],z[10],x[10]; cout<<"Enter the order of matrix"; cin>>n; cout<<"Enter all coefficients of equ"; for(i=1;i<=n;i++) { cout<<"\nRow "<<i<<" "; for(j=1;j<=n;j++) { cin>>a[i][j]; } } cout<<"Enter elements of b matrix"; for(i=1;i<=n;i++){ cin>>b[i]; } //LU decomposition for(k=1;k<=n;k++) { u[k][k]=1; for(i=k;i<=n;i++) { sum=0; for(p=1;p<=(k-1);p++){ sum+=l[i][p]*u[p][k];} l[i][k]=a[i][k]-sum; } for(j=(k+1);j<=n;j++) { sum=0; for(p=1;p<=(k-1);p++){ sum+=l[k][p]*u[p][j]
2nd Nov 2018, 7:44 AM
Icemail
Icemail - avatar