插件 inter application

来源:互联网 发布:淘宝可以解绑支付宝 编辑:程序博客网 时间:2024/06/16 15:11

MyListView

public class MyListView extends ListView {
public MyListView(Context context) {
super(context);
}

public MyListView(Context context, AttributeSet attrs) {    super(context, attrs);}public MyListView(Context context, AttributeSet attrs, int defStyleAttr) {    super(context, attrs, defStyleAttr);}/** * 重新计算高度 * @param widthMeasureSpec * @param heightMeasureSpec */@Overrideprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {    int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);    super.onMeasure(widthMeasureSpec, expandSpec);}

/* @Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);
}

@Overrideprotected void onDraw(Canvas canvas) {    super.onDraw(canvas);}*/

}

BaseApplication

public class BaseApplication extends
Application {

@Overridepublic void onCreate() {    super.onCreate();    //初始化    ImageLoaderUtil.init(this);}

}

JsonCallBack

public interface JsonCallBack {

public void getJsonString(String json);

}

item_image_layout

原创粉丝点击