zoukankan      html  css  js  c++  java
  • Android中shape的使用方法总结

    <?xml version="1.0" encoding="utf-8"?>  
    <shape xmlns:android="http://schemas.android.com/apk/res/android">  
       <gradient android:startColor="#c0000000"  android:endColor="#c0000000"  
                    android:angle="90" /><!--背景颜色渐变 -->  
        <solid android:color="#00ffffff" /><!-- 背景的填充颜色 -->  
        <stroke android:width="3dp" color="#ff000000" /><!-- 描边,width是边得宽度,color是颜色 -->  
        <corners android:radius="10dp" /><!-- 边角圆弧的半径 -->  
        <padding   
           android:left="3dp"  
           android:top="3dp"   
           android:right="3dp"  
           android:bottom="3dp" /><!-- 四周留出来的空白 -->  
    </shape> 
查看全文
  • 相关阅读:
    POJMatrix(二维树状数组)
    HD1556Color the ball(树状数组)
    闲的没事,自挂东南枝
    高端、洋气效果
    “绝对”妹纸~position
    float元素一定要闭合
    dw cs6激活码一枚
    shell 预定义变量
    ubuntu 安装docker
    Microsonf visual c++ 14+ 离线内网安装
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10888218.html
  • Copyright © 2011-2022 走看看