summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/org/lineageos/yahooweatherprovider/ImagePreference.java
blob: b42ff629b6a5c9e280e44ea3f0f9ca9a2ca12348 (plain)
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
package org.lineageos.yahooweatherprovider;

import android.content.Context;
import android.preference.Preference;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class ImagePreference extends Preference {
    public ImagePreference(Context context) {
        super(context);
    }

    public ImagePreference(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ImagePreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    protected View onCreateView(ViewGroup parent) {
        LayoutInflater li = (LayoutInflater)
                getContext().getSystemService( Context.LAYOUT_INFLATER_SERVICE );
        return li.inflate(R.layout.image_preference, parent, false);
    }
}