대학교
안드로이드 스튜디오: 버튼 size 조정 본문
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<size
android:width="200dp"
android:height="120dp"
/>
<stroke
android:width="1dp"
android:color="#0000ff"
/>
<solid android:color="#aaddff"/>
<padding android:bottom="1dp"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#7288DB"
android:centerColor="#3250B4"
android:endColor="#254095"
android:angle="90"
android:centerY="0.5"
/>
<corners
android:radius="2dp"
/>
</shape>
기본 위젯
View
TextView
Button, ChecKBox, RadioButton/RadioGroup
ImageView
EditText: 입력을 받아들임 type(password, number, ...). hint
... 항상 양방향, disable=true, 속성 : 프로그램으로 처리 가능(vs XML)
Button with image.
Drawble : 뷰에 그릴 수 있는 것, 이미지, xml(select-items, shape)
SampleDrawbleProject
'공대 > 안드로이드 스튜디오' 카테고리의 다른 글
Unit2. 03-1 SampleWidget (0) | 2022.04.19 |
---|---|
4/4 Java Class (0) | 2022.04.10 |
클래스 설명 관련 소스 파일 (0) | 2022.03.23 |
안드로이드 스튜디오 HAXM 오류 (0) | 2022.03.17 |
안드로이드 스튜디오: 뷰(view) (0) | 2022.03.17 |