forked from JakeWharton/ActionBarSherlock
-
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.
Merge pull request JakeWharton#970 from alexander-mironov/dev
Test case for issue JakeWharton#969
- Loading branch information
Showing
3 changed files
with
43 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
10 changes: 10 additions & 0 deletions
10
actionbarsherlock-samples/known-bugs/res/values/issue969.xml
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Theme.Issue969" parent="@style/Theme.Sherlock"> | ||
<item name="actionMenuTextAppearance">@style/MyMenuTextAppearance</item> | ||
<item name="android:actionMenuTextAppearance">@style/MyMenuTextAppearance</item> | ||
</style> | ||
<style name="MyMenuTextAppearance" parent="TextAppearance.Sherlock.Widget.ActionBar.Menu"> | ||
<item name="android:textAllCaps">false</item> | ||
</style> | ||
</resources> |
26 changes: 26 additions & 0 deletions
26
...onbarsherlock-samples/known-bugs/src/com/actionbarsherlock/sample/knownbugs/Issue969.java
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,26 @@ | ||
package com.actionbarsherlock.sample.knownbugs; | ||
|
||
import android.os.Bundle; | ||
import android.widget.TextView; | ||
import com.actionbarsherlock.app.SherlockActivity; | ||
import com.actionbarsherlock.view.Menu; | ||
|
||
import static com.actionbarsherlock.view.MenuItem.SHOW_AS_ACTION_ALWAYS; | ||
import static com.actionbarsherlock.view.MenuItem.SHOW_AS_ACTION_WITH_TEXT; | ||
|
||
public class Issue969 extends SherlockActivity { | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
TextView tv = new TextView(this); | ||
tv.setText("TextAllCaps value is ignored on pre-ICS."); | ||
setContentView(tv); | ||
} | ||
|
||
@Override | ||
public boolean onCreateOptionsMenu(Menu menu) { | ||
menu.add("Test").setShowAsAction(SHOW_AS_ACTION_ALWAYS | SHOW_AS_ACTION_WITH_TEXT); | ||
return true; | ||
} | ||
} |