forked from organicmaps/organicmaps
[android] Review fixes.
This commit is contained in:
parent
bf190d9b74
commit
e351589f67
3 changed files with 3 additions and 5 deletions
|
@ -60,5 +60,4 @@
|
|||
android:background="?nav_background"
|
||||
android:src="@drawable/ic_menu_search"
|
||||
android:tint="@null"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -124,14 +124,13 @@ class SearchWheel implements View.OnClickListener
|
|||
if (mIsExpanded)
|
||||
{
|
||||
animRes = R.animator.show_zoom_out_alpha;
|
||||
mIsExpanded = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
animRes = R.animator.show_zoom_in_alpha;
|
||||
mIsExpanded = true;
|
||||
UiUtils.show(mSearchLayout);
|
||||
}
|
||||
mIsExpanded = !mIsExpanded;
|
||||
final Animator animator = AnimatorInflater.loadAnimator(mSearchLayout.getContext(), animRes);
|
||||
animator.setTarget(mSearchLayout);
|
||||
animator.start();
|
||||
|
|
|
@ -159,7 +159,7 @@ class TabAdapter extends FragmentPagerAdapter
|
|||
{
|
||||
final Context context = tabs.getContext();
|
||||
final LayoutInflater inflater = LayoutInflater.from(context);
|
||||
boolean landscape = UiUtils.isLandscape(context);
|
||||
final boolean landscape = UiUtils.isLandscape(context);
|
||||
|
||||
int padding = UiUtils.dimen(landscape ? R.dimen.margin_half
|
||||
: R.dimen.margin_eighth);
|
||||
|
|
Loading…
Add table
Reference in a new issue