如何让imagebutton位置随点击listview的行的时候改变位置?
<LinearLayout....省略
<AbsoluteLayout
android:layout_width="match_parent"
android:layout_weight="1.0"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:id="@+id/lvSongAllList" >
</ListView>
<!-- 长按按钮显示正常点歌与置顶操作 -->
<ImageButton android:id="@+id/up2top1"
android:layout_width="30dip"
android:layout_height="30dip"
android:background="@drawable/selected_up2top"
/>
</AbsoluteLayout>
<AbsoluteLayout
android:layout_width="match_parent"
android:layout_weight="1.0"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:id="@+id/lvSongAllList" >
</ListView>
<!-- 长按按钮显示正常点歌与置顶操作 -->
<ImageButton android:id="@+id/up2top1"
android:layout_width="30dip"
android:layout_height="30dip"
android:background="@drawable/selected_up2top"
/>
</AbsoluteLayout>
...全文
相关推荐
Android 中ListView的Item点击事件失效的快速解决方法
主要介绍了Android 中ListView的Item点击事件失效的快速解决方法的相关资料,需要的朋友可以参考下
【Android】ListView与Button的共存问题解决
解决android程序开发中ListView和Button共存的问题
ListView的基本使用带Button
ListView的基本使用带Button
ListView触发FragmentDialog
listview中如何解决item中有button,imageButton冲突的解决和item触发fragmenDialog,如果没有积分可以@我,发送!
Android-ListView中嵌套(ListView)控件兼容问题
Android-ListView中嵌套(ListView)控件时出现的兼容性问题



