分类存档: Android开发

android widget 组件 详解

android.view.View(部分)
android.widget.TextView(部分)
Button CompoundButton
CheckBox
RadioButton
ToggleButton
DigitalClock
EditText(部分)
MultiAutoC[……]

Read more

按下返回键提示

public boolean onKeyDown(int KeyCode,KeyEvent event){

if(KeyCode == KeyEvent.KEYCODE_BACK){

new AlertDialog.Builder(this)

.setIcon(R.drawable[……]

Read more

TextView自动滚动

Xml布局文件

<TextView

android:singleLine=”true”

android:ellipsize=”marquee”

android:marqueeRepeatLimit=”marquee_forever”

android:focusab[……]

Read more