0

So I can pass a custom View to the setContentView() and it fills the users screen by default(right?), but if I define a TextField within my custom views constructor it won't display. Even if I change my custom View to a custom ViewGroup and use its addView() method.

So what am I missing here?

Also, whats the equivalent of System.out.println() in android to get some feedback?

asked Jul 31, 2011 at 23:34
1
  • Its tough to help without seeing your code. Can you add some to your question? Commented Aug 1, 2011 at 2:03

1 Answer 1

1

for print statements, used Log.d("Name of the filter", "Text to be printed here"). Also, why aren't you defining your view in an XML file and adding the textview inside there? it is usually not a good idea to use addview because it makes laying things out more difficult (not as many options for location and size, etc.)

answered Jul 31, 2011 at 23:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.