diff --git a/app/src/main/java/info/nerull7/mysqlbrowser/EntriesFragment.java b/app/src/main/java/info/nerull7/mysqlbrowser/EntriesFragment.java index fa41427..53f7e40 100644 --- a/app/src/main/java/info/nerull7/mysqlbrowser/EntriesFragment.java +++ b/app/src/main/java/info/nerull7/mysqlbrowser/EntriesFragment.java @@ -28,6 +28,8 @@ import info.nerull7.mysqlbrowser.db.AsyncDatabaseConnector; /** * Created by nerull7 on 15.07.14. + * + * Fragment for showing elements */ public class EntriesFragment extends Fragment implements AsyncDatabaseConnector.MatrixReturnListener, AsyncDatabaseConnector.ListReturnListener, AsyncDatabaseConnector.IntegerReturnListener, View.OnClickListener { private static final int HEADER_PADDING_TOP = 15; @@ -42,10 +44,8 @@ public class EntriesFragment extends Fragment implements AsyncDatabaseConnector. private TableLayout entriesTable; private ScrollView entriesScrollView; private FrameLayout headerFrame; - private RelativeLayout rootView; private HorizontalScrollView horizontalScrollView; private TableRow.LayoutParams layoutParams; - private TableRow headerRow; private String databaseName; private String tableName; @@ -93,8 +93,6 @@ public class EntriesFragment extends Fragment implements AsyncDatabaseConnector. dummyView = rootView.findViewById(R.id.dummyView); horizontalScrollView = (HorizontalScrollView) rootView.findViewById(R.id.horizontalScrollView); - this.rootView = (RelativeLayout) rootView; - fakeScrollView.setOnTouchEventListener(new CustomScrollView.OnTouchEventListener() { @Override public boolean onTouchEvent(MotionEvent ev) { @@ -225,12 +223,13 @@ public class EntriesFragment extends Fragment implements AsyncDatabaseConnector. @Override public void onListReturn(List fieldList) { // First we need header + TableRow headerRow; headerRow = new TableRow(getActivity()); headerRow.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); rowCount = fieldList.size(); - for(int i =0;i