Skip to content

Commit

Permalink
download a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan676 committed Feb 2, 2015
1 parent bab071e commit 5b756f6
Show file tree
Hide file tree
Showing 43 changed files with 2,253 additions and 865 deletions.
13 changes: 7 additions & 6 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
android:label="@string/app_name">
</activity>

<activity android:name="com.seafile.seadroid2.ui.activity.UploadTasksActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.SeafileTheme"
android:label="@string/app_name">
</activity>

<activity android:name="com.seafile.seadroid2.ui.activity.SettingsActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.SeafileTheme"
Expand Down Expand Up @@ -128,6 +122,13 @@
android:theme="@style/Theme.SeafileTheme"
android:label="@string/app_name">
</activity>

<activity android:name="com.seafile.seadroid2.ui.activity.TransferActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.SeafileTheme"
android:label="@string/app_name">
</activity>

<provider
android:name="com.seafile.seadroid2.provider.SeafileProvider"
android:authorities="com.seafile.seadroid2"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions res/layout-sw600dp/list_item_entry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="@dimen/lv_item_height"
android:padding="@dimen/lv_item_padding">

<ImageView
android:id="@+id/list_item_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"/>

<ImageView
android:id="@+id/list_item_space"
android:layout_width="@dimen/lv_space_width"
android:layout_height="fill_parent"
android:layout_toRightOf="@id/list_item_icon"/>

<TextView
android:id="@+id/list_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
android:singleLine="true"
android:textColor="@color/lv_title_color"
android:textSize="@dimen/lv_title_txt_size"
android:layout_toRightOf="@id/list_item_space"
android:layout_toLeftOf="@+id/list_item_action"/>

<RelativeLayout
android:id="@+id/list_item_subtitle_group"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/list_item_title"
android:layout_below="@id/list_item_title"
android:layout_toLeftOf="@+id/list_item_action"
android:layout_toRightOf="@id/list_item_space">
<ImageView
android:id="@+id/list_item_download_status_icon"
android:layout_width="@dimen/lv_download_icon_width"
android:layout_height="@dimen/lv_download_icon_height"
android:visibility="gone"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:contentDescription="@null"
android:layout_marginLeft="@dimen/lv_download_icon_margin_left"
android:layout_marginRight="@dimen/lv_download_icon_margin_right"
android:layout_marginTop="@dimen/lv_download_icon_margin_top"
android:src="@drawable/list_item_download_finished"/>
<ProgressBar
android:id="@+id/list_item_download_status_progressbar"
android:layout_width="@dimen/lv_download_icon_width"
android:layout_height="@dimen/lv_download_icon_height"
android:layout_alignParentLeft="true"
android:layout_marginLeft="@dimen/lv_download_icon_margin_left"
android:layout_marginRight="@dimen/lv_download_icon_margin_right"
android:layout_marginTop="@dimen/lv_download_icon_margin_top"
android:layout_toRightOf="@id/list_item_download_status_icon"
android:visibility="gone"/>

<TextView
android:id="@+id/list_item_subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/list_item_download_status_progressbar"
android:textColor="@color/lv_subtitle_color"
android:textSize="@dimen/lv_subtitle_txt_size"/>
</RelativeLayout>

<ImageView
android:id="@+id/list_item_action"
android:layout_width="@dimen/lv_iv_action_width"
android:layout_height="fill_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"/>

</RelativeLayout>
80 changes: 80 additions & 0 deletions res/layout-xlarge/list_item_entry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="@dimen/lv_item_height"
android:padding="@dimen/lv_item_padding">

<ImageView
android:id="@+id/list_item_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"/>

<ImageView
android:id="@+id/list_item_space"
android:layout_width="@dimen/lv_space_width"
android:layout_height="fill_parent"
android:layout_toRightOf="@id/list_item_icon"/>

<TextView
android:id="@+id/list_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
android:singleLine="true"
android:textColor="@color/lv_title_color"
android:textSize="@dimen/lv_title_txt_size"
android:layout_toRightOf="@id/list_item_space"
android:layout_toLeftOf="@+id/list_item_action"/>

<RelativeLayout
android:id="@+id/list_item_subtitle_group"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/list_item_title"
android:layout_below="@id/list_item_title"
android:layout_toLeftOf="@+id/list_item_action"
android:layout_toRightOf="@id/list_item_space">
<ImageView
android:id="@+id/list_item_download_status_icon"
android:layout_width="@dimen/lv_download_icon_width"
android:layout_height="@dimen/lv_download_icon_height"
android:visibility="gone"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:contentDescription="@null"
android:layout_marginLeft="@dimen/lv_download_icon_margin_left"
android:layout_marginRight="@dimen/lv_download_icon_margin_right"
android:layout_marginTop="@dimen/lv_download_icon_margin_top"
android:src="@drawable/list_item_download_finished"/>
<ProgressBar
android:id="@+id/list_item_download_status_progressbar"
android:layout_width="@dimen/lv_download_icon_width"
android:layout_height="@dimen/lv_download_icon_height"
android:layout_alignParentLeft="true"
android:layout_marginLeft="@dimen/lv_download_icon_margin_left"
android:layout_marginRight="@dimen/lv_download_icon_margin_right"
android:layout_marginTop="@dimen/lv_download_icon_margin_top"
android:layout_toRightOf="@id/list_item_download_status_icon"
android:visibility="gone"/>

<TextView
android:id="@+id/list_item_subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/list_item_download_status_progressbar"
android:textColor="@color/lv_subtitle_color"
android:textSize="@dimen/lv_subtitle_txt_size"/>
</RelativeLayout>

<ImageView
android:id="@+id/list_item_action"
android:layout_width="@dimen/lv_iv_action_width"
android:layout_height="fill_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"/>

</RelativeLayout>
116 changes: 70 additions & 46 deletions res/layout/list_item_entry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,79 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="@dimen/lv_item_height"
android:paddingTop="@dimen/lv_item_padding_top"
android:paddingBottom="@dimen/lv_item_padding_bottom"
android:paddingLeft="@dimen/lv_item_padding_left"
android:paddingRight="@dimen/lv_item_padding_right">
android:padding="@dimen/lv_item_padding">

<ImageView
android:id="@+id/list_item_icon"
android:layout_width="@dimen/lv_icon_width"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
/>
<ImageView
android:id="@+id/list_item_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"/>

<ImageView
android:id="@+id/list_item_action"
android:layout_width="@dimen/lv_iv_action_width"
android:layout_height="fill_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
/>
<ImageView
android:id="@+id/list_item_space"
android:layout_width="@dimen/lv_space_width"
android:layout_height="fill_parent"
android:layout_toRightOf="@id/list_item_icon"/>

<TextView
android:id="@+id/list_item_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/list_item_action"
android:layout_toRightOf="@id/list_item_icon"
android:gravity="left"
android:lines="1"
android:paddingTop="@dimen/lv_title_padding_top"
android:paddingLeft="@dimen/lv_title_padding_left"
android:singleLine="true"
android:textColor="@color/lv_title_color"
android:textSize="@dimen/lv_title_txt_size"/>
<TextView
android:id="@+id/list_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="1"
android:singleLine="true"
android:textColor="@color/lv_title_color"
android:textSize="@dimen/lv_title_txt_size"
android:layout_toRightOf="@id/list_item_space"
android:layout_toLeftOf="@+id/list_item_action"/>

<TextView
android:id="@+id/list_item_subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/list_item_title"
android:layout_below="@id/list_item_title"
android:layout_toLeftOf="@+id/list_item_action"
android:gravity="left"
android:lines="1"
android:singleLine="true"
android:paddingLeft="@dimen/lv_subtitle_padding_left"
android:textColor="@color/lv_subtitle_color"
android:textSize="@dimen/lv_subtitle_txt_size"/>
<RelativeLayout
android:id="@+id/list_item_subtitle_group"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@id/list_item_title"
android:layout_below="@id/list_item_title"
android:layout_toLeftOf="@+id/list_item_action"
android:layout_toRightOf="@id/list_item_space">
<ImageView
android:id="@+id/list_item_download_status_icon"
android:layout_width="@dimen/lv_download_icon_width"
android:layout_height="@dimen/lv_download_icon_height"
android:visibility="gone"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:contentDescription="@null"
android:layout_marginLeft="@dimen/lv_download_icon_margin_left"
android:layout_marginRight="@dimen/lv_download_icon_margin_right"
android:layout_marginTop="@dimen/lv_download_icon_margin_top"
android:src="@drawable/list_item_download_finished"/>
<ProgressBar
android:id="@+id/list_item_download_status_progressbar"
android:layout_width="@dimen/lv_download_icon_width"
android:layout_height="@dimen/lv_download_icon_height"
android:layout_alignParentLeft="true"
android:layout_marginLeft="@dimen/lv_download_icon_margin_left"
android:layout_marginRight="@dimen/lv_download_icon_margin_right"
android:layout_marginTop="@dimen/lv_download_icon_margin_top"
android:layout_toRightOf="@id/list_item_download_status_icon"
android:visibility="gone"/>

<TextView
android:id="@+id/list_item_subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/list_item_download_status_progressbar"
android:textColor="@color/lv_subtitle_color"
android:textSize="@dimen/lv_subtitle_txt_size"/>
</RelativeLayout>

<ImageView
android:id="@+id/list_item_action"
android:layout_width="@dimen/lv_iv_action_width"
android:layout_height="fill_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"/>

</RelativeLayout>
Loading

0 comments on commit 5b756f6

Please sign in to comment.