Center the expander in its cut-out
It seems to look a little nicer
This commit is contained in:
parent
7f0566eb8f
commit
c3ce56fc0c
@ -267,7 +267,7 @@ public class MediaAdapter extends CursorAdapter implements FilterQueryProvider {
|
||||
|
||||
if (mExpandable) {
|
||||
Bitmap expander = mExpander;
|
||||
width -= padding * 3 + expander.getWidth();
|
||||
width -= padding * 4 + expander.getWidth();
|
||||
|
||||
if (mDashEffect == null)
|
||||
mDashEffect = new DashPathEffect(new float[] { 3, 3 }, 0);
|
||||
@ -358,8 +358,8 @@ public class MediaAdapter extends CursorAdapter implements FilterQueryProvider {
|
||||
public boolean onTouchEvent(MotionEvent event)
|
||||
{
|
||||
if (mExpandable)
|
||||
mExpanderPressed = event.getX() > getWidth() - mExpander.getWidth() - 3 * mTextSize / 2;
|
||||
mExpanderPressed = event.getX() > getWidth() - mExpander.getWidth() - 2 * mTextSize;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user