ContentView annotation
suggest changeThe @ContentView annotation can be used to further alleviate development of activities and replace the setContentView statement :
@ContentView(R.layout.myactivity_layout)
public class MyActivity extends RoboActivity {
@InjectView(R.id.text1) TextView textView;
@Override
protected void onCreate( Bundle savedState ) {
textView.setText("Hello!");
}
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents