android - setText() not working -


settext(), settextsize() , addview not working. shown cannot resolve symbol type.

intent intent = getintent(); string message = intent.getstringextra(myactivity.extra_message); textview textview = new textview(this); textview.settextsize(40); textview.settext(message);  relativelayout layout = (relativelayout) findviewbyid(r.id.content); layout.addview(textview); 

you can't use methods such add , find view id before layout inflated. verifĂ˝ setcontentview called before.

if does, @ value of message log.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -