这个布局怎么写 popupwindowandroid 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout> 你的思路没问题啊,popupwindow里面自己布局,做两个控件分别给不同的背景图片 是的呀像这样的popupwindow是怎么获取当前listview的位置的。红色框是一个按钮,点击此处才弹出popupwindow!因为不是点击listview。就不知道怎么获取当前位置 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去谢谢。哈哈。想起来了 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去谢谢。哈哈。想起来了我的分 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final 你在外面建一个View对象在里面接收一下convertview <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final你在外面建一个View对象在里面接收一下convertview <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final还有你不用在ontouch里面处理popupwindow.dismiss() <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="100dip" android:layout_height="50dip" android:orientation="horizontal" > <Button android:id="@+id/btn" android:text="查看" android:layout_weight="1.0" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="自己写"/> <Button android:id="@+id/btn1" android:text="删除" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:background="自己写" /> </LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final还有你不用在ontouch里面处理popupwindow.dismiss()这个方式,哪里不好! 比如。。private View convertview;那在getView.里怎么接收。。getView还是会首先使用自己的view.. 比如。。private View convertview;那在getView.里怎么接收。。getView还是会首先使用自己的view..在ontouch方法里面 比如。。private View convertview;那在getView.里怎么接收。。getView还是会首先使用自己的view..在ontouch方法里面为什么不建议在ontouch里面处理popupwindow.dismiss() 后面那个问题还没解决哪个啊? 把demo发给我,我给你调调? 请教个关于dlna镜像传输的问题 请问android里几个应用共享数据的最佳方式是? 怎么在android上运行自己的地图 非google 请教一个关于android手机uid的问题 android的一个奇怪问题,照相机拍两次就无响应 2.3.5_soundpool纠结好久的问题 求教 Android 安装软件比较大小的问题 关于TranslateAnimation动画的一个小问题 低版本兼容使用Fragment GridView隐藏再显示导致gridview消失 在asyncTask解析XML就会报错 怎样动态更改App的名字?????
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>
是的呀
像这样的popupwindow是怎么获取当前listview的位置的。红色框是一个按钮,点击此处才弹出popupwindow!
因为不是点击listview。就不知道怎么获取当前位置
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
谢谢。哈哈。想起来了
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
谢谢。哈哈。想起来了我的分
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final
你在外面建一个View对象在里面接收一下convertview
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final
还有你不用在ontouch里面处理popupwindow.dismiss()
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dip"
android:layout_height="50dip"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn"
android:text="查看"
android:layout_weight="1.0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="自己写"/>
<Button
android:id="@+id/btn1"
android:text="删除"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="自己写"
/>
</LinearLayout>谢谢谢谢,还请教一个问题,上图是怎么获取当前listview的位置的。。这个view获取要放在adapter中,然后实现popupwindow显示在这个view的下面区别只在于显示popupwindow的代码要写在adapter内部或者是将内部获取的view传参出去
谢谢。哈哈。想起来了我的分会给分的。你那么好!还遇到了一个问题。。就是我在getview里initPopupWindow,但是convertView出错了。。上面那个提示去掉final,下面那个提示添加final
还有你不用在ontouch里面处理popupwindow.dismiss()
这个方式,哪里不好!
比如。。
private View convertview;那在getView.里怎么接收。。getView还是会首先使用自己的view..
比如。。
private View convertview;那在getView.里怎么接收。。getView还是会首先使用自己的view..在ontouch方法里面
比如。。
private View convertview;那在getView.里怎么接收。。getView还是会首先使用自己的view..在ontouch方法里面
为什么不建议在ontouch里面处理popupwindow.dismiss()
哪个啊? 把demo发给我,我给你调调?