
如圖:那兩個按鈕顯示在點擊item上是怎么nong弄的??
uj5u.com熱心網友回復:
在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的效果圖

不知道對你有沒有用。
uj5u.com熱心網友回復:
百度搜QT 右鍵選單,一堆代碼uj5u.com熱心網友回復:
你這個問題就是右鍵選單就能解決轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/114225.html
標籤:Android
上一篇:微信公眾號自定義選單跳轉H5頁面出現如需瀏覽,請長按網址復制后使用瀏覽器訪問
下一篇:QQ音樂和網易云音樂下載問題
