Fixed disappearing filter text

pull/14/head
Tim Su 16 years ago
parent 0d7d1e464b
commit e75e41643b

@ -64,7 +64,7 @@ public final class ExtendedFilterExposer extends BroadcastReceiver {
Criterion.not(TaskCriteria.isVisible(DateUtilities.now())))).
orderBy(Order.asc(Task.HIDE_UNTIL)),
hiddenValues);
hidden.listingIcon = ((BitmapDrawable)r.getDrawable(R.drawable.tango_calendar)).getBitmap();
hidden.listingIcon = ((BitmapDrawable)r.getDrawable(R.drawable.tango_clouds)).getBitmap();
Filter deleted = new Filter(ExtendedPlugin.IDENTIFIER,
"Deleted Tasks",

@ -9,7 +9,6 @@ import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.BitmapDrawable;
import android.util.Log;
import com.timsu.astrid.R;
import com.todoroo.andlib.sql.QueryTemplate;
@ -83,7 +82,6 @@ public class TagFilterExposer extends BroadcastReceiver {
"Untagged",
tagService.untaggedTemplate(),
null);
Log.e("sdlfk", untagged.sqlQuery);
untagged.listingIcon = ((BitmapDrawable)r.getDrawable(R.drawable.filter_untagged)).getBitmap();
FilterCategory tagsCategoryBySize = new FilterCategory(TagsPlugin.IDENTIFIER,
context.getString(R.string.tag_FEx_by_size), filtersBySize);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -2,21 +2,21 @@
<!-- See the file "LICENSE" for the full license governing this code. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_gradient">
android:layout_height="fill_parent">
<!-- Loading Filters label -->
<TextView android:id="@android:id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/FLA_loading"
android:background="@drawable/background_gradient"
style="@style/TextAppearance.TLA_NoItems"/>
<!-- List -->
<ExpandableListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@null"
android:background="@drawable/background_gradient"
android:scrollbars="vertical"
/>

@ -122,10 +122,10 @@ public class FilterAdapter extends BaseExpandableListAdapter {
image.setImageResource(R.drawable.expander_ic_maximized);
else
image.setImageResource(R.drawable.expander_ic_minimized);
FrameLayout.LayoutParams llp = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams expansionImageLayout = new FrameLayout.LayoutParams(
32, 32);
llp.gravity = Gravity.CENTER_VERTICAL;
image.setLayoutParams(llp);
expansionImageLayout.gravity = Gravity.CENTER_VERTICAL;
image.setLayoutParams(expansionImageLayout);
image.setScaleType(ScaleType.FIT_CENTER);
layout.addView(image);
@ -136,7 +136,10 @@ public class FilterAdapter extends BaseExpandableListAdapter {
View view = augmentView(textView, filter);
view.setPadding(60, 2, 0, 2);
view.setLayoutParams(llp);
FrameLayout.LayoutParams rowLayout = new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
rowLayout.gravity = Gravity.CENTER_VERTICAL;
view.setLayoutParams(rowLayout);
layout.addView(view);

Loading…
Cancel
Save