Tv.setTextColor(Color.WHITE); Tv.setGravity(Gravity.CENTER); Tv.setText(mStandingLts.get(i).getPosition()); taRow.addView(Tv);
((TextView) (tr).getChildAt(1)).setText(finalMStandingLts.get(i).getTeam());
*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);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)