Resources.java 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
package android.content.res;

import android.graphics.drawable.Drawable;
import android.util.DisplayMetrics;

/**
 * Created by qiaopu on 2018/5/18.
 */
public class Resources {
    
    public Resources(AssetManager assets, DisplayMetrics metrics, Configuration config) {
        throw new RuntimeException("Stub!");
    }
    
    public final AssetManager getAssets() {
        throw new RuntimeException("Stub!");
    }
    
    public Configuration getConfiguration() {
        throw new RuntimeException("Stub!");
    }
    
    public DisplayMetrics getDisplayMetrics() {
        throw new RuntimeException("Stub!");
    }
    
    public Drawable getDrawable(int id) throws NotFoundException {
        throw new RuntimeException("Stub!");
    }
    
    public CharSequence getText(int id) throws NotFoundException {
        throw new RuntimeException("Stub!");
    }
    
    public XmlResourceParser getXml(int id) throws NotFoundException {
        throw new RuntimeException("Stub!");
    }
    
    public ResourcesImpl getImpl() {
        throw new RuntimeException("Stub!");
    }
    
    public final Theme newTheme() {
        throw new RuntimeException("Stub!");
    }
    
    public final class Theme {
    
        public void applyStyle(int resId, boolean force) {
            throw new RuntimeException("Stub!");
        }
    
        public TypedArray obtainStyledAttributes(int[] attrs) {
            throw new RuntimeException("Stub!");
        }
    
        public void setTo(Theme other) {
            throw new RuntimeException("Stub!");
        }
        
    }
    
    public static class NotFoundException extends RuntimeException {
    
    }
    
}