主要的界面有两个,分别如下:
左边是进入后的主界面,右边则是进入添加记事模式的界面,主要的功能与可以从图中体现出来,下面是主要代码
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/main_bg"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>
title_add.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="45dp"
android:background="@drawable/navigationbar_bg">
<ImageView
android:id="@+id/iv_icon"
android:layout_width="35dp"
android:layout_height="35dp"
android:src="@drawable/icon"
android:layout_margin="5dp"
android:layout_alignParentLeft="true&