Linking android XML to a Java class? -


i have "main_activity.xml" linked mainactivity.java class, wish link "login_activity.xml" "login.java" class.

  • how link each android xml separate java class ?

public class your_class_name extends activity {      @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.your_xml_filename);         ...     } } 

this how it.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -