Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. Button sortTitle = (Button)this.findViewById(R.id.btn_sortTitle);
  2. Button sortRating = (Button)this.findViewById(R.id.btn_sortRating);
  3. Button sortDownloads = (Button)this.findViewById(R.id.btn_sortDownloads);
  4.        
  5. sortTitle.setOnClickListener(new OnClickListener() {
  6.     public void onClick(View v) {
  7.         //Make sure it isn't the same thing that was just sorted
  8.         if (lastSort != "title") {
  9.             loadListView(system, sort);
  10.             lastSort = "title";
  11.         }
  12.     }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement