QT listView/listWidget,点击列表,怎么在其上面显示两个按钮,类似下面。 如图:那两个按钮显示在点击item上是怎么nong弄的?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在onItemClick里面自定义一个DialogAlertDialog.Builder builder = new AlertDialog.Builder(context); LayoutInflater lay = LayoutInflater.from(context); // 将布局加载到View中 View view1 = lay.inflate(R.layout.pinglun_select, null); TextView mtxtpinglunhuifu = (TextView) view1 .findViewById(R.id.pinglun_huifu); TextView mtxtpinglundel = (TextView) view1 .findViewById(R.id.pinglun_delete); builder.setView(view1);view中TextView: <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableTop="@drawable/phone_sys" android:text="系统检测" android:gravity="center" android:background="@drawable/top_bg" />textview的效果图不知道对你有没有用。 listview 滚动 有关于启动了多个service如何关闭 这个设备驱动文件系统注册在样机什么地方 用apktool反编译后的apk文件如何重新打包成apk android动画 关于SD Card资源编译的问题 多表联查后如何取值 如何android 设计 android解析程序包时出现问题200分 求助贴 安卓 TextView setText 无效 高德地图如何把显示我们当前位置的点从屏幕正中间移到指定位置?
AlertDialog.Builder builder = new AlertDialog.Builder(context);
LayoutInflater lay = LayoutInflater.from(context);
// 将布局加载到View中
View view1 = lay.inflate(R.layout.pinglun_select, null);
TextView mtxtpinglunhuifu = (TextView) view1
.findViewById(R.id.pinglun_huifu);
TextView mtxtpinglundel = (TextView) view1
.findViewById(R.id.pinglun_delete);
builder.setView(view1);view中TextView:
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/phone_sys"
android:text="系统检测"
android:gravity="center"
android:background="@drawable/top_bg"
/>
textview的效果图不知道对你有没有用。