分屏造型 [英] Split Screen styling

查看:226
本文介绍了分屏造型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发具有类似的屏幕布局在这里显示的GMail截图应用程序

I am developing an app that has a similar screen layout to the GMail screenshot shown here

http://newbestgadget.com/wp-content/上传/ 2012/09 / GoTab-GTi8.jpg

我的问题是如何实现在左侧列表视图的列的样式(?)。
我认为这是通过使用背景图片来实现的?这是实现这一目标的最佳途径?

My question is how to achieve the styling on the rows of the left hand side listview(?). I assume this is achieved by the use of background images? Is this the best way to achieve this?

将背景图片是什么样子的所选择的项目吗?

What would the background image look like for the item that is selected?

感谢

推荐答案

是的,这是一个背景图像的把戏。右手侧有一个白色的九补丁用少许下拉阴影。您在选择的列表项的极右看到的小三角形部分也是一个九宫格图像匹配的右侧区域。这是一个虚拟视图(右对齐,在项目布局的其余部分的顶部)只对选定的项目可见的背景。当您滚动列表中的三角形这样也移动它。

Yes that's a Background image trick. The right hand side has a white nine-patch with a little drop-shadow. The small triangular portion you see on in extreme right of the selected list item is also a nine-patch image matching that of the right hand side area. This is background of a dummy view (right aligned, on top of rest of item layout) that is visible only for selected item. This way when you scroll the list the triangle also moves with it.

详细的解答:<一href=\"http://stackoverflow.com/a/14032449/1531054\">http://stackoverflow.com/a/14032449/1531054

这篇关于分屏造型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆