androidannotations 输出HelloWorld

image

@NoTitle
@EActivity(R.layout.activity_main)
@OptionsMenu(R.menu.activity_main) public class MainActivity extends Activity {

    @ViewById
    TextView string123;
    
    @ViewById
    TextView string2;
    
    @AfterViews void init()
    {
        string123.setText("HelloWorld");
        string2.setText("HelloWorld2");
    }
}

你可能感兴趣的:(android,helloworld,Annotations)