import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
+import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
}
}
+ public void nav_exit_clicked(View view) {
+ Log.w("mobileledger", "exiting");
+ finish();
+ }
+
@Override
public void onBackPressed() {
DrawerLayout drawer = findViewById(R.id.drawer_layout);
android:text="@string/action_settings" />
<TextView
- android:id="@+id/textView3"
+ android:id="@+id/nav_exit"
style="@style/nav_button"
android:layout_weight="1"
android:drawableStart="@drawable/ic_exit_to_app_black_24dp"
+ android:onClick="nav_exit_clicked"
android:text="@string/nav_exit_title" />
</LinearLayout>