zoukankan      html  css  js  c++  java
  • 便签四

    接口源代码://
    '''// Source code recreated from a .class file by IntelliJ IDEA
    // (powered by Fernflower decompiler)
    //

    package com.pwp.borderText;

    import android.content.Context;
    import android.graphics.Canvas;
    import android.graphics.Paint;
    import android.graphics.RectF;
    import android.graphics.Paint.Style;
    import android.util.AttributeSet;
    import android.widget.EditText;

    public class BorderEditText extends EditText {
    public BorderEditText(Context context, AttributeSet attrs) {
    super(context, attrs);
    }

    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint paint = new Paint();
        paint.setStrokeWidth(1.0F);
        paint.setStyle(Style.STROKE);
        paint.setColor(-7829368);
        paint.setAntiAlias(true);
        RectF rectF = new RectF(2.0F, 0.0F, (float)(this.getWidth() - 2), (float)(this.getHeight() - 2));
        canvas.drawRoundRect(rectF, 8.0F, 8.0F, paint);
    }
    

    }'''

    '''
    /
    // Source code recreated from a .class file by IntelliJ IDEA
    // (powered by Fernflower decompiler)
    //

    package com.pwp.borderText;

    import android.content.Context;
    import android.graphics.Canvas;
    import android.graphics.Paint;
    import android.util.AttributeSet;
    import android.widget.TextView;

    public class BorderText extends TextView {
    public BorderText(Context context, AttributeSet attrs) {
    super(context, attrs);
    }

    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint paint = new Paint();
        paint.setColor(-16777216);
        canvas.drawLine(0.0F, (float)(this.getHeight() - 1), (float)(this.getWidth() - 1), (float)(this.getHeight() - 1), paint);
    }
    

    }
    '''
    '''
    //
    // Source code recreated from a .class file by IntelliJ IDEA
    // (powered by Fernflower decompiler)
    //

    package com.pwp.borderText;

    import android.content.Context;
    import android.graphics.Canvas;
    import android.graphics.Paint;
    import android.graphics.RectF;
    import android.graphics.Paint.Style;
    import android.util.AttributeSet;
    import android.widget.TextView;

    public class BorderTextView extends TextView {
    public BorderTextView(Context context, AttributeSet attrs) {
    super(context, attrs);
    }

    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint paint = new Paint();
        paint.setColor(-7829368);
        paint.setStrokeWidth(1.0F);
        paint.setStyle(Style.STROKE);
        paint.setAntiAlias(true);
        RectF rectF = new RectF(2.0F, 0.0F, (float)(this.getWidth() - 2), (float)(this.getHeight() - 2));
        canvas.drawRoundRect(rectF, 8.0F, 8.0F, paint);
    }
    

    }

    '''

  • 相关阅读:
    【SpringCloud】consul注册中心注册的服务为内网(局域网)IP
    找零钱-动态规划
    学习分治法+解决大数乘法问题
    如何在分析崩溃的边缘分析问题
    Hadoop组件开发技术.期中考.参考试卷
    数据库原理及应用.实验5.数据库的完整性和安全性
    数据库原理及应用.实验4.视图和索引的创建和使用
    数据库原理及应用.实验3.数据查询与更新
    数据库原理及应用.实验2.表的创建和管理
    数据库原理及应用.实验1.MySQL安装、卸载及使用
  • 原文地址:https://www.cnblogs.com/chenbaiwan/p/7045542.html
Copyright © 2011-2022 走看看