Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
94f40c8
Implement all methods from the native ActionBar API which deal with t…
JakeWharton May 14, 2011
0971079
Fix tab/spaces indentation.
JakeWharton May 14, 2011
cf34152
Add 'TODO' prefixes to custom view-related stuff so that they are hig…
JakeWharton May 14, 2011
e0ebf1b
Add accidentally-removed `clearHomeAction()` method which is a deprec…
JakeWharton May 14, 2011
6a0cfe8
Damn tabs!
JakeWharton May 14, 2011
58d2a47
Alphabetize and organize methods.
JakeWharton May 14, 2011
a8bc1d4
Add navigation mode handling (currently only standard and list). Upda…
JakeWharton May 14, 2011
efc20b7
Tabs to spaces, yet again.
JakeWharton May 14, 2011
f4c8758
Clean up layout of example buttons.
JakeWharton May 14, 2011
2387d50
Fix alignment of list indicator when the progress bar is displayed.
JakeWharton May 14, 2011
b34011a
Logo should be an ImageButton.
JakeWharton May 15, 2011
450993e
The 'background_home' RelativeLayout should only contain the logo and…
JakeWharton May 15, 2011
2d3d007
Add left padding the logo so it is not directly against the left of t…
JakeWharton May 15, 2011
5f20fc8
Add logo and home action item. Buttons now enable/disable when their …
JakeWharton May 15, 2011
725858f
Only show list navigation popup if there is an adapter representing t…
JakeWharton May 15, 2011
89698ce
Parse Build.VERSION.SDK string since Build.VERSION.SDK_INT only becam…
JakeWharton May 15, 2011
6c42af4
Add missing JavaDocs.
JakeWharton May 15, 2011
e92a582
Flop-flip DocsJava for standard and list navigation.
JakeWharton May 15, 2011
3b2ba5c
Add custom view support.
JakeWharton May 15, 2011
39e0f0b
Add subtitle support.
JakeWharton May 15, 2011
1055446
Remove unneccessary blank space in indicator images.
JakeWharton May 15, 2011
88031f7
Fix padding of logo.
JakeWharton May 15, 2011
1211cf2
Move logo loading to its own class so it properly works on pre-Ginger…
JakeWharton May 15, 2011
11a3548
Roll our own ActionBar-themed dropdown for list navigation.
JakeWharton May 15, 2011
e554e25
Convert example button groups to enable/disable themselves based off …
JakeWharton May 15, 2011
14b21d2
Make sure getSubtitle() returns null when in standard navigaton with …
JakeWharton May 15, 2011
cfb6be6
Tiny JavaDoc and logic tweaks.
JakeWharton May 15, 2011
0994783
Fix return value of isShowing(). Add show/hide toggles to ActionBar d…
JakeWharton May 15, 2011
2c045e3
Fix display logic of title/subtitle and custom view buttons when the …
JakeWharton May 15, 2011
64bb50f
Fix regression of setSubtitle() not calling reloadDisplay() which wil…
JakeWharton May 15, 2011
69d0fac
Clear all existing custom views when adding a View object.
JakeWharton May 16, 2011
5e3d1ba
Fix loading the activity label from the manifest file as the title.
JakeWharton May 16, 2011
26c0462
Initial support for NAVIGATION_MODE_TABS.
johannilsson May 16, 2011
a5c7b33
Add remaining tab methods.
JakeWharton May 17, 2011
8ed1ec5
Add tabs to demo activity.
JakeWharton May 17, 2011
5672c56
Add scrolling text to tabs.
JakeWharton May 17, 2011
ad59059
Removed SearchAction that was never used.
johannilsson May 17, 2011
d5bb112
Fix that hides title, subtitle and custom view when in tab mode.
johannilsson May 17, 2011
bb30211
Fix that allows tabs to focus and change background when tapped and n…
johannilsson May 17, 2011
0b3d972
Convert Actions to be MenuItem implementations and the ActionBar to b…
JakeWharton May 17, 2011
b675cf8
Merge remote-tracking branch 'upstream/mimic-native-api' into mimic-n…
JakeWharton May 17, 2011
95bfd4c
Marshal visibility directly to the view. Make sure the is/setChecked(…
JakeWharton May 17, 2011
a0bf371
Use our Action class to differentiate from MenuItem and add the abili…
JakeWharton May 17, 2011
0e12560
Toggle Action isChecked() on click to allow updating the icon/title/v…
JakeWharton May 17, 2011
86fafd6
Add icon and custom views, along with the remainder of methods from t…
JakeWharton May 18, 2011
6abc8c3
Revert implementing the Menu interface directly and use the old xxxAc…
JakeWharton May 18, 2011
4fd4f4c
A couple missing JavaDocs.
JakeWharton May 18, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add navigation mode handling (currently only standard and list). Upda…
…te example application to demonstrate all the new features. Clean up some code from previous commits to conform to existing style of library.
  • Loading branch information
JakeWharton committed May 14, 2011
commit a8bc1d48d87bd03cafa9131dcc7e2359584902ac
Binary file added actionbar/res/drawable/actionbar_list_indicator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 33 additions & 2 deletions actionbar/res/layout/actionbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,28 @@
/>
<com.markupartist.android.widget.ScrollingTextView
android:id="@+id/actionbar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@id/actionbar_progress"
android:gravity="center_vertical"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:textSize="16dip"
android:textStyle="bold"
android:textColor="@color/actionbar_title"
android:lines="1"
android:scrollHorizontally="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
/>
<Button
android:id="@+id/actionbar_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@id/actionbar_progress"
android:gravity="center_vertical"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:textSize="16dip"
Expand All @@ -110,6 +128,19 @@
android:scrollHorizontally="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:background="@drawable/actionbar_btn"
android:visibility="gone"
/>
<ImageView
android:id="@+id/actionbar_list_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@id/actionbar_progress"
android:background="@drawable/actionbar_list_indicator"
android:padding="0dip"
android:visibility="gone"
/>
</RelativeLayout>
</RelativeLayout>
Expand Down
Loading