Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
Holofied main screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpcjanssen authored and ginatrapani committed Feb 4, 2013
1 parent 9f8e1a8 commit 57e30c6
Show file tree
Hide file tree
Showing 13 changed files with 396 additions and 6 deletions.
7 changes: 3 additions & 4 deletions AndroidManifest.xml
Expand Up @@ -27,7 +27,7 @@ You should have received a copy of the GNU General Public License along with Tod

<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="4" />
android:targetSdkVersion="14" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -45,7 +45,7 @@ You should have received a copy of the GNU General Public License along with Tod
<application
android:name=".TodoApplication"
android:icon="@drawable/todotxt_touch_icon"
android:label="@string/app_label" >
android:label="@string/app_label" android:theme="@style/Theme.TodoTxt">
<activity
android:name="com.dropbox.client2.android.AuthActivity"
android:configChanges="orientation|keyboard"
Expand Down Expand Up @@ -117,8 +117,7 @@ You should have received a copy of the GNU General Public License along with Tod
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity
android:name=".TodoTxtTouch"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.NoTitleBar" >
android:configChanges="keyboardHidden|orientation" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
Expand Down
Binary file added res/drawable-hdpi-v14/ic_menu_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi-v14/ic_menu_search.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi-v14/menu_filter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi-v14/menu_sync.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions res/drawable-hdpi-v14/title_background.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Copyright (c) 2009-2013 Todo.txt contributors (http://todotxt.com)
LICENSE:
Todo.txt Touch is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
later version.
Todo.txt Touch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2013 Todo.txt contributors (http://todotxt.com)
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="@android:color/holo_green_light"
android:endColor="@android:color/holo_green_dark"
android:angle="270" />
</shape>
70 changes: 70 additions & 0 deletions res/layout-v14/main.xml
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Copyright (c) 2009-2013 Todo.txt contributors (http://todotxt.com)
LICENSE:
Todo.txt Touch is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
later version.
Todo.txt Touch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2013 Todo.txt contributors (http://todotxt.com)
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/home_root" android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">



<LinearLayout style="@style/ActionBar" android:id="@+id/actionbar"
android:visibility="gone">

<ImageView android:id="@+id/actionbar_icon" android:contentDescription="@string/app_label"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_marginLeft="5dip"
android:layout_marginRight="5dip" android:src="@drawable/ic_actionbar_filter" />

<TextView android:id="@+id/filter_text" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="center_vertical"
android:textColor="@color/actionbar_label" />
<View style="@style/TitleBarSpring" />

<LinearLayout style="@style/ActionBarButtonSet"
android:scrollbars="horizontal">

<Button style="@style/ActionBarLeftButton" android:text="@string/refine"
android:onClick="onRefineClick" />
<ImageView style="@style/ActionBarSeparator" android:contentDescription="@string/separator" />
<ImageView style="@style/ActionBarSeparatorWhite" android:contentDescription="@string/separator" />
<Button style="@style/ActionBarRightButton" android:text="@string/clear"
android:onClick="onClearClick" />
</LinearLayout>
</LinearLayout>
<ImageView style="@style/HorizontalRule" android:contentDescription="@string/separator" />

<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="0dip"
android:background="@color/white" android:layout_weight="1">
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:fastScrollEnabled="true"
style="@style/TodoTxtTouchLight" />

<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:text="@string/main_no_items" style="@style/TodoTxtTouchLight"
android:gravity="center_vertical|center_horizontal" />
</LinearLayout>
</LinearLayout>
14 changes: 14 additions & 0 deletions res/layout-v14/main_progress.xml
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">

<ProgressBar
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_gravity="center"
style="?android:attr/indeterminateProgressStyle"/>
</FrameLayout>
45 changes: 45 additions & 0 deletions res/menu-v14/main.xml
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Copyright (c) 2009-2013 Todo.txt contributors (http://todotxt.com)
LICENSE:
Todo.txt Touch is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
later version.
Todo.txt Touch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2013 Todo.txt contributors (http://todotxt.com)
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:title="@string/addtask" android:id="@+id/add_new"
android:icon="@drawable/ic_menu_add"
android:showAsAction="always" />
<item android:title="@string/sync" android:id="@+id/sync"
android:icon="@drawable/menu_sync"
android:showAsAction="always"/>
<item android:title="@string/search" android:id="@+id/search"
android:icon="@android:drawable/ic_menu_search"
android:showAsAction="ifRoom"/>
<item android:title="@string/filter" android:id="@+id/filter"
android:icon="@drawable/menu_filter"
android:showAsAction="ifRoom"/>
<item android:title="@string/sort" android:id="@+id/sort"
android:icon="@android:drawable/ic_menu_sort_alphabetically" />
<item android:title="@string/preferences" android:id="@+id/preferences"
android:icon="@android:drawable/ic_menu_preferences" />
<item android:title="@string/share" android:id="@+id/share"
android:icon="@android:drawable/ic_menu_share"/>
</menu>
176 changes: 176 additions & 0 deletions res/values-v14/styles.xml
@@ -0,0 +1,176 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
This file is part of Todo.txt Touch, an Android app for managing your todo.txt file (http://todotxt.com).
Copyright (c) 2009-2013 Todo.txt contributors (http://todotxt.com)
LICENSE:
Todo.txt Touch is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any
later version.
Todo.txt Touch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with Todo.txt Touch. If not, see
<http://www.gnu.org/licenses/>.
@author Todo.txt contributors <todotxt@yahoogroups.com>
@license http://www.gnu.org/licenses/gpl.html
@copyright 2009-2013 Todo.txt contributors (http://todotxt.com)
-->

<resources>
<style name="Theme.TodoTxt" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>


<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#ff669900</item>
</style>

<style name="TitleBar">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">@dimen/title_height</item>
<item name="android:orientation">horizontal</item>
</style>

<style name="TitleBarAction">
<item name="android:layout_width">@dimen/title_height</item>
<item name="android:layout_height">fill_parent</item>
</style>

<style name="TitleBarProgressIndicator" parent="@android:style/Widget.ProgressBar.Small">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginLeft">20dip</item>
<item name="android:layout_marginRight">19dip</item>
<item name="android:layout_marginTop">20dip</item>
<item name="android:indeterminate">true</item>
</style>

<style name="TitleBarSeparator">
<item name="android:layout_width">1px</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_marginTop">10dip</item>
<item name="android:layout_marginBottom">0dip</item>
</style>
<style name="TitleBarLabel">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_marginRight">10dip</item>
<item name="android:gravity">bottom</item>
</style>

<style name="TitleBarLogo">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:clickable">true</item>
</style>

<style name="WidgetTitleBarLogo">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:clickable">true</item>
</style>

<style name="TitleBarSpring">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_weight">1</item>
</style>

<style name="SubTitleBar">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">@dimen/subtitle_height</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/subtitle_background</item>
<item name="android:visibility">gone</item>
</style>

<style name="ActionBar">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">@dimen/actionbar_height</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/actionbar_background</item>
<item name="android:visibility">gone</item>
</style>

<style name="ActionBarButtonSet">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:orientation">horizontal</item>
<item name="android:background">@drawable/actionbar_button_set</item>
<item name="android:layout_margin">3dip</item>
</style>

<style name="ActionBarSeparator">
<item name="android:layout_width">1px</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_marginTop">3dip</item>
<item name="android:layout_marginBottom">3dip</item>
<item name="android:background">@drawable/actionbar_separator</item>
</style>

<style name="ActionBarSeparatorWhite">
<item name="android:layout_width">1px</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_marginTop">3dip</item>
<item name="android:layout_marginBottom">3dip</item>
<item name="android:background">@drawable/actionbar_separator_white</item>
</style>

<style name="ActionBarButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:background">@drawable/actionbar_button</item>
<item name="android:paddingTop">2dip</item>
<item name="android:paddingBottom">2dip</item>
<item name="android:paddingLeft">7dip</item>
<item name="android:paddingRight">7dip</item>
<item name="android:layout_margin">3dip</item>
</style>

<style name="ActionBarLeftButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:background">@drawable/actionbar_left_button</item>
<item name="android:paddingTop">2dip</item>
<item name="android:paddingBottom">2dip</item>
<item name="android:paddingLeft">7dip</item>
<item name="android:paddingRight">7dip</item>
<item name="android:drawablePadding">4dip</item>
</style>

<style name="ActionBarCenterButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:background">@drawable/actionbar_center_button</item>
<item name="android:paddingTop">2dip</item>
<item name="android:paddingBottom">2dip</item>
<item name="android:paddingLeft">7dip</item>
<item name="android:paddingRight">7dip</item>
<item name="android:drawablePadding">4dip</item>
</style>

<style name="ActionBarRightButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:background">@drawable/actionbar_right_button</item>
<item name="android:paddingTop">2dip</item>
<item name="android:paddingBottom">2dip</item>
<item name="android:paddingLeft">7dip</item>
<item name="android:paddingRight">7dip</item>
<item name="android:drawablePadding">4dip</item>
</style>

<style name="HorizontalRule">
<item name="android:layout_height">1px</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:background">@drawable/horizontal_rule</item>
</style>
</resources>

0 comments on commit 57e30c6

Please sign in to comment.