Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

code to include layout from java in android

ViewStub stub = (ViewStub) findViewById(R.id.layout_stub);
stub.setLayoutResource(R.layout.whatever_layout_you_want);
View inflated = stub.inflate();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #code #include #layout #java #android
ADD COMMENT
Topic
Name
1+6 =