支持滚动展示图片的ImageView

来源:互联网 发布:淘宝第三方介入电话 编辑:程序博客网 时间:2024/05/12 09:40
如果你的图片比较大,但是可显示的区域却是固定的,可是你又不想压缩图片,怎么办?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
<?xmlversion="1.0"encoding="utf-8"?>
<resources>
 
    <declare-styleablename="ImageMarqueeView">
        <attrname="src"format="reference"/>
    </declare-styleable>
    <declare-styleablename="BorderLinearLayout">
        <attrname="border_left_size"format="dimension"/>
        <attrname="border_top_size"format="dimension"/>
        <attrname="border_right_size"format="dimension"/>
        <attrname="border_bottom_size"format="dimension"/>
        <attrname="border_enable"default="true"format="boolean"/>
        <attrname="border_color"format="color"/>
    </declare-styleable>
    <declare-styleablename="DottedLineView">
        <attrname="line_color"format="color"/>
        <attrname="line_stroke_width"format="dimension"/>
    </declare-styleable>
 
</resources>

0 0
原创粉丝点击