ImageButton for Android に関する多くのリファレンスを検索しました。そしてまったく同じことをしましたが、うまくいかなかったようです。奇妙な部分は、「ボタン」のみを使用したときに機能しました。重要な部分を見逃していませんか?
誰でも私の問題を手伝ってもらえますか? 以下にコードをリストしました。
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    // Button connectBtn = (Button)this.findViewById(R.id.connectBtn); //<<<=== THIS WORKS
    ImageButton connectBtn = (ImageButton) this.findViewById(R.id.connectBtn); // <<<=== THIS NOT
    ImageButton getPy = (ImageButton) findViewById(R.id.getFilePy); // <<<=== THIS NOT
    ImageButton runPy = (ImageButton) findViewById(R.id.runPy); // <<<=== THIS NOT
    connectBtn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            mySetConfig();
        }
    });
    getPy.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            showFileChooser();
        }
    });
    runPy.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            pythonButton();
        }
    });
}
XML:
<ImageButton
    android:id="@+id/connectBtn"
    android:layout_width="match_parent"
    android:layout_height="90dp"
    android:background="@drawable/button_1" />
<TextView
    android:layout_width="match_parent"
    android:layout_height="5dp" />
<ImageButton
    android:id="@+id/getPy"
    android:layout_width="match_parent"
    android:layout_height="90dp"
    android:background="@drawable/button_2" />
<TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
<ImageButton
    android:id="@+id/runPy"
    android:layout_width="match_parent"
    android:layout_height="90dp"
    android:background="@drawable/button_3" />
 <FrameLayout
    android:id="@+id/FrameLayout1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >
</FrameLayout>
<EditText
    android:id="@+id/app_status"
    android:layout_width="match_parent"
    android:layout_height="250dp"
    android:ems="10"
    android:singleLine="false" >
    <requestFocus />
</EditText>
</LinearLayout>
どうぞよろしくお願いいたします。