使用java制作app教程
1、1.工欲善其事,必先利其器
先熟悉工具的使用。Android Studio ,idea,eclipse三个工具类的其中一个都可以,看个人爱好。我这里就先介绍Android Studio 。
Android Studio是Google开发的一款面向Android开发者的IDE,下载链接:https://developer.android.google.cn/studio/。

2、2.项目工程搭建
第一步要做的就是新建工程,输入工程名和主包名和存储路径,然后点击next到如图步骤:

3、3.代码编辑
TableLayout布局的代码,具体代码变成技巧请参考菜鸟教程。
<TableLayout
android:id="@+id/TableLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:collapseColumns="0,2" >
<TableRow>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="one" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="two" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="three" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="four" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="five" />
</TableRow>
</TableLayout>

4、4.打包部署。
Android Studio如何打包签名:
1。Build -> Generate Signed APK...
2。弹出窗口,如果没有key,就创建一个,有的话就选择存在的Key
3。没有,我们新建一个,可根据自己需要填写相关项:
4。好的,点击OK后,可以看到我们密码的信息,可能需要我们填入密码了,填写下:
5。点击Next:
6。点击Finish稍等一会儿会出现下述提示,说明应用已经打包签名成功了:
7。可以看到打包后的APK已经安详地躺在我们的app目录下了:
8。到第七步就已经打包签名完成了,如果你要验证是否签名,只需要输入下述cmd指令