[배재대] 모바일 프로그래밍 1학기 중간고사 시험문제 풀이소스
- 최초 등록일
- 2023.04.07
- 최종 저작일
- 2018.04
- 9페이지/ 한컴오피스
- 가격 1,000원
소개글
"[배재대] 모바일 프로그래밍 중간고사 시험문제 프로그램 소스"에 대한 내용입니다.
목차
1. TEST1-JAVA코드
2. TEST2-XML 코드
3. TEST2-JAVA코드
4. TEST3-JAVA코드
5. TEST3-XML코드
본문내용
package com.example.test1;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.*;
public class MainActivity extends Activity {
TextView text1,text2;
EditText edit1;
RadioGroup rGroup1;
RadioButton radioArray[] = new RadioButton[3];
Button btn1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
text1 = (TextView) findViewById(R.id.textView1);
text2 = (TextView) findViewById(R.id.textView2);
edit1 = (EditText) findViewById(R.id.editText1);
rGroup1 = (RadioGroup) findViewById(R.id.radioGroup1);
radioArray[0] = (RadioButton) findViewById(R.id.radio0);
radioArray[1] = (RadioButton) findViewById(R.id.radio1);
radioArray[2] = (RadioButton) findViewById(R.id.radio2);
btn1 = (Button) findViewById(R.id.button1);
참고 자료
없음