make function for .class and .dex
This commit is contained in:
parent
8feefbefe5
commit
1d6ff63406
6 changed files with 91 additions and 24 deletions
|
|
@ -1,27 +0,0 @@
|
|||
package com.example.shadowing;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
//import android.widget.RelativeLayout;
|
||||
//import android.view.ViewGroup;
|
||||
//import android.view.View;
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
LinearLayout ll = new LinearLayout(this);
|
||||
ll.setOrientation(LinearLayout.VERTICAL);
|
||||
ll.generateViewId();
|
||||
setContentView(ll);
|
||||
TextView tw = new TextView(this);
|
||||
tw.setText("Hello Void!");
|
||||
tw.generateViewId();
|
||||
ll.addView(tw);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue