<SeekBar
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/seek_bar"
/>private SeekBar seekBar;
seekBar=(SeekBar)findViewById(R.id.seek_bar);
seekBar.setMax(100);======================
就这么几句话,注释掉seekBar.setMax(100);
就能正常显示,否则就报错!
SDK是2.1的,这是为毛啊!为毛报错啊!
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/seek_bar"
/>private SeekBar seekBar;
seekBar=(SeekBar)findViewById(R.id.seek_bar);
seekBar.setMax(100);======================
就这么几句话,注释掉seekBar.setMax(100);
就能正常显示,否则就报错!
SDK是2.1的,这是为毛啊!为毛报错啊!
android:max="100"
不知道为什么在java中会出错,奇怪.
最好还是贴上错误的log信息。