Activity horario (tiene los textview, adjunto fragmento del codigo).
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#000000"
android:id="@+id/fila1">
<TextView
android:layout_width="44dp"
android:layout_height="match_parent"
android:layout_column="0"
android:layout_margin="1dp"
android:background="#FFFFFF"
android:gravity="center"
android:text="@string/bloque_12"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="10sp"
/>
<TextView
android:layout_width="7dp"
android:layout_height="match_parent"
android:layout_column="1"
android:layout_margin="1dp"
android:background="#FFFFFF"
android:gravity="center"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/t11"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_column="2"
android:layout_margin="1dp"
android:background="#FFFFFF"
android:gravity="center"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/t12"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_column="2"
android:layout_margin="1dp"
android:background="#FFFFFF"
android:gravity="center"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/t13"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_column="2"
android:layout_margin="1dp"
android:background="#FFFFFF"
android:gravity="center"
android:text=""
android:id="@+id/t14"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_column="2"
android:layout_margin="1dp"
android:background="#FFFFFF"
android:gravity="center"
android:text=""
android:id="@+id/t15"
android:textAppearance="?android:attr/textAppearanceLarge" />
</TableRow>
Horario activity:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_horario);
Button boton = (Button) findViewById(R.id.boton1);
boton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent i = new Intent(HORARIOActivity.this, Editar.class);
startActivity(i);
}
});
}
}