src\MyApplication\app\src\main\java\com\example\administrator\myapplication\adapter\NotebookAdapter.java

This commit is contained in:
zhangnaifu15 2018-03-29 09:16:47 +08:00
parent 358c4f5726
commit 7193d8c0bd
1 changed files with 1 additions and 5 deletions

View File

@ -1,9 +1,6 @@
package com.example.administrator.myapplication.adapter; package com.example.administrator.myapplication.adapter;
import android.app.Activity; import android.app.Activity;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.provider.CalendarContract;
import android.text.Html; import android.text.Html;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -91,7 +88,6 @@ public class NotebookAdapter extends BaseAdapter implements HTQDragGridView.Drag
datas.get(position).setIid(position); datas.get(position).setIid(position);
NotebookData data = datas.get(position); NotebookData data = datas.get(position);
ViewHolder holder = null;
if (v == null) { if (v == null) {
holder = new ViewHolder(); holder = new ViewHolder();
v = View.inflate(aty, R.layout.item_notebook, null); v = View.inflate(aty, R.layout.item_notebook, null);
@ -108,7 +104,7 @@ public class NotebookAdapter extends BaseAdapter implements HTQDragGridView.Drag
LayoutParams params = (LayoutParams) holder.content LayoutParams params = (LayoutParams) holder.content
.getLayoutParams(); .getLayoutParams();
params.width = width; params.width = width;
params.height = (params.width - height); params.height = params.width - height;
holder.content.setLayoutParams(params); holder.content.setLayoutParams(params);
holder.titleBar holder.titleBar