1,如何使ListView具有选择效果,当点击时,会有选择效果,如不同的颜色。
2,如何在android的title(this.setTitle("TitleName");)左边放一图片。
谢谢
2,如何在android的title(this.setTitle("TitleName");)左边放一图片。
谢谢
解决方案 »
- android 程序突然停住报了个非常奇怪的问题!!!!!!!!!!
- (大牛来挑战下,mtk出的一款软件就可以的)何如将<xliff:g>写入xml文件中
- gson解析json到对象的问题!!
- 这个背景问题为什么这么多人回答还没解决呢?
- android 如何原样显示word文件里面的内容(表格,自选图形,图片,页眉,页脚)
- 求助,listview的imgebutton显示问题。。
- 如何实现开机自启动服务?
- 这种布局怎么弄
- 实在搞不定了,各位来看看
- app启动闪退android.content.res.Resources$NotFoundException: String resource ID #0x0
- 谁知道为什么事件不相应,谢谢。。。
- android怎么录制正在播放的视频
http://mdev.cc/dev/read.php?tid=105
2.public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title);
}然后title.xml<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:id="@+id/view01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="text" />
<Button android:id="@+id/button01"
android:layout_width="wrap_content"
android:layout_height="10px"
android:text="OK" />
</LinearLayout>
自定义title 需要继承系统title
setContentView(R.layout.custom_title);
getWindow().setFeatureIn(Window.FEATURE_CUSTOM_TITLE,R.layout.custom_title_1);回答下2