各位大拿,本人学习android的新手,按照参考书上写了点代码,其布局的xml文件如下。
第一个textview显示出来了,但下面的progressbar和seekbar都显示不出来。请各位大侠给指点一下,多谢!<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical" > <TextView
android:id="@+id/textview02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="This is a text view!" /> <ProgressBar
android:id="@+id/progressbar01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/> <ProgressBar
android:id="@+id/progressbar02"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:max="100" /> <SeekBar
android:id="@+id/seekbar01"
android:layout_width="240px"
android:layout_height="wrap_content"
android:max="500" /> </LinearLayout>
第一个textview显示出来了,但下面的progressbar和seekbar都显示不出来。请各位大侠给指点一下,多谢!<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical" > <TextView
android:id="@+id/textview02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="This is a text view!" /> <ProgressBar
android:id="@+id/progressbar01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/> <ProgressBar
android:id="@+id/progressbar02"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:max="100" /> <SeekBar
android:id="@+id/seekbar01"
android:layout_width="240px"
android:layout_height="wrap_content"
android:max="500" /> </LinearLayout>
解决方案 »
- 【急】Android画图,旋转问题请教!!!!
- 有没有对NDK开发比较熟悉的啊?
- 关于SlidingDrawer的问题
- 问下一大家这个效果该如何实现?
- Android 2.2中的openCore ,支持的文件格式、音频格式和视频格式分别有哪些?
- 安卓调用百度影音播放电影
- 新手,一个关于simpleAdapter的问题,这段代码编译没问题,但在运行的时候就直接停止了,求大侠帮忙
- 两台手机安装同一APP,如何在两个APP之间进行数据接收和发送?
- Android源码编译时如何在TARGET_OUT_DATA下创建目录
- android 心跳
- 求 com.friendlyarm.AndroidSDK.HardwareControler 包
- 编译Android下的ko模块文件
import android.os.Bundle;
import android.util.Log;public class IndicatorActivity extends Activity
{
private static final String DEBUG_TAG = "IndicatorApp"; @Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.indicators);
Log.i(DEBUG_TAG, "loginfo: App start");
}
}