<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp" > <Button android:id="@+id/my_button" android:layout_width="96dp" android:layout_height="wrap_content" android:text="@string/done" android:onClick="changeText" /> </RelativeLayout>
Button mybtn = (Button) findViewById(R.id.my_button); mybtn.setText("OK");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)