2016-05-07から1日間の記事一覧

android Clickイベント

◯クリックイベント OnClickListener() ((Button)findViewById(R.id.button1)).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ((TextView)findViewById(R.id.textView)).setText("Button[1] push"); }});

android xml match_parentとwrap_content

match_parent ◯親要素となる要素のサイズと同じ android:layout_width="match_parent" /> android:layout_height="match_parent" /> wrap_content ◯ビューの中身どおりのサイズで表示するための値 android:layout_width="wrap_content" /> android:layout_he…