zoukankan      html  css  js  c++  java
  • android 圆角效果

    activity_main.xml代码

      <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main"
      android:layout_width="match_parent" android:layout_height="match_parent"
      tools:context="com.example.fastjaon.MainActivity"
      android:orientation="vertical">
      <Button
       android:id="@+id/btnloding"
      android:layout_width="200dp"
      android:layout_height="wrap_content"
      android:background="@drawable/shepa"
      android:text="加载数据"/>
      </LinearLayout>

    drawable文件夹下新建一个shepa.xml文件 shapepa.xml文件如下
      <shape xmlns:android="http://schemas.android.com/apk/res/android">
      <solid android:color="#ffffff" />
      <corners
      android:topLeftRadius="10dp"
      android:topRightRadius="10dp"
      android:bottomRightRadius="10dp"
      android:bottomLeftRadius="10dp"/>
      <stroke android:width="3dp" android:color="#aeaeae"/>
      </shape>


  • 相关阅读:
    maven私服
    docker
    mysql ip
    jenkins安装
    centeros7防火墙操作
    centeros7 gitlap安装
    nexus安装及使用(maven私服掌握)
    idea永久激活使用
    redis密码验证
    Nginx服务优化配置
  • 原文地址:https://www.cnblogs.com/fengzikuange/p/6096623.html
Copyright © 2011-2022 走看看