woong's
Android Vertical SeekBar 사용하기 본문
Android Vertical SeekBar 사용하기
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | package com.sample; import android.app.Activity; import android.os.Bundle; import android.widget.SeekBar; import android.widget.SeekBar.OnSeekBarChangeListener; import android.widget.TextView; import android.widget.VerticalSeekBar; public class SampleActivity extends Activity { VerticalSeekBar verticalSeekBar=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); verticalSeekBar=(VerticalSeekBar)findViewById(R.id.vertical_Seekbar); } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:orientation="horizontal" > <android.widget.VerticalSeekBar android:id="@+id/vertical_Seekbar" android:layout_width="wrap_content" android:layout_height="150dip" /> </RelativeLayout> |
'Develop > Android' 카테고리의 다른 글
Android xml (0) | 2016.02.14 |
---|---|
Android View 최상위로 올리기 (0) | 2016.02.14 |
Android 하드웨어 볼륨 키 사용하기 (0) | 2016.02.14 |
Android Custom SeekBar 사용하기 (0) | 2016.02.14 |
Android EditText Shake Animation 사용하기 (0) | 2016.02.14 |
Comments