摘要:
1. View findViewById(int id) //根据组件ID取得组件对象setContentView(int LayoutResID) //设置布局文件,设置显示组件 2. TextView android:maxLength="6" //允许最大字符数 android:textCol 阅读全文
摘要:
第一步:写一个累继承Activity第二步:重写onCreate方法第三步:在主配置文件中注册activity <activity android:name=".类名" android:label="@string/app_name"> <intent-filter> <!--app的入口--> < 阅读全文