blob: bac4822cbaa3c6a509ba79c5862a35d906a3f55d (
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.cyanogenmod.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);
}
}
|