From 4e6fc4fcdbcc3c75be13b3f8b80c24e4648fe354 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Thu, 19 Apr 2018 23:03:13 +0200 Subject: Added details view, improved observations list --- app/src/main/java/org/marcinzelent/liberavem/MainActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/src/main/java/org/marcinzelent/liberavem/MainActivity.java') diff --git a/app/src/main/java/org/marcinzelent/liberavem/MainActivity.java b/app/src/main/java/org/marcinzelent/liberavem/MainActivity.java index dc261c5..b1c73b4 100644 --- a/app/src/main/java/org/marcinzelent/liberavem/MainActivity.java +++ b/app/src/main/java/org/marcinzelent/liberavem/MainActivity.java @@ -17,6 +17,14 @@ import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; +import android.widget.Toast; + +import com.android.volley.Request; +import com.android.volley.Response; +import com.android.volley.VolleyError; +import com.android.volley.toolbox.StringRequest; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener, @@ -51,6 +59,7 @@ public class MainActivity extends AppCompatActivity toggle.syncState(); NavigationView navigationView = findViewById(R.id.nav_view); + navigationView.getMenu().getItem(0).setChecked(true); navigationView.setNavigationItemSelectedListener(this); } -- cgit v1.2.3