[AND] Removed dropdown icon.

This commit is contained in:
Dmitry Kunin 2013-10-25 17:49:00 +03:00 committed by Alex Zolotarev
parent cd3b2d0268
commit cbbdac4c8d
2 changed files with 3 additions and 27 deletions

View file

@ -42,23 +42,12 @@
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/country_menu"
android:layout_toRightOf="@id/flagContainer"
android:maxLines="2"
android:textAppearance="@style/Holo.TextAppearance.Large.Light" />
<ImageView
android:id="@+id/country_menu"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/list_selector_holo_light"
android:paddingLeft="@dimen/dp_x_3"
android:layout_toRightOf="@id/flagContainer"
android:maxLines="2"
android:paddingRight="@dimen/dp_x_3"
android:scaleType="center"
android:src="@drawable/ic_country_menu" />
android:textAppearance="@style/Holo.TextAppearance.Large.Light" />
</RelativeLayout>
<ProgressBar

View file

@ -372,14 +372,12 @@ class DownloadAdapter extends BaseAdapter
public ImageView mFlag = null;
public ImageView mGuide = null;
public ProgressBar mProgress = null;
public View mCountryMenu = null;
void initFromView(View v)
{
mName = (TextView) v.findViewById(R.id.title);
mFlag = (ImageView) v.findViewById(R.id.country_flag);
mGuide = (ImageView) v.findViewById(R.id.guide_available);
mCountryMenu = v.findViewById(R.id.country_menu);
mProgress = (ProgressBar) v.findViewById(R.id.download_progress);
}
}
@ -454,17 +452,6 @@ class DownloadAdapter extends BaseAdapter
{
populateForGuide(position, holder);
setUpProgress(holder, type, position);
// set country menu click listener
final View fView = holder.mCountryMenu;
holder.mCountryMenu.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
onCountryMenuClicked(position, getItem(position), fView);
}
});
}
}