packages/apps/FileManager
Revision | 378db8cd01875b852489e7f6dc10b8c1aaebc5d2 (tree) |
---|---|
Time | 2011-07-05 15:25:50 |
Author | Joe Berria <nexesdevelopment@gmai...> |
Commiter | Joe Berria |
project update
@@ -19,20 +19,17 @@ | ||
19 | 19 | --> |
20 | 20 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
21 | 21 | package="com.nexes.manager.tablet" |
22 | - android:versionCode="12" | |
23 | - android:versionName="1.2"> | |
22 | + android:versionCode="110" | |
23 | + android:versionName="1.10"> | |
24 | 24 | |
25 | 25 | <uses-sdk android:minSdkVersion="11" /> |
26 | 26 | |
27 | 27 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
28 | - | |
29 | -<!-- bluetooth is in the works | |
30 | - | |
31 | 28 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
32 | 29 | <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> |
33 | 30 | |
34 | 31 | <uses-feature android:name="android.hardware.bluetooth" android:required="false" /> |
35 | ---> | |
32 | + | |
36 | 33 | <application android:icon="@drawable/icon" android:label="@string/app_name" |
37 | 34 | android:hardwareAccelerated="true" android:debuggable="true"> |
38 | 35 |
@@ -22,8 +22,7 @@ | ||
22 | 22 | android:layout_width="match_parent" |
23 | 23 | android:layout_height="match_parent" |
24 | 24 | android:gravity="center_horizontal" |
25 | - android:padding="4dp"> | |
26 | - | |
25 | + android:padding="2dip"> | |
27 | 26 | <ImageView |
28 | 27 | android:id="@+id/content_icon" |
29 | 28 | android:maxWidth="72dip" |
@@ -20,13 +20,16 @@ | ||
20 | 20 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
21 | 21 | android:layout_width="match_parent" |
22 | 22 | android:layout_height="match_parent" |
23 | - android:padding="10dip" | |
23 | + android:paddingLeft="10dip" | |
24 | + android:paddingRight="10dip" | |
25 | + android:paddingTop="2dip" | |
26 | + android:paddingBottom="2dip" | |
24 | 27 | android:background="@color/lightgray"> |
25 | 28 | <ImageView |
26 | 29 | android:layout_width="wrap_content" |
27 | 30 | android:layout_height="wrap_content" |
28 | - android:maxWidth="72dip" | |
29 | - android:maxHeight="72dip" | |
31 | + android:maxWidth="68dip" | |
32 | + android:maxHeight="68dip" | |
30 | 33 | android:layout_alignParentTop="true" |
31 | 34 | android:layout_alignParentBottom="true" |
32 | 35 | android:layout_marginRight="6dip" |
@@ -66,19 +66,7 @@ public class DialogHandler extends DialogFragment { | ||
66 | 66 | |
67 | 67 | return instance; |
68 | 68 | } |
69 | - | |
70 | - public void setHoldingFileList(ArrayList<String> list) { | |
71 | - mFiles = list; | |
72 | - } | |
73 | - | |
74 | - public void setFilePath(String path) { | |
75 | - mPath = path; | |
76 | - } | |
77 | - | |
78 | - public void setOnSearchFileSelected(OnSearchFileSelected s) { | |
79 | - mSearchListener = s; | |
80 | - } | |
81 | - | |
69 | + | |
82 | 70 | @Override |
83 | 71 | public void onCreate(Bundle savedInstanceState) { |
84 | 72 | super.onCreate(savedInstanceState); |
@@ -103,19 +91,26 @@ public class DialogHandler extends DialogFragment { | ||
103 | 91 | @Override |
104 | 92 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { |
105 | 93 | switch(mDialogType) { |
106 | - case HOLDINGFILE_DIALOG: | |
107 | - return createHoldingFileDialog(); | |
108 | - | |
109 | - case SEARCHRESULT_DIALOG: | |
110 | - return createSearchResultDialog(inflater); | |
111 | - | |
112 | - case FILEINFO_DIALOG: | |
113 | - return createFileInfoDialog(inflater); | |
94 | + case HOLDINGFILE_DIALOG: return createHoldingFileDialog(); | |
95 | + case SEARCHRESULT_DIALOG: return createSearchResultDialog(inflater); | |
96 | + case FILEINFO_DIALOG: return createFileInfoDialog(inflater); | |
114 | 97 | } |
115 | 98 | |
116 | 99 | return super.onCreateView(inflater, container, savedInstanceState); |
117 | 100 | } |
118 | 101 | |
102 | + public void setHoldingFileList(ArrayList<String> list) { | |
103 | + mFiles = list; | |
104 | + } | |
105 | + | |
106 | + public void setFilePath(String path) { | |
107 | + mPath = path; | |
108 | + } | |
109 | + | |
110 | + public void setOnSearchFileSelected(OnSearchFileSelected s) { | |
111 | + mSearchListener = s; | |
112 | + } | |
113 | + | |
119 | 114 | private View createHoldingFileDialog() { |
120 | 115 | getDialog().getWindow().setGravity(Gravity.LEFT | Gravity.TOP); |
121 | 116 | getDialog().setTitle("Holding " + mFiles.size() + " files"); |
@@ -30,8 +30,6 @@ import android.app.Fragment; | ||
30 | 30 | import android.os.Bundle; |
31 | 31 | import android.os.Handler; |
32 | 32 | import android.os.Message; |
33 | -import android.content.ClipData; | |
34 | -import android.content.ClipDescription; | |
35 | 33 | import android.content.Context; |
36 | 34 | import android.content.Intent; |
37 | 35 | import android.content.ActivityNotFoundException; |
@@ -199,9 +199,10 @@ public class DirListActivity extends ListFragment implements OnBookMarkAddListen | ||
199 | 199 | /*manage the users bookmarks, delete or rename*/ |
200 | 200 | } else if (pos > BOOKMARK_POS) { |
201 | 201 | final int p = pos; |
202 | - final String bookmark = mBookmarkNames.get(p - (BOOKMARK_POS + 1)); | |
202 | + | |
203 | + String bookmark = mBookmarkNames.get(p - (BOOKMARK_POS + 1)); | |
203 | 204 | |
204 | - builder.setTitle("Manage bookmark " + bookmark); | |
205 | + builder.setTitle("Manage bookmark: " + bookmark); | |
205 | 206 | builder.setIcon(R.drawable.folder_md); |
206 | 207 | builder.setView(v); |
207 | 208 |
@@ -252,10 +253,6 @@ public class DirListActivity extends ListFragment implements OnBookMarkAddListen | ||
252 | 253 | mChangeLocList = l; |
253 | 254 | } |
254 | 255 | |
255 | -// public void setDirListString(String list) { | |
256 | -// mDirListString = list; | |
257 | -// } | |
258 | - | |
259 | 256 | public String getDirListString() { |
260 | 257 | return mDirListString; |
261 | 258 | } |
@@ -354,7 +351,7 @@ public class DirListActivity extends ListFragment implements OnBookMarkAddListen | ||
354 | 351 | break; |
355 | 352 | |
356 | 353 | default: |
357 | - mHolder.mMainText.setText(mBookmarkNames.get(position - (BOOKMARK_POS + 1))); | |
354 | + mHolder.mMainText.setText(mBookmarkNames.get(position - (BOOKMARK_POS + 1))); | |
358 | 355 | mHolder.mIcon.setImageResource(R.drawable.folder_md); |
359 | 356 | break; |
360 | 357 | } |
@@ -65,8 +65,8 @@ public class MultiSelectHandler { | ||
65 | 65 | ext.equalsIgnoreCase("jpeg")|| |
66 | 66 | ext.equalsIgnoreCase("gif")) { |
67 | 67 | Bitmap b = Bitmap.createScaledBitmap(mThumbnail.isBitmapCached(file).getBitmap(), |
68 | - 52, | |
69 | - 52, | |
68 | + 58, | |
69 | + 58, | |
70 | 70 | false); |
71 | 71 | image.setImageBitmap(b); |
72 | 72 |