I have "main_activity.xml" that is associated with the MainActivity.java class, but I want to associate my "login_activity.xml" with the "Login.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 is how you do it.
Source: https://habr.com/ru/post/945398/More articles:Java: everything in the class is static - is that reasonable? - javaexport delphi stringgrid to excel - delphiCMake with Qt3d for Qt5? - c ++Detection of a real object using a camera. The ability to search for real objects using the camera - javaPrototypes or locks for consistent execution and performance? - performancegoogle maps api v3 no smooth drag and drop - google-maps-api-3https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/945400/how-to-turn-queries-to-perform-efficiently-in-rails&usg=ALkJrhgmgksJGEc7BaR1RuWz6xMY44KM_AWhy are the properties of the native data type not shown on their respective prototypes? - javascriptWhy am I allowed to have two indexes with the same name? - sqlHow to match horizontal ellipse (...) in php - phpAll Articles