git-svn-id: http://192.168.1.226/svn/proxy@550 454eff88-639b-444f-9e54-f578c98de674
| | |
| | | return;
|
| | | }
|
| | | try {
|
| | | File path = BaseApplication.getInstance().getFilesDir();
|
| | | File f1 = new File(path, "1.txt");
|
| | | if (!f1.exists()) {
|
| | | f1.createNewFile();
|
| | | }
|
| | | File f2 = new File(path, "2.txt");
|
| | | if (!f2.exists()) {
|
| | | f2.createNewFile();
|
| | | }
|
| | | FileWriter fw1 = new FileWriter(f1);
|
| | | fw1.write("test1");
|
| | | fw1.close();
|
| | | FileWriter fw2 = new FileWriter(f2);
|
| | | fw2.write("test2");
|
| | | fw2.close();
|
| | | params.setUri(AppApi.BASE_URL +AppApi.REGISTER_ADD);
|
| | | params.addBodyParameter("file1", f1);
|
| | | params.addBodyParameter("file2", f2);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | @Override
|
| | | public void success() {
|
| | |
| | | android:orientation="vertical">
|
| | | <TextView
|
| | | android:id="@+id/load_more_text_view"
|
| | | android:layout_marginTop="20dp"
|
| | | android:paddingTop="20dp"
|
| | | android:layout_marginBottom="20dp"
|
| | | android:layout_width="match_parent"
|
| | | android:layout_height="wrap_content"
|
| | | android:text="加载更多"
|
| | | android:gravity="center"
|
| | | />
|
| | | android:gravity="center_horizontal"
|
| | | android:layout_height="60dp" />
|
| | | </LinearLayout> |