设置EditText控件中提示消息hint的字体颜色和大小 1.设置字体大小 代码例: public void init(){ hint= (EditText) findViewById(R.id.in_login); // 新建一个可以添加属性的文本对象 SpannableString ss = new SpannableString("请输入用户名"); // 新建一个属性对象,设置文字的大小 AbsoluteSizeSpan ass = new AbsoluteSizeSpan(…
Public Class frmDl Dim x As Single = 0 Dim y As Single = 0 Private Sub frmDl_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load x = Me.Width y = Me.Height setTag(Me) End Sub '递归取控件的原始大小和位置,用tag来纪录 Private Sub setTag(…