1.初日くらい - actuallydef/testPyonpyon GitHub Wiki

###レイアウト res/menyu/manyu_mai.xml ※レイアウト消えて迷子になってめっちゃ探した・・・orz

###メインアクティビティ java/com.exapmle配下/MainActivity

###インポートしたパッケージ メインスレッドで自動追加されず、手動?で追加したパッケージ Button型、TextView型で必要

import android.widget.Button; import android.widget.TextView;

###リソースIDで引っ張ってくる Button hogehoge = (Button)findViewById(R.id.resourceID)

Text hogehoge = (Text)findViewById(R.id.resourceID)

###透明度を設定 hogehoge.setAlpha(float); 0で透明、1で不透明

alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque). 

###クリックイベント

setOnClickListener メソッド

final Button button = (Button) findViewById(R.id.button_id);
         button.setOnClickListener(new View.OnClickListener() {
             public void onClick(View v) {
                 // Perform action on click
        }
}