diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/app.iml b/app/app.iml
index 4bd9dc2..32f9687 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -12,10 +12,12 @@
-
-
+
+ generateDebugAndroidTestSources
+ generateDebugSources
+
@@ -24,7 +26,7 @@
-
+
@@ -122,8 +124,8 @@
-
+
diff --git a/app/src/main/java/org/deke/risk/riskahead/ProfileActivity.java b/app/src/main/java/org/deke/risk/riskahead/ProfileActivity.java
index 9bfae96..f0ae52a 100644
--- a/app/src/main/java/org/deke/risk/riskahead/ProfileActivity.java
+++ b/app/src/main/java/org/deke/risk/riskahead/ProfileActivity.java
@@ -4,9 +4,10 @@ import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
-import android.widget.Button;
import android.widget.TextView;
+import com.beardedhen.androidbootstrap.BootstrapButton;
+
import org.deke.risk.riskahead.helper.BaseActivity;
import org.deke.risk.riskahead.helper.SQLiteHandler;
@@ -20,7 +21,7 @@ public class ProfileActivity extends BaseActivity {
private TextView txtName;
private TextView txtEmail;
- private Button btnLogout;
+ private BootstrapButton btnLogout;
private SQLiteHandler db;
public HashMap user;
@@ -31,7 +32,7 @@ public class ProfileActivity extends BaseActivity {
txtName = (TextView) findViewById(R.id.txt_profile_name);
txtEmail = (TextView) findViewById(R.id.txt_profile_email);
- btnLogout = (Button) findViewById(R.id.btn_profile_logout);
+ btnLogout = (BootstrapButton) findViewById(R.id.btn_profile_logout);
btnLogout.setOnClickListener(new View.OnClickListener() {
@Override
@@ -55,13 +56,7 @@ public class ProfileActivity extends BaseActivity {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
- int id = item.getItemId();
-
- if (id == R.id.action_settings) {
- return true;
- }
-
- return super.onOptionsItemSelected(item);
+ return item.getItemId() == R.id.action_settings || super.onOptionsItemSelected(item);
}
@Override
diff --git a/app/src/main/res/layout/activity_profile.xml b/app/src/main/res/layout/activity_profile.xml
index 9d4e9c7..90efc41 100644
--- a/app/src/main/res/layout/activity_profile.xml
+++ b/app/src/main/res/layout/activity_profile.xml
@@ -1,13 +1,14 @@
-
+ android:layout_marginTop="10dp"/>
+
+
+
+
+
+
+ android:ems="8"
+ android:layout_below="@+id/lbl_profile_name"
+ android:layout_alignLeft="@+id/lbl_profile_name"
+ android:layout_alignStart="@+id/lbl_profile_name"/>
+
+
+
+
+ android:layout_below="@+id/lbl_profile_email"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true" />
-
+
+
+
+
+
+
+
+
+ android:layout_marginTop="10dp"
+ android:textColor="#cc273e"
+ android:layout_below="@+id/lbl_trennlinie"/>
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Risk Ahead
Logout
+ Confirm changes
Welcome
Open navigation drawer
@@ -69,6 +70,17 @@
Crime Category
Time (hh:mm)
Date (dd-mm-yyyy) of incident
+ Name
+ Surname
+ E-Mail
+ Username
+ Profile stats
+ member since
+ points
+ ranking
+ number of posts
+ View posts
+ Password
- Personal