Android
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"android:layout_height="fill_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/nota1"
android:layout_width="match_parent"
android:layout_height="wrap_content"android:ems="10"
android:inputType="number"
android:text="@string/nota1" >
<requestFocus />
</EditText>
<EditTextandroid:id="@+id/nota2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="number"
android:text="@string/nota2" /><EditText
android:id="@+id/nota3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"android:inputType="number"
android:text="@string/nota3" />
<Button
android:id="@+id/btnp"
android:layout_width="match_parent"
android:layout_height="wrap_content"android:onClick="promedio"
android:text="@string/promedio" />
<EditText
android:id="@+id/nota4"
android:layout_width="match_parent"android:layout_height="wrap_content"
android:ems="10"
android:inputType="number|text"
android:text="@string/resultado" />
</LinearLayout>
<?xml version="1.0"encoding="utf-8"?>
<resources>
<string name="app_name">Promedio</string>
<string name="nota1">Nota1</string>
<string name="nota2">Nota2</string><string name="nota3">Nota3</string>
<string name="resultado">Resultado</string>
<string name="promedio">Promedio</string>
</resources>
package...
Regístrate para leer el documento completo.