资源管理问题汇总

1.文字居中布局android:layout_gravity="center_verticl"

2.Handler动态更新UI

final Handler hander=new Hander();

new Thead(new Runnable(){

public void run(){

tab1=(ListView)findViewById(R.id.tab1);

final MyViewBinder myview=new MyViewBinder(TaskManagerActivity.this,R.layout.info,util.ProcessRunningInfo()); //获得动态加载集合

hander.post(new Runnale(){

public void run(){

tab1.setAdapter(myview);

}

});

}

});

3.android2.2自定义应用无法铺满屏幕,在AndroidManifest.xml加入如下代码

      <supports-screens
          android:largeScreens="true" 
          android:normalScreens="true" 
          android:smallScreens="true" 
          android:anyDensity="true" />

 

你可能感兴趣的:(UI,android)