主要有三种方法可以实现自定义属性。
方法一:不使用命名空间,不使用attrs.xml文件。通过attrs.getAttributeResourceValue方法拿到属性值
方法二: 使用命名空间, 不使用attrs.xml文件。通过attrs.getAttributeResourceValue方法拿到属性值
方法三: 使用命名空间,   使用attrs.xml文件。通过context.obtainStyledAttributes(attrs,R.styleable.ImageTextView).getString()方法拿到属性值
第一种方法使用最简单,但获取的属性值多为字符串不能获取各种类型的值,第三种方法是用步骤多些,但可以获取各种类型的属性值,并且可以提供代码检错功能

第一种方法,直接设置属性值,通过attrs.getAttributeResourceValue拿到这个属性值。

(1)在xml文件中设置属性值

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
tools:context=".MainActivity">
<com.example.lenovo.custom_textview.ImageTextView1
android:id="@+id/itv"
iamgeBoolean="true"
iamgeColor="#00ff00"
iamgeDimension="100dp"
iamgeEnum1="enum2"
iamgeFlag="flag3"
iamgeFloat="0.8"
iamgeFraction="200%p"
iamgeInteger="100"
iamgeString="自定义属性"
imageReference="@drawable/trash"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>

(2)在构造函数中拿到这个值

package com.example.lenovo.custom_textview;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView; /**
* Created by lenovo on 2016/2/18.
*/
public class ImageTextView1 extends TextView {
public ImageTextView1(Context context) {
super(context);
}
public ImageTextView1(Context context, AttributeSet attrs) {
super(context, attrs);
//可以获取所有属性值的字符串表示,int,flat,boolea,reference,string 类型能获取准确值
String iamgeDimension = attrs.getAttributeValue(null, "iamgeDimension");
int imageReference = attrs.getAttributeResourceValue(null, "imageReference", 0);
if (imageReference > 0) {
bitmap = BitmapFactory.decodeResource(getResources(), imageReference);
}
String iamgeColor = attrs.getAttributeValue(null, "iamgeColor");
String iamgeString = attrs.getAttributeValue(null, "iamgeString");
int iamgeInteger = attrs.getAttributeIntValue(null, "iamgeInteger", 0);
float iamgeFloat = attrs.getAttributeFloatValue(null, "iamgeFloat", 0);
boolean iamgeBoolean = attrs.getAttributeBooleanValue(null, "iamgeBoolean", false);
String iamgeFraction = attrs.getAttributeValue(null, "iamgeFraction");
String iamgeEnum1 = attrs.getAttributeValue(null, "iamgeEnum1");
String iamgeFlag = attrs.getAttributeValue(null, "iamgeFlag"); StringBuffer str = new StringBuffer();
str.append("iamgeDimension= " + iamgeDimension + "\n");
str.append("imageReference= " + imageReference + "\n");
str.append("iamgeColor= " + iamgeColor + "\n");
str.append("iamgeBoolean= " + iamgeBoolean + "\n");
str.append("iamgeString= " + iamgeString + "\n");
str.append("iamgeInteger= " + iamgeInteger + "\n");
str.append("iamgeFloat= " + iamgeFloat + "\n");
str.append("iamgeFraction= " + iamgeFraction + "\n");
str.append("iamgeEnum1= " + iamgeEnum1 + "\n");
str.append("iamgeFlag= " + iamgeFlag + "\n");
setText(str.toString()); } public ImageTextView1(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
} private Bitmap bitmap; @Override
public void onDraw(Canvas canvas) {
if (bitmap != null) {
Rect src = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); Rect target = new Rect();
int textHeight = (int) getTextSize();
target.left = 0;
target.top = (int) (getMeasuredHeight() - getTextSize()) / 2 + 1;
target.bottom = target.top + textHeight;
target.right = (int) (textHeight * (bitmap.getWidth() / (float) bitmap.getHeight()));
canvas.drawBitmap(bitmap, src, target, getPaint());
canvas.translate(target.right + 2, 0);
} super.onDraw(canvas);
} }

结果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAACICAIAAAAeWSysAAAgAElEQVR4nO1dV5fa6pac/7/WrPsw6874+h63O5OjEIicg8giCRBCgEDknARP81BjmWlH7G6nQ63z4OaAJNDWF2rXrv0fxwsueIf/+NkXcMEvhEs0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PBFM0Gh2NRvF4PBgMoutoMpm02Wyz2Qw+0LALikajkUgkFos9iYb9fo/XN5sNomEymeBSMUTRNG2xWCBue3x8REISiRWj0chx3Mv8wr8TvoWZpiiq3+9DIvwpZhodJiVJGg6HcPpB/8x+vw+X4Y+6ecACBt7SNzc3hULBZDJJktTr9QiCgPS5VCoVi8VyufzEjuPDaGAYxmg0drvdeDxOkmSpVNJqtWCf7u7uut0uOhssl0uPx5PNZp/3l/0dcUY0EARRqVRKpZJGo7FarSqVyu1253I5mqa32y2Kn9AQwGq1zmYz1ERYLJZ//vOfgiA0Gg2j0Qh5S6fTgRhfiQaapmmaFkUR6WaDwXB3d9fv971eLzpWKP0FPwU4YUN+kkwmA4EAKuYIgnh4eLDb7XACwcFfvXoF1xGTyWS32wmCQMrjb47z3EOx4gMvOx6PITnB5gKsLUTM8FwSRZFl2Ww2C5v/w+EwHo87nQ6oZeX9OLjCcE8mk06nMx6Ph8Mhqm9Zlk2lUmaz+Ys3TLkYkMqgsUVRHI1GoK7hKRaPx+EQuN1uJUkSRRE1nN/+K/4peEFmOpfLoSotHo9/0Y3lo9hsNuio6fV6MQJ9w0FOAy4ajcJ7sFAoXBinD/GCzDTymaIofk9dPWRRH1Y0fAMO77qgwnz0O4/2R+JlvV0u+L1wiYYL3uMSDRe8xyUaLniPSzRc8B6XaLjgPS7RcMF7XKLhgve4RMMF73GJhgve4xINF7zHJRoueI9LNFzwHpdouOA9LtFwwXtcouGC97hEwwXvcYmGC97jfwFWkN/VU14GiQAAAABJRU5ErkJggg==" alt="" />

第二种方法,使用自己的命名空间,通过attrs.getAttributeResourceValue拿到这个属性值。

(1)注意在xml文件中,需要声明一个命名空间,形式一般为为http:// + 这个view的包名(其实这个名字可以随便取名只要是个名字就行,只是一般遵循这个格式)如果为http://com.example.activity,注意的是xml 中的命名空间名字要和获取属性attrs.getAttributeValue(“http://com.example.activity”, "iamgeDimension")中的命名空间名字一样

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mobile="http://com.example.activity"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
tools:context=".MainActivity">
<com.example.lenovo.custom_textview.ImageTextView2
android:layout_width="wrap_content"
android:layout_height="wrap_content"
mobile:iamgeBoolean="true"
mobile:iamgeColor="@color/material_blue_grey_800"
mobile:iamgeDimension="100dp"
mobile:iamgeEnum1="enum2"
mobile:iamgeFlag="flag3"
mobile:iamgeFloat="0.8"
mobile:iamgeFraction="200%p"
mobile:iamgeInteger="100"
mobile:iamgeString="自定义属性"
mobile:imageReference="@drawable/trash" />
</LinearLayout>

(2)通过attrs.getAttributeResourceValue,其中第一个参数为命名空间。

package com.example.lenovo.custom_textview;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView; /**
* Created by lenovo on 2016/2/18.
*/
public class ImageTextView2 extends TextView {
public ImageTextView2(Context context) {
super(context);
}
//命名空间
private final String namespace = "http://com.example.activity";
String tag = "ldq";
public ImageTextView2(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
} public ImageTextView2(Context context, AttributeSet attrs) {
super(context, attrs); //可以获取所有属性值的字符串表示,int,flat,boolea,reference,string 类型能获取准确值
String iamgeDimension = attrs.getAttributeValue(namespace, "iamgeDimension");
int imageReference = attrs.getAttributeResourceValue(namespace, "imageReference", 0);
if (imageReference > 0) {
bitmap = BitmapFactory.decodeResource(getResources(), imageReference);
}
String iamgeColor = attrs.getAttributeValue(namespace, "iamgeColor");
String iamgeString = attrs.getAttributeValue(namespace, "iamgeString");
int iamgeInteger = attrs.getAttributeIntValue(namespace, "iamgeInteger", 0);
float iamgeFloat = attrs.getAttributeFloatValue(namespace, "iamgeFloat", 0);
boolean iamgeBoolean = attrs.getAttributeBooleanValue(namespace, "iamgeBoolean", false);
String iamgeFraction = attrs.getAttributeValue(namespace, "iamgeFraction");
String iamgeEnum1 = attrs.getAttributeValue(namespace, "iamgeEnum1");
String iamgeFlag = attrs.getAttributeValue(namespace, "iamgeFlag"); StringBuffer str = new StringBuffer();
str.append("iamgeDimension= " + iamgeDimension + "\n");
str.append("imageReference= " + imageReference + "\n");
str.append("iamgeColor= " + iamgeColor + "\n");
str.append("iamgeBoolean= " + iamgeBoolean + "\n");
str.append("iamgeString= " + iamgeString + "\n");
str.append("iamgeInteger= " + iamgeInteger + "\n");
str.append("iamgeFloat= " + iamgeFloat + "\n");
str.append("iamgeFraction= " + iamgeFraction + "\n");
str.append("iamgeEnum1= " + iamgeEnum1 + "\n");
str.append("iamgeFlag= " + iamgeFlag + "\n");
setText(str.toString());
} private Bitmap bitmap; @Override
public void onDraw(Canvas canvas) {
if (bitmap != null) {
Rect src = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); Rect target = new Rect();
int textHeight = (int) getTextSize();
target.left = 0;
target.top = (int) (getMeasuredHeight() - getTextSize()) / 2 + 1;
target.bottom = target.top + textHeight;
target.right = (int) (textHeight * (bitmap.getWidth() / (float) bitmap.getHeight()));
canvas.drawBitmap(bitmap, src, target, getPaint());
canvas.translate(target.right + 2, 0);
} super.onDraw(canvas);
}
}

结果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAANUAAACWCAIAAADG7loWAAAgAElEQVR4nO19Z3PjaJfd/tx1lav8Ydd22WXv+vW+YUJPZ+UsSsw5kyDAnEASBECCCcw5K2dPlT+cHZhW92h63laL6h6ibqkoiQQB4vDB89xzz7n/cLvYFtv8tn+Y9wEstj/0tsDfYpvntsDfYpvntsDfYpvntsDfYpvntsDfYpvntsDfYpvntsDfYpvntsDfYpvntsDfYpvntsDfYpvn9kn4u7q5Pb5cxCL+nngE/Anju/8Q+PmfI4tYxO+Lf/T/nB/ffS7+uOHdv9I/86O7j8Twju3f8MOP/evvCm5wy/Zv2P4NP7zFX9jBDffL48+Nxztabnj7/45qeJvuXbP963/f8/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5foIhbx++KfIj8XJ5+Nv9vb28vrRSzi74mbB3H1qfhbbIvtS2wL/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW4L/C22eW7/F5h+FPvdzI2wAAAAAElFTkSuQmCC" alt="" />

第三种方法,通过自定义attrs.xml来实现 ,通过context.obtainStyledAttributes(attrs,R.styleable.ImageTextView).getString()方法拿到属性值

(1)自定义一个attrs.xml文件

<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="ImageTextView">
<attr name="iamgeDimension" format="dimension" />
<attr name="imageReference" format="reference" />
<attr name="iamgeColor" format="color" />
<attr name="iamgeString" format="string" />
<attr name="iamgeInteger" format="integer" />
<attr name="iamgeFloat" format="float" />
<attr name="iamgeBoolean" format="boolean" />
<attr name="iamgeFraction" format="fraction" />
<attr name="iamgeEnum1">
<enum name="enum1" value="1"></enum>
<enum name="enum2" value="2"></enum>
</attr>
<attr name="iamgeFlag">
<flag name="flag1" value="1"></flag>
<flag name="flag2" value="2"></flag>
<flag name="flag3" value="3"></flag>
</attr>
</declare-styleable>
</resources>

或者

<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="iamgeDimension" format="dimension" />
<attr name="imageReference" format="reference" />
<attr name="iamgeColor" format="color" />
<attr name="iamgeString" format="string" />
<attr name="iamgeInteger" format="integer" />
<attr name="iamgeFloat" format="float" />
<attr name="iamgeBoolean" format="boolean" />
<attr name="iamgeFraction" format="fraction" />
<attr name="iamgeEnum1">
<enum name="enum1" value="1"></enum>
<enum name="enum2" value="2"></enum>
</attr>
<attr name="iamgeFlag">
<flag name="flag1" value="1"></flag>
<flag name="flag2" value="2"></flag>
<flag name="flag3" value="3"></flag>
</attr> <declare-styleable name="ImageTextView">
<attr name="iamgeDimension"></attr>
<attr name="imageReference"></attr>
<attr name="iamgeColor"></attr>
<attr name="iamgeString"></attr>
<attr name="iamgeInteger"></attr>
<attr name="iamgeFloat"></attr>
<attr name="iamgeBoolean"></attr>
<attr name="iamgeFraction"></attr>
<attr name="iamgeEnum1"></attr>
<attr name="iamgeFlag"></attr>
</declare-styleable>
</resources>

两种方法都可以,自定义属性分两步:

  1. 定义公共属性
  2. 定义控件的主题样式

如上面的xml文件第一部分是公共的属性,第二部分是自定义控件MyCustomView的主题样式,该主题样式里的属性必须包含在公共属性里面。言外之意就是公共属性可以被多个自定义控件主题样式使用。

(2)在xml文件中使用这一属性,注意此时命名空间的书写规范。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ImageTextView="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
tools:context=".MainActivity"> <com.example.lenovo.custom_textview.ImageTextView3
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ImageTextView:iamgeDimension="100dp"
ImageTextView:imageReference="@drawable/trash"
ImageTextView:iamgeColor="@color/material_blue_grey_800"
ImageTextView:iamgeString="自定义属性"
ImageTextView:iamgeInteger="100"
ImageTextView:iamgeFloat="0.8"
ImageTextView:iamgeBoolean="true"
ImageTextView:iamgeFraction="200%p"
ImageTextView:iamgeEnum1="enum2"
ImageTextView:iamgeFlag="flag3"
/>
</LinearLayout>

(3)在代码中使用context.obtainStyledAttributes获得属性值

<attr name="iamgeString" format="string" />

指 定为一个declare-styleable,而在declare-styleable 下的attr (即各属性)Android 的ADT 将会自动生成为declare-styleable的name 名字加上“_”加上对应attr(即属性名称)的名称,如上(ImageTextView_String)我们要得到Text 就需要R.styleable.ImageTextView_String,这一点的话可以看看R.java生成文件

package com.example.lenovo.custom_textview;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.TextView; /**
* Created by lenovo on 2016/2/18.
*/
public class ImageTextView3 extends TextView {
public ImageTextView3(Context context) {
super(context);
}
public ImageTextView3(Context context, AttributeSet attrs) {
super(context, attrs);
TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ImageTextView);
  // TypedArray是存放资源的array,1.通过上下文得到这个数组,attrs是构造函数传进来的,对应attrs.xml 
   // 获得xml里定义的属性,格式为 名称_属性名 后面是默认值
double iamgeDimension = typedArray.getDimension(R.styleable.ImageTextView_iamgeDimension, 0);
int imageReference = typedArray.getResourceId(R.styleable.ImageTextView_imageReference, 0);
bitmap = BitmapFactory.decodeResource(getResources(), imageReference);
Drawable drawable = typedArray.getDrawable(R.styleable.ImageTextView_imageReference);
double iamgeColor = typedArray.getColor(R.styleable.ImageTextView_iamgeColor, 0);
String iamgeString = typedArray.getString(R.styleable.ImageTextView_iamgeString);
double iamgeInteger = typedArray.getInteger(R.styleable.ImageTextView_iamgeInteger, 0);
double iamgeFloat = typedArray.getFloat(R.styleable.ImageTextView_iamgeFloat, 0);
boolean iamgeBoolean = typedArray.getBoolean(R.styleable.ImageTextView_iamgeBoolean, false); // ImageTextView:iamgeFraction="200%"
// ImageTextView:iamgeFraction="200%p"
// double iamgeFraction = typedArray.getFraction(R.styleable.ImageTextView_iamgeFraction, 4, 5, 1);
// 1)如果mageTextView_iamgeFraction 是200%,那么result就是:200%*4 ~ 8
// 2)如果mageTextView_iamgeFraction 是200%p,那么result就是:200%*5 ~ 10
double iamgeFraction = typedArray.getFraction(R.styleable.ImageTextView_iamgeFraction, 4, 5, 1);
double iamgeEnum1 = typedArray.getInteger(R.styleable.ImageTextView_iamgeEnum1, 0);
double iamgeFlag = typedArray.getInteger(R.styleable.ImageTextView_iamgeFlag, 0);
   // 为了保持以后使用该属性一致性,返回一个绑定资源结束的信号给资源 
typedArray.recycle(); //调用结束后务必调用recycle()方法,否则这次的设定会对下次的使用造成影响
StringBuffer str = new StringBuffer();
str.append("iamgeDimension= " + iamgeDimension + "\n");
str.append("imageReference= " + imageReference + "\n");
str.append("iamgeColor= " + iamgeColor + "\n");
str.append("iamgeBoolean= " + iamgeBoolean + "\n");
str.append("iamgeString= " + iamgeString + "\n");
str.append("iamgeInteger= " + iamgeInteger + "\n");
str.append("iamgeFloat= " + iamgeFloat + "\n");
str.append("iamgeFraction= " + iamgeFraction + "\n");
str.append("iamgeEnum1= " + iamgeEnum1 + "\n");
str.append("iamgeFlag= " + iamgeFlag + "\n");
setText(str.toString()); } public ImageTextView3(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
} private Bitmap bitmap; @Override
public void onDraw(Canvas canvas) {
if (bitmap != null) {
Rect src = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); Rect target = new Rect();
int textHeight = (int) getTextSize();
target.left = 0;
target.top = (int) (getMeasuredHeight() - getTextSize()) / 2 + 1;
target.bottom = target.top + textHeight;
target.right = (int) (textHeight * (bitmap.getWidth() / (float) bitmap.getHeight()));
canvas.drawBitmap(bitmap, src, target, getPaint());
canvas.translate(target.right + 2, 0);
} super.onDraw(canvas);
}
}

结果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAACICAIAAAD1bpevAAAgAElEQVR4nO19V5PbWJL1/v+IjX3ojeidmR6pVKxi0RuQBA3ovfcO9N6DIAAS7ul7OJ8QnJKZLqlqpNEwo6ODRRHAJZG4N+/Jkyf/S73Zf7z9148ewM1+vN2c4GY3J7jZzQlupt6c4GbqzQlupt6c4GbqzQlupt6c4GbqzQlupt6c4Gbqi5xAluXL5aIoymtd+3w+C4JwPp8lSVJVVVGUy+Uiy/KrnFyW5fP5/P0nEQThdDqJooh3LpcLx3Hn8xm/gyzLPM9zHPds2KIochzH8/wr/lxvZy9wgs1mE4/HGYZ5lQvLsuxwOO7u7oxGYywW2263p9Mpm82Ox+NXOf90Os1kMoIgfM8IaZq2Wq1PT08+n49hGI7jgsHg09OTzWYbj8eyLDcaDYPBoNfrM5nM5XLBgefzOZlM6vV6o9HY7XZfy63fzl7gBDzP9/v98/l8P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bqbenOBm6s0JbqbenOBm6s0JbqbenOBm6s0JbqbenOBm6s0JbqbenOBm6s0JbqbenOBm6s0Jbqaq6v8D0/+J26FwwdwAAAAASUVORK5CYII=" alt="" />

总结:

这是这两种为Android 注册 属性的使用方法,那么两者有什么区别呢?

在这里我认为起码有五点,大家可以找找看还有什么区别:

  • 第二种可以编译时报错,如果编程人员随便输入什么第一种是不会报错的,第二种可以支持代码检测功能。
  • 第二种写法,跟Android 属性标准写法是一致的,而且可以统一书法规则。
  • 第二种写法,可以支持数据格式的验证,比如我们在attrs上注明只支持integer 那么就不可以使用字符串,这是第一种达不到的。
  • 第二种写法,可以为VIEW提供选择操作,比如如上我们使用的ENUM让VIEW对应的属性支持ENUM列表,或者为其提供BOOL等只有双项选择的操作。
  • 第一种写法,所有的属性必须是引用自资源(不大确定,如果朋友有什么好的DEMO麻烦共享),第二种写法,可以即支持引用资源又可以直接输入做操作,为编程带来更多的方便性。

种种都说明,第二种写法更具规范性,功能更性,代码编写 也更优雅。

Dome下载

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQUAAAF5CAIAAAAZFKh8AAAgAElEQVR4nOy953dbx7W4nf/Alh3ftW7y6c2910lky+qdVLEK1azGIlFir2ABCVYAJECis4BgAUgQAMGOxgKCJHphBYheiEp1W46cxE5ynTi+Tuz8stb7YWQIoooZiSoO5ln7AwWhnDnnPJi9Z+Yc/OTDDz88HMGhCA4+mQMRxEYQ8zD7I9gXwd4nsyeC3Y+w63HsfJgdT2D7w2xbG1sfx5bHsfkRPvjggw8++OD9999/9913/z/I68rPfvazt99++6233tqwYcNPjhw58iJkWHcTHivDzkd4rUwAbNy48b/+679e9UGHPJGHfAD9w6GHWYsJ6yjDnodZiwyPmvBYGbY/jnWU4VETVsmwadOmX/7yl7/4xS9e9UGHPJGf/exnb7311gMf1kuDde8W1pIdrbFPeJ5uYY19wioTAO+9995///d/v+ojDnkawIcNGza8+eab9334dyoVXrQJP5gghXuGTZs2/epXv4Kdw2vO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J9nTP0BoP4AGLg/DtDM+QN5gHTefj61xEQeIBr7+QDNqz+EQqFjx46RB4jG+UuAxnoroHHePaCZ92WxfwnS+etx5AGS+Z5/+Bct07PV6b1iWgAAAABJRU5ErkJggg==" alt="" />

View (二) 自定义属性的更多相关文章

  1. Android 高手进阶之自定义View,自定义属性(带进度的圆形进度条)

      Android 高手进阶(21)  版权声明:本文为博主原创文章,未经博主允许不得转载. 转载请注明地址:http://blog.csdn.net/xiaanming/article/detail ...

  2. Android开发艺术探索笔记——View(二)

    Android开发艺术探索笔记--View(二) View的事件分发机制 学习资料: 1.Understanding Android Input Touch Events System Framewo ...

  3. Android 自定义View二(深入了解自定义属性attrs.xml)

    1.为什么要自定义属性 要使用属性,首先这个属性应该存在,所以如果我们要使用自己的属性,必须要先把他定义出来才能使用.但我们平时在写布局文件的时候好像没有自己定义属性,但我们照样可以用很多属性,这是为 ...

  4. Android视图绘制流程完全解析,带你一步步深入了解View(二)

    转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/16330267 在上一篇文章中,我带着大家一起剖析了一下LayoutInflater ...

  5. Android自定义View (二) 进阶

    转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/24300125 继续自定义View之旅,前面已经介绍过一个自定义View的基础的例 ...

  6. 自定义View(二)--继承自ViewGroup

    自定义View包括很多种,上一次随笔中的那一种是完全继承自View,这次写的这个小Demo是继承自ViewGroup的,主要是将自定义View继承自ViewGroup的这个流程来梳理一下,这次的Dem ...

  7. Android 自定义View (二) 进阶

    转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/24300125 继续自定义View之旅,前面已经介绍过一个自定义View的基础的例 ...

  8. 手机安全卫士——在设置中心 自定义view和自定义属性

    自定义组合控件 1. 自定义一个View, 继承ViewGroup,比如RelativeLayout,此文中是SettingItemView 2. 编写组合控件的布局文件,在自定义的View中加载   ...

  9. VIEW当中自定义属性的使用

    主要有三种方法可以实现自定义属性. 第一种方法,直接设置属性值,通过attrs.getAttributeResourceValue拿到这个属性值. (1)在xml文件中设置属性值 [html] vie ...

  10. 自定义view(二)

    1.View 的绘制 通过继承View 并重写它的onDraw()来完成绘制. onDraw()有一个参数,就是Canvas对象.使用这个Canvas就可以绘制图像了,Canvas canvas = ...

随机推荐

  1. 初识python(1)

    1.python简介 Python是一种面向对象.直译式计算机程序语言.也是一种功能强大而完善的通用型语言,已经具有十多年的发展历史,成熟且稳定. Python语法简捷而清晰,具有丰富和强大的类库.它 ...

  2. sass开发过程中遇到的几个坑

    1.安装sass被墙的问题 安装完`ruby`后,打开`ruby cmd` 输入`gem install sass`,安装失败,有可能是镜像源的问题,也有可能是墙的问题. 因为公司内网的奇葩限制,各种 ...

  3. 浅析对象访问属性的"."和"[]"方法区别

    在JavaScript中通常使用”."运算符来存取对象的属性的值.或者使用[]作为一个关联数组来存取对象的属性.但是这两种方式有什么区别了? 例如,读取object中的property属性值 ...

  4. C++引用笔记

    1.什么是引用: 百度百科里的解释:引用就是某一变量(目标)的一个别名,对引用的操作与对变量直接操作完全一样.用&符号表示 举例: using namespace std; int _tmai ...

  5. SharePoint 2013 单一页面赋设计权限

    本文介绍SharePoint的使用中,断开单一页面权限,给用户编辑权限以及操作中遇到的问题,希望给相关需要的人一个参考. 1.首先进入页面库,找到我们的页面,进入共享,如下图: 2.在弹出的窗口中选择 ...

  6. Oracle学习之简单查询

    使用scott用户下的表, 1.查询所有内容SELECT * FROM emp; 2.查询员工信息,包括员工编号,姓名,职位3个信息SELECT empno,ename,job FROM emp; 3 ...

  7. 读书笔记-Autonomous Intelligent Vehicles(一)

    Autonomous intelligent vehicles have to finish the basic procedures: perceiving and modeling environ ...

  8. 在Asp.net MVC中使用Authorization Manager (AzMan)进行Windows用户身份认证

    背景 创建需要通过Windows用户进行身份认证的Asp.net MVC应用 要点 在Asp.net MVC应用基于Windows用户进行身份认证的方法有很多,如MVC自带的Windows认证就经常被 ...

  9. Java 读取大文件方法

    需求:实际开发中读取文本文件的需求还是很多,如读取两个系统之间FTP发送文件,读取后保存到数据库中或日志文件的数据库中保存等. 为了测试首先利用数据库SQL生成大数据文件. 规则是 编号|姓名|手机号 ...

  10. 一次简单的MySQL数据库导入备份

    任务目的:把现网数据库(MySQL5.5,windows)中的内容导入到测试数据库(MySQL5.1,linux)中 1.由于对MySQL并不熟悉,一上来我先考虑方案是用现成的数据库管理工具来处理.我 ...