|
|
@ -3,6 +3,8 @@ package com.todoroo.astrid.tags.reusable;
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
import android.widget.ListView;
|
|
|
|
import android.widget.ListView;
|
|
|
|
|
|
|
|
|
|
|
|
import com.todoroo.astrid.adapter.FilterAdapter;
|
|
|
|
import com.todoroo.astrid.adapter.FilterAdapter;
|
|
|
@ -34,4 +36,23 @@ public class FeaturedListFilterAdapter extends FilterAdapter {
|
|
|
|
public void unregisterRecevier() {
|
|
|
|
public void unregisterRecevier() {
|
|
|
|
activity.unregisterReceiver(filterReceiver);
|
|
|
|
activity.unregisterReceiver(filterReceiver);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public View getView(int position, View convertView, ViewGroup parent) {
|
|
|
|
|
|
|
|
View v = super.getView(position, convertView, parent);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ViewHolder viewHolder = (ViewHolder) v.getTag();
|
|
|
|
|
|
|
|
viewHolder.size.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
viewHolder.name.setSingleLine(false);
|
|
|
|
|
|
|
|
viewHolder.name.setLines(2);
|
|
|
|
|
|
|
|
viewHolder.name.setMaxLines(2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int right = (int) (metrics.density * 10);
|
|
|
|
|
|
|
|
int top = (int) (metrics.density * 2);
|
|
|
|
|
|
|
|
viewHolder.name.setPadding(0, top, right, 0);
|
|
|
|
|
|
|
|
viewHolder.name.setTextSize(14);
|
|
|
|
|
|
|
|
viewHolder.name.setLineSpacing(0.0f, 1.2f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return v;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|