16,017,312 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
CrimeKumar66
18-Nov-15 4:50am
View
could you pls relpy on the above query???
CrimeKumar66
5-Nov-15 7:50am
View
TableRow taRow = new TableRow(getActivity());
taRow.setId(i);
taRow.setGravity(Gravity.CENTER);
LinearLayout linearLayout = new LinearLayout(getActivity());
linearLayout.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));
linearLayout.setOrientation(LinearLayout.VERTICAL);
TextView mBatsman = new TextView(getActivity());
mBatsman.setId(i);
mBatsman.setGravity(Gravity.LEFT);
mBatsman.setInputType(InputType.TYPE_TEXT_FLAG_MULTI_LINE);
AppFonts.VagRoundLight(mContext, mBatsman);
mBatsman.setTextAppearance(mContext, R.style.font_style_normal_yellow);
mBatsman.setText(ltSC.getPlayer());
linearLayout.addView(mBatsman);
TextView dis = new TextView(getActivity());
dis.setId(i);
dis.setGravity(Gravity.LEFT);
dis.setInputType(InputType.TYPE_TEXT_FLAG_MULTI_LINE);
dis.setTextAppearance(mContext, R.style.font_style_normal);
dis.setText(ltSC.getDismissal());
linearLayout.addView(dis);
taRow.addView(linearLayout);
above is my code i am trying to add two one below other textview dynamically . . .i used linear layout , but it doesnt display data inside the textview which have settext . . .but if i tried with one text view . .it works perfect . . .pls let me know how to solve this . .is ter anything i am missing ???
Show More