Code example for Resources

Methods: getDisplayMetricsupdateConfiguration

        Configuration config = new Configuration();
        config.locale = locale;
        Resources resources = context.getResources();
        resources.updateConfiguration(config, resources.getDisplayMetrics());
     * Base activities need to implement this interface. 
     * <p>The implementing class simply has to call through to the implementation of these methods 
     * in {@link K9ActivityCommon}.</p> 
    public interface K9ActivityMagic { 
        void setupGestureDetector(OnSwipeGestureListener listener);
Contextual code suggestions in your IDE  Get Codota for Java