Small changes
This commit is contained in:
parent
21e9e6b7cf
commit
2234697085
2 changed files with 15 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent" >
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/map_menu_button"
|
android:id="@+id/map_menu_button"
|
||||||
|
|
|
@ -33,8 +33,6 @@ import android.util.DisplayMetrics;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.view.ViewGroup.LayoutParams;
|
|
||||||
import android.view.ViewGroup.MarginLayoutParams;
|
|
||||||
import android.view.animation.Animation;
|
import android.view.animation.Animation;
|
||||||
import android.view.animation.Animation.AnimationListener;
|
import android.view.animation.Animation.AnimationListener;
|
||||||
import android.view.animation.TranslateAnimation;
|
import android.view.animation.TranslateAnimation;
|
||||||
|
@ -101,8 +99,9 @@ public class DashboardOnMap {
|
||||||
scrollView = ((NotifyingScrollView) dashboardView.findViewById(R.id.main_scroll));
|
scrollView = ((NotifyingScrollView) dashboardView.findViewById(R.id.main_scroll));
|
||||||
listViewLayout = dashboardView.findViewById(R.id.dash_list_view_layout);
|
listViewLayout = dashboardView.findViewById(R.id.dash_list_view_layout);
|
||||||
listView = (ListView) dashboardView.findViewById(R.id.dash_list_view);
|
listView = (ListView) dashboardView.findViewById(R.id.dash_list_view);
|
||||||
|
// dashboardView.setOnClickListener(listener);
|
||||||
dashboardView.findViewById(R.id.animateContent).setOnClickListener(listener);
|
dashboardView.findViewById(R.id.animateContent).setOnClickListener(listener);
|
||||||
dashboardView.setOnClickListener(listener);
|
dashboardView.findViewById(R.id.map_part_dashboard).setOnClickListener(listener);
|
||||||
|
|
||||||
actionButton = new ActionButton(mapActivity);
|
actionButton = new ActionButton(mapActivity);
|
||||||
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||||
|
@ -322,13 +321,20 @@ public class DashboardOnMap {
|
||||||
mapActivity.startActivity(intent);
|
mapActivity.startActivity(intent);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
scheduleDownloadButtonCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void scheduleDownloadButtonCheck() {
|
||||||
|
mapActivity.getMyApplication().runInUIThread(new Runnable() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
if(isVisible()) {
|
||||||
|
updateDownloadBtn();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, 4000);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void navigationAction() {
|
public void navigationAction() {
|
||||||
|
|
Loading…
Reference in a new issue