This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean loading = true; | |
int pastVisiblesItems, visibleItemCount, totalItemCount; | |
mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() | |
{ | |
@Override | |
public void onScrolled(RecyclerView recyclerView, int dx, int dy) | |
{ | |
if(dy > 0) //check for scroll down | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainFragment extends Fragment { | |
private DrawerLayout mDrawer; | |
private Toolbar mToolbar; | |
private ActionBarDrawerToggle mDrawerToggle; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setHasOptionsMenu(true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `cities`; | |
CREATE TABLE `cities` ( | |
`id` int(2) NOT NULL, | |
`title` varchar(255) NOT NULL, | |
`lat` double(11,8) DEFAULT NULL, | |
`lng` double(11,8) DEFAULT NULL, | |
`northeast_lat` double(11,8) DEFAULT NULL, | |
`northeast_lng` double(11,8) DEFAULT NULL, | |
`southwest_lat` double(11,8) DEFAULT NULL, | |
`southwest_lng` double(11,8) DEFAULT NULL, |