♠ Posted by Unknown in Android at 3:46 AM
source code 11<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:weightSum="1">
<EditText android:layout_width="fill_parent" android:id="@+id/editText1" android:layout_height="wrap_content" android:text="Blilii" android:gravity="right">
<requestFocus></requestFocus>
</EditText>
<EditText android:layout_width="fill_parent" android:id="@+id/editText2" android:layout_height="wrap_content" android:layout_weight="0.33" android:text="Coba Grafity" android:gravity="center_vertical|center"></EditText>
<EditText android:layout_width="fill_parent" android:id="@+id/editText3" android:layout_height="wrap_content" android:inputType="textPersonName" android:text="Balala"></EditText>
</LinearLayout>
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
public class Tes2sanActivity extends Activity {
/** Called when the activity is first created. */
Button btn;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
hasilnya:
0 komentar:
Post a Comment