forked from todoroo/astrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored quick add bar from Task List Fragment out into QuickAddBar…
…. Seems like it works... like a boss!
- Loading branch information
Tim Su
committed
Feb 17, 2012
1 parent
e8c06cd
commit 3d02188
Showing
10 changed files
with
525 additions
and
420 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
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
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,83 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- See the file "LICENSE" for the full license governing this code. --> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<LinearLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:minHeight="50dip" | ||
android:padding="3dip" | ||
android:paddingBottom="0dip" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal"> | ||
|
||
<!-- Voice Add Button --> | ||
<ImageButton android:id="@+id/voiceAddButton" | ||
android:layout_width="39dip" | ||
android:layout_height="39dip" | ||
android:layout_gravity="top" | ||
android:layout_marginLeft="5dip" | ||
android:layout_marginRight="3dip" | ||
android:paddingLeft="10dip" | ||
android:paddingRight="10dip" | ||
android:layout_weight="1" | ||
android:visibility="gone" | ||
android:background="@android:color/transparent" | ||
android:src="?attr/asMicButtonImg" | ||
android:scaleType="center"/> | ||
|
||
<!-- Quick Add Task --> | ||
<EditText android:id="@+id/quickAddText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="39dip" | ||
android:layout_marginRight="8dip" | ||
android:layout_marginLeft="5dip" | ||
android:layout_marginBottom="2dip" | ||
android:layout_weight="100" | ||
android:paddingLeft="5dip" | ||
android:background="@drawable/edit_title_background" | ||
android:hint="@string/TLA_quick_add_hint" | ||
android:textSize="16sp" | ||
android:autoText="true" | ||
android:textColor="@android:color/black" | ||
android:capitalize="sentences"/> | ||
|
||
<!-- Extended Add Button --> | ||
<ImageButton android:id="@+id/quickAddButton" | ||
android:layout_width="39dip" | ||
android:layout_height="39dip" | ||
android:layout_gravity="top" | ||
android:layout_marginRight="5dip" | ||
android:layout_weight="1" | ||
android:background="@android:color/transparent" | ||
android:src="?attr/asAddButtonImg" | ||
android:scaleType="center"/> | ||
|
||
</LinearLayout> | ||
|
||
|
||
|
||
<LinearLayout | ||
android:id="@+id/taskListQuickaddControlsContainer" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:layout_marginBottom="5dip" | ||
android:visibility="gone"> | ||
|
||
<LinearLayout | ||
android:id="@+id/taskListQuickaddControls" | ||
android:layout_width="fill_parent" | ||
android:layout_height="50dip" | ||
android:orientation="horizontal"> | ||
|
||
<View | ||
android:layout_height="fill_parent" | ||
android:layout_width="1px" | ||
android:background="?attr/asSeparatorBackground"/> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</merge> |
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
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
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
Oops, something went wrong.