Android 自带的记事本功能有限对于我这个处女座的人来说这无疑是一种精神上的摧残。那我还是自己写一个记事本软件好了。这一次我不想做单纯的生成文本的功能,我想再次基础上加上一些扩展功能。具体功能整个布局的图片都可以看的到。 今天先来完成下界面布局吧。Android 的布局个人觉得还是很麻烦(至少比起JAVASE这是真的) 后期用到的数据库无非就是SQLite算是比较简单,但我尽力把这个APP做的人性化一些小细节觉得心情嘛。先来看一下整个软件的布局。
主布局:activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/navigationbar_bg"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello world"
android:textColor="#000000"
/>
</RelativeLayout>
这个时候来重写一个title来替换掉原有的那个