Remove choose activity type dialog beore starting a new one. Remove clear button next to text edit for api level < 11

This commit is contained in:
Jimmy Shih
2013-11-22 11:43:49 -08:00
parent 74713239fb
commit 9442416844
5 changed files with 40 additions and 9 deletions
@@ -178,6 +178,11 @@ public class Api11Adapter extends Api10Adapter {
return false;
}
@Override
public boolean showEditTextClearButton() {
return true;
}
@Override
public void setTabBackground(TabWidget tabWidget) {
for (int i = 0; i < tabWidget.getChildCount(); i++) {
@@ -144,6 +144,11 @@ public class Api8Adapter implements ApiAdapter {
return true;
}
@Override
public boolean showEditTextClearButton() {
return false;
}
@Override
public void setTabBackground(TabWidget tabWidget) {
// Do nothing
@@ -176,8 +176,17 @@ public interface ApiAdapter {
*/
public boolean isSpinnerBackgroundLight();
/**
* True to display a clear button on the right of the edit text.
* <p>
* Due to changes in API level 11.
*/
public boolean showEditTextClearButton();
/**
* Sets the tab background.
* <p>
* Due to changes in API level 11.
*
* @param tabWidget the tab widget
*/