Click here to Skip to main content
16,017,312 members

Comments by CrimeKumar66 (Top 7 by date)

CrimeKumar66 13-Jan-16 5:10am View    
ya sure.this is my code where i have added imageview and textview inside LinearLayout.

mTeamL = new LinearLayout(ctx);
ImageView mTeamImage = new ImageView(ctx);
TextView Tv1 = new TextView(ctx);
TableRow.LayoutParams dimParams = new TableRow.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
dimParams.setMargins(16, 16, 16, 16);
// taRow.setLayoutParams(dimParams);
mTeamL.setOrientation(LinearLayout.HORIZONTAL);
LinearLayout.LayoutParams viewDimen = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
Tv1.setLayoutParams(viewDimen);
LinearLayout.LayoutParams viewDimen1 = new LinearLayout.LayoutParams(64,48);
mTeamImage.setLayoutParams(viewDimen1);
Picasso.with(ctx).load(mStandingLts.get(i).getTeamLogo()).into(mTeamImage);
Tv1.setTextColor(Color.WHITE);
Tv1.setGravity(Gravity.CENTER);
Tv1.setText(mStandingLts.get(i).getTeam());
mTeamL.addView(mTeamImage);
mTeamL.addView(Tv1);
taRow.addView(mTeamL);

Now want to do this for different data . .jus by clearing the old data inside this lineaarLayout..

For textview i have done...(see my question) ..for this i dono how to do that..Pls help me
CrimeKumar66 9-Jan-16 6:06am View    
Could you pls help me out on this ?
http://www.codeproject.com/Questions/1070329/How-to-add-linear-layout-dynamically-inside-linear?arn=0
CrimeKumar66 9-Jan-16 0:48am View    
ya i have added..i got result for my first set of code. .. .my doubt is how to add this to dynamicallyy like i have added the text view like this . .

((TextView) (tr).getChildAt(5))
.setText(finalMStandingLts1.get(i).getPoints());
CrimeKumar66 8-Jan-16 8:48am View    
Thanks i have bought the output . . .
CrimeKumar66 5-Jan-16 2:50am View    
Thanks for ur suggestion..i will try and letme knw the result