首页 > 其他 > 详细

支持滚动展示图片的ImageView

时间:2015-01-12 17:39:03      阅读:437      评论:0      收藏:0      [点我收藏+]
如果你的图片比较大,但是可显示的区域却是固定的,可是你又不想压缩图片,怎么办?ImageMarqueeView是个不错的选择
标签: Android SDK

[1].[文件] ImageMarqueeView.java ~ 26KB    下载(57) 跳至 [1] [2]

[2].[文件] attrs.xml ~ 825B    下载(20) 跳至 [1] [2]

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<resources>
 
    <declare-styleable name="ImageMarqueeView">
        <attr name="src" format="reference" />
    </declare-styleable>
    <declare-styleable name="BorderLinearLayout">
        <attr name="border_left_size" format="dimension" />
        <attr name="border_top_size" format="dimension" />
        <attr name="border_right_size" format="dimension" />
        <attr name="border_bottom_size" format="dimension" />
        <attr name="border_enable" default="true" format="boolean" />
        <attr name="border_color" format="color" />
    </declare-styleable>
    <declare-styleable name="DottedLineView">
        <attr name="line_color" format="color" />
        <attr name="line_stroke_width" format="dimension" />
    </declare-styleable>
 
</resources>

支持滚动展示图片的ImageView

原文:http://blog.csdn.net/u014311022/article/details/42644543

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!