作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我创建了一个 android 应用程序,它有九个 ImageButton 和三个 FrameLayout。
在每个ImageButton 上都有onclick 事件,它将Fragment 添加到FrameLayout。当我单击 ImageButton1 时,Fragment1 被添加到 FrameLayout。
我想显示 Fragment 的箭头指示器,如上图所示。现在我已经在 Fragment 上放了一张背景图片来指示 ImageButton 上的箭头。这暂时解决了我的问题,但作为
> Mobile screen size change or fragment height increase this background image size also change, Which make the arrow narrow.
> Is there any other way to display arrow indicator for each Fragment?
提前致谢..!!!
最佳答案
您应该尝试使用 QuickAction View,它会根据您的需要提供类似的功能。
下面是一些库,可以指导您如何实现它。
1) QuickActionView
2) QuickActionView 3D
3) Quick action pattern in Android and simple implemention.
希望对您有所帮助。
关于android - 如何在android中的 fragment 上设置箭头指示器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24736725/
我是一名优秀的程序员,十分优秀!