Unused classes deleted
This commit is contained in:
parent
af569a00cc
commit
1aa945dd09
2 changed files with 0 additions and 154 deletions
|
@ -1,109 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<net.osmand.plus.dashboard.NotifyingScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:id="@+id/main_scroll"
|
|
||||||
android:background="?attr/expandable_list_background">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/mapFragment"
|
|
||||||
android:layout_marginRight="-3dp"
|
|
||||||
android:layout_marginLeft="-3dp"
|
|
||||||
android:layout_marginTop="-3dp"
|
|
||||||
android:name="net.osmand.plus.dashboard.DashMapFragment"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<LinearLayout android:id="@+id/fragments"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:layout_marginTop="-40dp"
|
|
||||||
android:padding="@dimen/dashPadding" >
|
|
||||||
|
|
||||||
<LinearLayout android:id="@+id/content"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<!--<fragment-->
|
|
||||||
<!--xmlns:android="http://schemas.android.com/apk/res/android"-->
|
|
||||||
<!--android:id="@+id/ParkingFragment"-->
|
|
||||||
<!--android:name="net.osmand.plus.dashboard.DashParkingFragment"-->
|
|
||||||
<!--android:layout_marginTop="@dimen/dashCardMargin"-->
|
|
||||||
<!--android:layout_width="match_parent"-->
|
|
||||||
<!--android:layout_height="wrap_content"/>-->
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/SearchFragment"
|
|
||||||
android:name="net.osmand.plus.dashboard.DashSearchFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/RecentsFragment"
|
|
||||||
android:name="net.osmand.plus.dashboard.DashRecentsFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/FavoritesFragment"
|
|
||||||
android:name="net.osmand.plus.dashboard.DashFavoritesFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/NotesFragment"
|
|
||||||
android:name="net.osmand.plus.audionotes.DashAudioVideoNotesFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:id="@+id/TracksFragment"
|
|
||||||
android:name="net.osmand.plus.monitoring.DashTrackFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<!--<fragment-->
|
|
||||||
<!--xmlns:android="http://schemas.android.com/apk/res/android"-->
|
|
||||||
<!--android:name="net.osmand.plus.dashboard.DashDownloadMapsFragment"-->
|
|
||||||
<!--android:layout_marginTop="@dimen/dashCardMargin"-->
|
|
||||||
<!--android:layout_width="match_parent"-->
|
|
||||||
<!--android:layout_height="wrap_content"/>-->
|
|
||||||
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/UpdateFragment"
|
|
||||||
android:name="net.osmand.plus.dashboard.DashUpdatesFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<fragment
|
|
||||||
android:id="@+id/PluginFragment"
|
|
||||||
android:name="net.osmand.plus.dashboard.DashPluginsFragment"
|
|
||||||
android:layout_marginTop="@dimen/dashCardMargin"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<!--To make sure that floating button is always visible-->
|
|
||||||
<View android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/dashFABMargin"
|
|
||||||
android:orientation="vertical"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</net.osmand.plus.dashboard.NotifyingScrollView>
|
|
|
@ -1,45 +0,0 @@
|
||||||
package net.osmand.plus.dashboard;
|
|
||||||
|
|
||||||
import android.content.Context;
|
|
||||||
import android.util.AttributeSet;
|
|
||||||
import android.widget.ScrollView;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Cyril Mottier
|
|
||||||
*/
|
|
||||||
public class NotifyingScrollView extends ScrollView {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Cyril Mottier
|
|
||||||
*/
|
|
||||||
public interface OnScrollChangedListener {
|
|
||||||
void onScrollChanged(ScrollView who, int l, int t, int oldl, int oldt);
|
|
||||||
}
|
|
||||||
|
|
||||||
private OnScrollChangedListener mOnScrollChangedListener;
|
|
||||||
|
|
||||||
public NotifyingScrollView(Context context) {
|
|
||||||
super(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
public NotifyingScrollView(Context context, AttributeSet attrs) {
|
|
||||||
super(context, attrs);
|
|
||||||
}
|
|
||||||
|
|
||||||
public NotifyingScrollView(Context context, AttributeSet attrs, int defStyle) {
|
|
||||||
super(context, attrs, defStyle);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
|
|
||||||
super.onScrollChanged(l, t, oldl, oldt);
|
|
||||||
if (mOnScrollChangedListener != null) {
|
|
||||||
mOnScrollChangedListener.onScrollChanged(this, l, t, oldl, oldt);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOnScrollChangedListener(OnScrollChangedListener listener) {
|
|
||||||
mOnScrollChangedListener = listener;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in a new issue