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> 
查看全文
  • 相关阅读:
    [LintCode] Trapping Rain Water II
    [LintCode] Coins in a Line III
    [CTCI] 子串判断
    [CTCI] 最大子方阵
    [LintCode] Number of Islands II
    [LeetCode] Different Ways to Add Parentheses
    adroid 目录
    android AsyncTask实例
    android viewpager 图片翻页例子
    Android横竖屏切换重载问题与小结
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10888218.html
  • Copyright © 2011-2022 走看看