你的位置:首页 > 软件开发 > 操作系统 > Android学习之文件存储

Android学习之文件存储

发布时间:2015-06-06 00:07:45
今天做了下文件存储的小案例,并借此巩固一下Android中的单元测试及MVC的设计模式..AndroidMVC模式如下步骤1: 布局编辑:布局页面及代码如下:<Button android:id="@+id/btnSave" android: ...

Android学习之文件存储

今天做了下文件存储的小案例,并借此巩固一下Android中的单元测试及MVC的设计模式.

.AndroidMVC模式如下

Android学习之文件存储

步骤1: 布局编辑:

布局页面及代码如下:

Android学习之文件存储

<Button    android:id="@+id/btnSave"    android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:layout_below="@+id/etContent"    android:layout_centerHorizontal="true"    android:layout_marginTop="39dp"    android:text="@string/btn_tip_save" />  <EditText    android:id="@+id/etContent"    android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:layout_alignParentTop="true"    android:layout_centerHorizontal="true"    android:layout_marginTop="74dp"    android:drawableLeft="@drawable/icon"    android:ems="15"    android:hint="@string/et_tip_writeContent"    android:minLines="3" >        <!-- ems长度 -->    <requestFocus />  </EditText>

原标题:Android学习之文件存储

关键词:Android

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录