摘要:
在res下的drawable下新建一个xml文件: 阅读全文
摘要:
1.设置中间省略:android:ellipsize="middle" 2.对邮件增加链接:android:autoLink="email" 3.测试密码框:android:password="true" 4.设置文本框内文本的阴影的颜色:android:shadowColor="#0000ff" 阅读全文
摘要:
1.在帧布局FrameLayout依次添加TextView组件 2.启动一个线程来控制周期性地改变Textview的背景色 后期思考: 1.对线程的了解 2.msg.what == 0x1122 阅读全文
摘要:
1.创建小球 canvas.drawCircle(currentX , currentY , 15 , p); void android.graphics.Canvas.drawCircle(float cx, float cy, float radius, Paint paint) Draw th 阅读全文
摘要:
也可以在布局文件中添加ImageView,效果已也是一样,而MainActivity.java则改为: LinearLayout main = (LinearLayout)findViewById(R.id.root); final ImageView image=(ImageView) findV 阅读全文
摘要:
void android.view.View.setLayoutParams(LayoutParams params) Set the layout parameters associated with this view. These supply parameters to the parent 阅读全文