일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 숫자 형식
- html
- 웹 브라우저 전쟁
- dbms
- DoitSQL
- SQL
- 키-값 데이터베이스
- 생성자
- 페이지분석
- 배열 예제
- 데이터베이스
- 크롤링
- DoIt
- SQL입문
- 예제
- 우아한테크
- 자바 오류
- 자바
- 예외
- 함수
- 함수 선언
- 숫자형식오류
- Doit입문SQL
- 크롤링 오류
- R1C3
- HTML역사
- 웹브라우저 수용도
- 배열 3요소
- DoitSQL입문
- 자바 예외
Archives
- Today
- Total
반응형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 숫자 형식
- html
- 웹 브라우저 전쟁
- dbms
- DoitSQL
- SQL
- 키-값 데이터베이스
- 생성자
- 페이지분석
- 배열 예제
- 데이터베이스
- 크롤링
- DoIt
- SQL입문
- 예제
- 우아한테크
- 자바 오류
- 자바
- 예외
- 함수
- 함수 선언
- 숫자형식오류
- Doit입문SQL
- 크롤링 오류
- R1C3
- HTML역사
- 웹브라우저 수용도
- 배열 3요소
- DoitSQL입문
- 자바 예외
Archives
- Today
- Total
프로그래밍
[안드로이드 자바] xml 요소 배치하기(텍스트뷰, 버튼, 스위치, 레이팅바) 본문
728x90
반응형
디자인
프로젝트 설명
작동하는 프로젝트가 아닌 뷰 단순 배열
xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Switch
android:id="@+id/switch3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="305dp"
android:text="Switch" />
<Button
android:id="@+id/button17"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="317dp"
android:text="Button" />
<RatingBar
android:id="@+id/ratingBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginEnd="84dp"
android:layout_marginRight="84dp"
android:layout_marginBottom="204dp" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="265dp"
android:text="모바일프로그래밍(1) 과제" />
</>
MainActivity.java
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
// 모바일프로그래밍 2주차 과제
728x90
반응형
'안드로이드 > 안드로이드 스튜디오' 카테고리의 다른 글
[안드로이드 자바] 예약 어플 만들기(Chronometer, TimePicker, DatePicker, CalendarView) (0) | 2022.05.17 |
---|---|
[안드로이드 자바] 타임피커, 캘린더뷰를 이용한 예약 시스템 만들기(Chronometer, Timpicker, CalendarView) (0) | 2022.05.17 |
[안드로이드 자바] 그리드 계산기(GridLayout) (0) | 2021.12.09 |
[안드로이드 자바] 라디오버튼으로 이미지 선택 출력(visible, invisible) (0) | 2021.12.09 |
[안드로이드 자바] 기본 계산기 (0) | 2021.12.09 |
Comments