Changing dimensions ActionBarSherlock

ActionBarSherlock

A little digging and figured an easy way ( and I suppose the right way) to change some of the default attributes of ActionBarSherlocks menu/tab bar.
If you look into the source of the library of ABS, you can see folders of “values”, “values-large”, etc.. Copying in the appropriate abs_dimens.xml file into my applications “values” folder seemed to do the trick. And in my customized abs_dimens.xml file I could change some key attributes. Nice that the ABS exposes these defaults out…

Nice bit of code..for determine what are the actual dims, Screen Size and Density

 

  //Determine screen size
    if ((getResources().getConfiguration().screenLayout &      
Configuration.SCREENLAYOUT_SIZE_MASK) == 
Configuration.SCREENLAYOUT_SIZE_LARGE) 
{     
        Toast.makeText(this, "Large screen",
Toast.LENGTH_LONG).show();

    }
    else if ((getResources().getConfiguration().screenLayout &      
Configuration.SCREENLAYOUT_SIZE_MASK) == 
Configuration.SCREENLAYOUT_SIZE_NORMAL) {     
        Toast.makeText(this, 
"Normal sized screen" , Toast.LENGTH_LONG).show();

    } 
    else if ((getResources().getConfiguration().screenLayout &      
Configuration.SCREENLAYOUT_SIZE_MASK) 
== Configuration.SCREENLAYOUT_SIZE_SMALL) {     
        Toast.makeText(this, 
"Small sized screen" , Toast.LENGTH_LONG).show();
    }
    else {
        Toast.makeText(this, 
"Screen size is neither large, normal or small" , 
Toast.LENGTH_LONG).show();
    }

    //Determine density
    DisplayMetrics metrics = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(metrics);
        int density = metrics.densityDpi;

        if (density==DisplayMetrics.DENSITY_HIGH) {
            Toast.makeText(this, "DENSITY_HIGH... 
Density is " + String.valueOf(density),  Toast.LENGTH_LONG).show();
        }
        else if (density==DisplayMetrics.DENSITY_MEDIUM) {
            Toast.makeText(this, "DENSITY_MEDIUM... Density is "
 + String.valueOf(density),  Toast.LENGTH_LONG).show();
        }
        else if (density==DisplayMetrics.DENSITY_LOW) {
            Toast.makeText(this, "DENSITY_LOW... Density is "
 + String.valueOf(density),  Toast.LENGTH_LONG).show();
        }
        else {
            Toast.makeText(this, "Density is neither HIGH, MEDIUM OR LOW.  
Density is " + String.valueOf(density),  Toast.LENGTH_LONG).show();
        }