|
@@ -10,6 +10,7 @@ import android.util.Log;
|
|
|
import android.view.LayoutInflater;
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.MotionEvent;
|
|
import android.view.MotionEvent;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
|
|
+import android.widget.AbsListView;
|
|
|
import android.widget.AdapterView;
|
|
import android.widget.AdapterView;
|
|
|
import android.widget.GridView;
|
|
import android.widget.GridView;
|
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
@@ -132,6 +133,21 @@ public class HomeHeaderView extends RelativeLayout {
|
|
|
|
|
|
|
|
function_panel.setAdapter(new FunctionPanelAdapter(getContext(),function_json));
|
|
function_panel.setAdapter(new FunctionPanelAdapter(getContext(),function_json));
|
|
|
|
|
|
|
|
|
|
+// function_panel.setOnScrollListener(new AbsListView.OnScrollListener()
|
|
|
|
|
+// {
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public void onScrollStateChanged(AbsListView view, int scrollState)
|
|
|
|
|
+// {
|
|
|
|
|
+// Log.e("DEBUG", "onScrollStateChanged: FUNCTION PANEL!!!");
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)
|
|
|
|
|
+// {
|
|
|
|
|
+// Log.e("DEBUG", "onScroll: FUNCTION PANEL!!!");
|
|
|
|
|
+// }
|
|
|
|
|
+// });
|
|
|
|
|
+// function_panel.setscroll
|
|
|
function_panel.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
function_panel.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|