work hard work smart

专注于Java后端开发。 不断总结,举一反三。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年3月18日

摘要: Android 自定义View为MyCustomView。在MyCustomView画了一个Rect,颜色为Green,和一个为红色的文字。public class MyCustomView extends View{ private Paint mPaint; private Context mContext; private static final String mString = "Hello world!"; public MyCustomView(Context context) { super(context); // TODO Auto-ge... 阅读全文

posted @ 2013-03-18 15:59 work hard work smart 阅读(322) 评论(0) 推荐(0) 编辑

摘要: Android中的TableLayout的简单使用在Layout中加入TableLayout控件。 <TableLayout android:id="@+id/myTableLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="40dp" android:layout_marginTop="157dp" > </Tab 阅读全文

posted @ 2013-03-18 15:22 work hard work smart 阅读(886) 评论(0) 推荐(0) 编辑

摘要: 项目的结构首先新建一个book_info.xml的xml文件,结构如下:<?xml version="1.0" encoding="UTF-8"?><books> <catalog>Computer</catalog> <book> <country>USA</country> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <price>10 阅读全文

posted @ 2013-03-18 14:58 work hard work smart 阅读(239) 评论(0) 推荐(0) 编辑