• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Xml with Java source File

When We make Controls then I have to write some code in the main.xml File.
I want to ask that, is there nay idea that All the Code for the All Controls We can wite in the Java Source File, Not use of main File.
I am New in Android and I have worked with J2ME and BlackBerry.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones