-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92fcccf
commit 4ff8e16
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="horizontal" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
> | ||
<!-- 定义一个ImageView,用于作为列表项的一部分。 --> | ||
<ImageView android:id="@+id/icon" | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" | ||
android:paddingLeft="10dp" | ||
/> | ||
<!-- 定义一个TextView,用于作为列表项的一部分。 --> | ||
<TextView android:id="@+id/file_name" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="16dp" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="10dp" | ||
android:paddingTop="10dp" | ||
android:paddingBottom="10dp" | ||
/> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?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" | ||
> | ||
<!-- 显示当前路径的的文本框 --> | ||
<TextView | ||
android:id="@+id/path" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_alignParentTop="true" | ||
/> | ||
<!-- 列出当前路径下所有文件的ListView --> | ||
<ListView | ||
android:id="@+id/list" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:divider="#000" | ||
android:dividerHeight="1px" | ||
android:layout_below="@id/path" | ||
/> | ||
<!-- 返回上一级目录的按钮 --> | ||
<Button android:id="@+id/parent" | ||
android:layout_width="38dp" | ||
android:layout_height="34dp" | ||
android:background="@drawable/home" | ||
android:layout_centerHorizontal="true" | ||
android:layout_alignParentBottom="true" | ||
/> | ||
</RelativeLayout> |