一、设置反复背景
在drawable目录下建一个mybackground.xml文件
在文件里写入:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/mybg_img"
android:tileMode="repeat"/>
tileMode 属性就是用于定义背景的显示模式:
disabled 默认值。表示不使用平铺
clamp 复制边缘色彩
repeat X、Y 轴进行反复图片显示,也就是我们说要说的平铺
mirror 在水平和垂直方向上使用交替镜像的方式反复图片的绘制
二、使用layer-list组合图片
相同的在drawable目录下建一个mylayerlist.xml文件
在文件里写入:
<?
xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap android:src="@drawable/sms_top_bg"
android:gravity="center"/>
</item>
<item>
<bitmap android:src="@drawable/sms_list_selected_arrow"
android:gravity="right"/
SpringBoot,SpringCloud集成Swagger文档生成器
SpringCloud集成分布式事务管理框架lcn
Java中SnowFlake 雪花算法生成全局唯一id中的问题,时间不连续全为偶数解决
根据redis自增生成全局唯一订单id
5分钟搭建虚拟网络
lvs+keepalived搭建双机主从架构
SpringBoot集成XXL-JOB
java8 日期类库基本使用
org.apache.http.TruncatedChunkException: Truncated chunk