HELLO WORLD CODING ON ANDORID
DISPLAY HELLO WORLD CODES CREATE LINEAR LAYOUT Create or Update the template layout, Relative Layout to the following Code. ===>>src/main/res/layout/ activity_home.xml <LinearLayout android:orientation="vertical" android:layout_height="match_parent" android:layout_width="match_parent" > <TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:textColor=" @android:color/black" android:textSize="50sp" android:text="@string/hello_world"/> </LinearLayout> CREATE ACTIVITY Create or Update the template java Class. ==>> src/main/java/package-name/ HomeActivity.java Change ActionBarActivity to Activity for extended class for java class HomeActivity public class HomeActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCr...
Comments
Post a Comment