DT @17.12.2015: Sehr viele Design-Changes.. ProfileActivityFragments ebenfalls übearbeitet
|
Before Width: | Height: | Size: 683 B |
|
Before Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 389 B |
|
Before Width: | Height: | Size: 560 B |
|
Before Width: | Height: | Size: 669 B |
|
Before Width: | Height: | Size: 824 B |
|
Before Width: | Height: | Size: 702 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 172 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 465 B |
|
Before Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 297 B |
|
Before Width: | Height: | Size: 417 B |
|
Before Width: | Height: | Size: 485 B |
|
Before Width: | Height: | Size: 613 B |
|
Before Width: | Height: | Size: 492 B |
|
Before Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 188 B |
|
Before Width: | Height: | Size: 793 B |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 860 B |
|
Before Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 449 B |
|
Before Width: | Height: | Size: 648 B |
|
Before Width: | Height: | Size: 823 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 916 B |
|
Before Width: | Height: | Size: 471 B |
|
Before Width: | Height: | Size: 224 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 527 B |
|
Before Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 925 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 671 B |
|
Before Width: | Height: | Size: 297 B |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 202 B |
@@ -88,7 +88,7 @@
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnGP"
|
||||
android:name="org.deke.risk.riskahead.fragments.GooglePlusButtonFragment"
|
||||
android:name="org.deke.risk.riskahead.fragment.GooglePlusButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/frag_login_btnTW"
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnTW"
|
||||
android:name="org.deke.risk.riskahead.fragments.TwitterButtonFragment"
|
||||
android:name="org.deke.risk.riskahead.fragment.TwitterButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/frag_login_btnFB"
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnFB"
|
||||
android:name="org.deke.risk.riskahead.fragments.FacebookButtonFragment"
|
||||
android:name="org.deke.risk.riskahead.fragment.FacebookButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
|
||||
@@ -1,15 +1,24 @@
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
@@ -29,7 +38,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:layout_marginTop="52dp"
|
||||
android:textColor="#aa999999"/>
|
||||
android:textColor="#aa4b4b4b"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_main_incidents"
|
||||
@@ -46,55 +55,46 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:layout_marginTop="34dp"
|
||||
android:textColor="#aa999999"/>
|
||||
android:textColor="#aa4b4b4b"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutFooter"
|
||||
android:gravity="center"
|
||||
android:background="@color/bg_common"
|
||||
android:layout_height="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#d5ddff"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginBottom="0dp">
|
||||
android:layout_alignParentStart="true">
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
<Button
|
||||
android:id="@+id/btn_main_report"
|
||||
style="@style/wrapping_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="#651a1111"
|
||||
android:layout_marginRight="1dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="20dp"
|
||||
bootstrap:bootstrapText="@string/btn_main_report"
|
||||
bootstrap:bootstrapBrand="danger"
|
||||
bootstrap:roundedCorners="true"
|
||||
android:layout_gravity="center_vertical" />
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:text="Report Incident" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
<Button
|
||||
android:id="@+id/btn_main_viewmap"
|
||||
style="@style/wrapping_button"
|
||||
android:layout_width="wrap_content"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:layout_weight="1"
|
||||
android:paddingRight="10dp"
|
||||
android:background="#651a1111"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
bootstrap:bootstrapText="@string/btn_main_viewmap"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true"
|
||||
android:layout_gravity="center_vertical" />
|
||||
android:text="Show Map" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff"/>
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,24 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawer_layout"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="org.deke.risk.riskahead.MapsActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
@@ -31,11 +42,6 @@
|
||||
bootstrap:roundedCorners="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -1,14 +1,24 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawer_layout"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
tools:context=".ProfileActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutMain"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:animateLayoutChanges="true"
|
||||
@@ -43,11 +53,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -1,109 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:orientation="vertical"
|
||||
android:padding="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_stats"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/lbl_profile_stats"
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/tableLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/lbl_profile_stats"
|
||||
android:stretchColumns="1">
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_membersince"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:padding="3dip"
|
||||
android:text="@string/lbl_profile_member_since"
|
||||
android:textColor="#007197" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_membersince"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:padding="3dip"
|
||||
android:text="0"
|
||||
android:textColor="#007197" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_points"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dip"
|
||||
android:text="@string/lbl_profile_points"
|
||||
android:textColor="#007197" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_points"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dip"
|
||||
android:text="0"
|
||||
android:textColor="#007197" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_ranking"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dip"
|
||||
android:text="@string/lbl_profile_ranking"
|
||||
android:textColor="#007197" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_ranking"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dip"
|
||||
android:text="0"
|
||||
android:textColor="#007197" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_numberposts"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dip"
|
||||
android:text="@string/lbl_profile_numberposts"
|
||||
android:textColor="#007197" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_numberposts"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dip"
|
||||
android:text="0"
|
||||
android:textColor="#007197" />
|
||||
</TableRow>
|
||||
</TableLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -1,62 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/rl_main_content_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:orientation="vertical"
|
||||
android:padding="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_top10"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/lbl_profile_top10"
|
||||
android:textColor="#000000"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/tableTop10"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/lbl_profile_top10"
|
||||
android:stretchColumns="1">
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_ranking"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:padding="3dip"
|
||||
android:text="Ranking"
|
||||
android:textColor="#007197" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:padding="3dip"
|
||||
android:text="Name"
|
||||
android:textColor="#007197" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_points"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:padding="3dip"
|
||||
android:text="Points"
|
||||
android:textColor="#007197" />
|
||||
</TableRow>
|
||||
|
||||
</TableLayout>
|
||||
</RelativeLayout>
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnGP"
|
||||
android:name="org.deke.risk.riskahead.fragments.GooglePlusButtonFragment"
|
||||
android:name="org.deke.risk.riskahead.fragment.GooglePlusButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/frag_login_btnTW"
|
||||
@@ -110,7 +110,7 @@
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnTW"
|
||||
android:name="org.deke.risk.riskahead.fragments.TwitterButtonFragment"
|
||||
android:name="org.deke.risk.riskahead.fragment.TwitterButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/frag_login_btnFB"
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnFB"
|
||||
android:name="org.deke.risk.riskahead.fragments.FacebookButtonFragment"
|
||||
android:name="org.deke.risk.riskahead.fragment.FacebookButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -188,14 +189,7 @@
|
||||
bootstrap:roundedCorners="true" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -1,90 +1,95 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
tools:context=".ReportWFActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutMain"
|
||||
android:animateLayoutChanges="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:animateLayoutChanges="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
<RelativeLayout
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
android:layout_weight="1">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/fragment_reportwf"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_weight="1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutStatus"
|
||||
android:background="#0f4845ff"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:animateLayoutChanges="true"
|
||||
android:layout_weight="0">
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.AwesomeTextView
|
||||
android:id="@+id/atvStatus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:padding="5dp"
|
||||
android:textSize="50dp"
|
||||
android:visibility="invisible"
|
||||
bootstrap:bootstrapBrand="success"
|
||||
bootstrap:fontAwesomeIcon="fa_check_circle_o" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutStatus"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:animateLayoutChanges="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutFooter"
|
||||
android:gravity="center"
|
||||
android:background="@color/bg_common"
|
||||
android:layout_height="50dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginBottom="0dp">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:gravity="center">
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_reportwf_reportnow"
|
||||
bootstrap:bootstrapText="Report NOW!"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingRight="1dp"
|
||||
bootstrap:bootstrapBrand="danger"
|
||||
android:layout_weight="1" />
|
||||
bootstrap:bootstrapText="Report NOW!" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_reportwf_next"
|
||||
bootstrap:bootstrapText="Continue"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight="1"
|
||||
bootstrap:bootstrapBrand="success"
|
||||
android:layout_weight="1" />
|
||||
bootstrap:bootstrapText="Continue" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:background="#8ae6e6e6"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv_reportlist_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
@@ -1,14 +1,24 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:background="@color/bg_common_2"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SettingsActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutMain"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
@@ -22,7 +32,6 @@
|
||||
android:layout_margin="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:padding="8dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -34,6 +43,7 @@
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txt_settings_username"
|
||||
android:text="test"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/lbl_settings_username"
|
||||
@@ -96,42 +106,25 @@
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_main_content_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:padding="4dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_settings_password"
|
||||
android:text="@string/lbl_settings_password"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp" />
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_below="@+id/txt_settings_email"
|
||||
android:layout_alignLeft="@+id/txt_settings_email"
|
||||
android:layout_alignStart="@+id/txt_settings_email" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/txt_settings_password"
|
||||
android:inputType="textPassword"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/lbl_settings_password" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_settings_req_password"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
bootstrap:bootstrapText="@string/btn_settings_req_password"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true"
|
||||
android:layout_below="@+id/txt_settings_password" />
|
||||
android:ems="8"
|
||||
android:layout_below="@+id/lbl_settings_password"
|
||||
android:layout_alignLeft="@+id/lbl_settings_password"
|
||||
android:layout_alignStart="@+id/lbl_settings_password" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
@@ -142,23 +135,26 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginBottom="0dp">
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_settings_req_password"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
bootstrap:bootstrapText="@string/btn_settings_req_password"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true"/>
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_settings_change"
|
||||
bootstrap:bootstrapText="@string/btn_settings_change"
|
||||
android:minWidth="180dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true" />
|
||||
bootstrap:roundedCorners="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
@@ -1,13 +1,24 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:background="#8ae6e6e6"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SubscriptionsActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutMain"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
@@ -106,17 +117,8 @@
|
||||
|
||||
</TableLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
@@ -1,14 +1,24 @@
|
||||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:background="#8ae6e6e6"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ViewReportActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutMain"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
@@ -234,11 +244,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/navList"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</RelativeLayout>
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:fb="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="org.deke.risk.riskahead.fragments.FacebookButtonFragment">
|
||||
tools:context="org.deke.risk.riskahead.fragment.FacebookButtonFragment">
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login_fb"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="org.deke.risk.riskahead.fragments.GooglePlusButtonFragment">
|
||||
tools:context="org.deke.risk.riskahead.fragment.GooglePlusButtonFragment">
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login_gp"
|
||||
|
||||
143
app/src/main/res/layout/fragment_profile_stats.xml
Normal file
@@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:padding="10dp"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:gravity="center"
|
||||
android:layout_centerInParent="true">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_txt1"
|
||||
android:text="You have currently..."
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#aa999999"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_points"
|
||||
android:text="0"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/lbl_main_txt1"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/llb_fff"
|
||||
android:text="points"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:paddingLeft="5dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#aa999999"
|
||||
android:textSize="15sp"
|
||||
android:layout_alignBottom="@+id/txt_profile_points"
|
||||
android:layout_toRightOf="@+id/txt_profile_points"
|
||||
android:layout_toEndOf="@+id/txt_profile_points" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_txt2"
|
||||
android:text="from a total of..."
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_below="@id/txt_profile_points"
|
||||
android:textColor="#aa999999"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_numberposts"
|
||||
android:text="0"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/lbl_main_txt2"
|
||||
android:textSize="30sp"
|
||||
android:layout_marginTop="10dp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/llb_ffff"
|
||||
android:text="reported incidents"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#aa999999"
|
||||
android:textSize="15sp"
|
||||
android:paddingLeft="5dp"
|
||||
android:layout_alignBottom="@+id/txt_profile_numberposts"
|
||||
android:layout_toRightOf="@+id/txt_profile_numberposts"
|
||||
android:layout_toEndOf="@+id/txt_profile_numberposts" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_txt3"
|
||||
android:text="and your rank is..."
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_below="@id/txt_profile_numberposts"
|
||||
android:textColor="#aa999999"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_ranking"
|
||||
android:text="0"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="30sp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_below="@+id/lbl_main_txt3"
|
||||
android:layout_marginTop="10dp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_txt4"
|
||||
android:text="You are supporting RiskAhead since"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_marginTop="50dp"
|
||||
android:layout_above="@+id/txt_profile_membersince"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textColor="#aa999999"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_profile_membersince"
|
||||
android:text="0"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="20sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_above="@+id/lbl_main_txt5"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_txt5"
|
||||
android:text="Thank you!"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_marginTop="10dp"
|
||||
android:textColor="#aa999999"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
18
app/src/main/res/layout/fragment_reportlist.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv_reportlist_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -6,6 +6,12 @@
|
||||
android:padding="5dp"
|
||||
android:weightSum="1">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/ic_reportlist_row"/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
17
app/src/main/res/layout/fragment_top10list.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lv_top10list"
|
||||
android:layout_below="@id/txt_profile_ranking"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
79
app/src/main/res/layout/fragment_top10list_row.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="#00000000"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:weightSum="3">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_top10_rank"
|
||||
android:text="#0"
|
||||
android:textColor="@color/md_black_1000"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="30sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:paddingRight="20dp"
|
||||
android:layout_weight="0"
|
||||
/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#a6000000"
|
||||
android:id="@+id/txt_top10_name"
|
||||
android:text="Member name"
|
||||
android:textSize="16dp"
|
||||
android:typeface="serif" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#b9000000"
|
||||
android:text="Reported Incidents"
|
||||
android:id="@+id/txt_top10_numberOfIncidents"
|
||||
android:typeface="serif" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#b9000000"
|
||||
android:text="Member since"
|
||||
android:id="@+id/txt_top10_membersince"
|
||||
android:typeface="serif" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_top10_points"
|
||||
android:text="0"
|
||||
android:textColor="@color/md_black_1000"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="30sp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_weight="0"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/llb_fff"
|
||||
android:text="pts"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingLeft="5dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#aa999999"
|
||||
android:textSize="15sp"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -3,7 +3,7 @@
|
||||
android:layout_width="match_parent"
|
||||
xmlns:bootstrap="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="org.deke.risk.riskahead.fragments.TwitterButtonFragment">
|
||||
tools:context="org.deke.risk.riskahead.fragment.TwitterButtonFragment">
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login_twitter"
|
||||
|
||||
11
app/src/main/res/layout/layout_toolbar.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:theme="@style/MyRiskAheadToolbar"
|
||||
app:popupTheme="@style/Theme.AppCompat.Light.NoActionBar"
|
||||
android:elevation="4dp"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto" />
|
||||
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/activatedBackgroundIndicator"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageViewIcon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:paddingRight="10dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/imageViewIcon"
|
||||
android:paddingRight="10dp"
|
||||
android:text="Folder name here."
|
||||
android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
||||
android:textColor="#000000" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -3,13 +3,8 @@
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<item android:id="@+id/menu_btn_gotostart"
|
||||
android:title="New Report"
|
||||
android:icon="@drawable/ic_action_reply_all"
|
||||
app:showAsAction="always"/>
|
||||
|
||||
<item android:id="@+id/menu_btn_goback"
|
||||
android:title="New Report"
|
||||
android:icon="@drawable/ic_action_reply"
|
||||
app:showAsAction="always"/>
|
||||
android:icon="@android:drawable/ic_menu_revert"
|
||||
app:showAsAction="always"
|
||||
android:title="New" />
|
||||
|
||||
</menu>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<resources>
|
||||
<string name="app_name">RiskAhead</string>
|
||||
<string name="facebook_app_id">658657714234846</string>
|
||||
<string name="banner_ad_unit_id">ca-app-pub-3940256099942544/6300978111</string>
|
||||
|
||||
<string name="btn_start_login">Login</string>
|
||||
<string name="btn_start_register">Register</string>
|
||||
@@ -77,17 +78,17 @@
|
||||
<string name="lbl_profile_top10">Top 10</string>
|
||||
|
||||
<string name="lbl_settings_password">Confirm Password</string>
|
||||
<string name="btn_settings_req_password">{fa_envelope} Request New Password</string>
|
||||
<string name="btn_settings_req_password">{fa_envelope} Reset Password</string>
|
||||
<string name="lbl_settings_retype_password">Retype Password</string>
|
||||
|
||||
<string name="btn_maps_confirm_position">{fa_paint_brush} Report this position!</string>
|
||||
|
||||
<string name="navigation_start">Start</string>
|
||||
<string name="navigation_report">Report</string>
|
||||
<string name="navigation_start">Home</string>
|
||||
<string name="navigation_report">Incident Report</string>
|
||||
<string name="navigation_incident_map">Incident Map</string>
|
||||
<string name="navigation_user_stats">User Statistics</string>
|
||||
<string name="navigation_acc_settings">Account Settings</string>
|
||||
<string name="navigation_settings">Settings</string>
|
||||
<string name="navigation_subscriptions">Subscriptions</string>
|
||||
<string name="navigation_logout">Logout</string>
|
||||
|
||||
<string name="share_item_text">I recommend RiskAhead!</string>
|
||||
@@ -109,5 +110,118 @@
|
||||
<string name="alert_accactivation_confirmation">E-Mail was sent to your e-mail address</string>
|
||||
<string name="alert_accregistration_title">Activation E-Mail</string>
|
||||
<string name="alert_accregistration_text">An activation link was send to your e-mail address. Please follow the instructions to activate your account. Thank you!</string>
|
||||
<string name="alert_internetconnection_title">No Internet Connection</string>
|
||||
<string name="alert_internetconnection_text">You need an active internet connection to use this app. Please turn on your internet connection and login again.</string>
|
||||
<string name="errormsg_couldnotretrieve">Could not retrieve data from server. Please check internet connection.</string>
|
||||
<string name="progress_getdata_text">Please wait...</string>
|
||||
<string name="progress_getdata_title">Retrieve data from server</string>
|
||||
<string name="lbl_mapsinfowindow_author">Author</string>
|
||||
<string name="lbl_mapsinfowindow_score">Score</string>
|
||||
<string name="title_activity_report_wf">Report NEW</string>
|
||||
|
||||
<string name="lbl_spinner_choose">Please choose...</string>
|
||||
<string name="lbl_report_from_date">From date (yyyy-MM-dd)</string>
|
||||
<string name="lbl_report_from_time">From time</string>
|
||||
<string name="lbl_report_to_date">To date (yyyy-MM-dd)</string>
|
||||
<string name="lbl_report_to_time">To time</string>
|
||||
|
||||
<string-array name="cat_situation_main">
|
||||
<item>Allgemeiner Vorfall/Situation</item>
|
||||
<item>Mündliche Gewalt</item>
|
||||
<item>Leichte bis schwere körperliche Gewalt</item>
|
||||
<item>Lebensgefährliche Gewalt</item>
|
||||
<item>Naturkatastrophe</item>
|
||||
<item>Menschliche Katastrophe & Infrastruktur</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_situation_sub_general">
|
||||
<item>Diebstahl, Betrug</item>
|
||||
<item>Drogen in Getränk/Speise, Drogenmissbrauch</item>
|
||||
<item>Demonstration, Unruhen, Straßenblockade</item>
|
||||
<item>Checkpoint, Kontrollen</item>
|
||||
<item>Korruption, Erpressung, Schutzgeld</item>
|
||||
<item>Einflussgebiet Kriminalität, Milizen, Terroristen</item>
|
||||
<item>Sonstiges...</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_situation_sub_verbal">
|
||||
<item>Sexuelle Belästigung</item>
|
||||
<item>Beleidigung, Drohung</item>
|
||||
<item>Vernehmung/Befragung öffentlich</item>
|
||||
<item>Aufhetzung</item>
|
||||
<item>Sonstiges...</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_situation_sub_force">
|
||||
<item>Sexueller Übergriff</item>
|
||||
<item>Angriff auf Person allgemein</item>
|
||||
<item>Schlägerei</item>
|
||||
<item>Festnahme/Gefangennahme </item>
|
||||
<item>Zwangsarbeit</item>
|
||||
<item>Sonstiges...</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_situation_sub_force_serious">
|
||||
<item>Vergewaltigung</item>
|
||||
<item>Folter, Entführung, Geiselnahme</item>
|
||||
<item>Schießerei</item>
|
||||
<item>Explosion, Selbstmordattentat</item>
|
||||
<item>Mord, Tötung, Hinrichtung</item>
|
||||
<item>Leichenzurschaustellung zur Abschreckung</item>
|
||||
<item>Sonstiges...</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_situation_sub_nature">
|
||||
<item>Temperaturextrem</item>
|
||||
<item>Wind, Sturm, Orkan, Tornado</item>
|
||||
<item>Überschwemmung/-flutung</item>
|
||||
<item>Erdbeben, Berghang Einsturz</item>
|
||||
<item>Feuer, Rauch-, Aschewolken, Vulkanausbruch</item>
|
||||
<item>Hungersnot, Tierplage</item>
|
||||
<item>Sonstiges...</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_situation_sub_infrastructure">
|
||||
<item>Smog Stadt</item>
|
||||
<item>Stromausfall, Unfall</item>
|
||||
<item>Zerstörung, Einsturzgefahr Gebäude</item>
|
||||
<item>Brandkatastrophe</item>
|
||||
<item>Chemiekatastrophe, Ölpest</item>
|
||||
<item>Seuche, Krankheit</item>
|
||||
<item>Chaos Bevölkerung</item>
|
||||
<item>Sonstiges...</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_time_main">
|
||||
<item>Jetzt!</item>
|
||||
<item>Regelmäßig</item>
|
||||
<item>Bestimmter Zeitpunkt</item>
|
||||
<item>Bestimmter Zeitraum</item>
|
||||
<item>Weiß ich nicht</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_time_sub_periodical">
|
||||
<item>Vormittags</item>
|
||||
<item>Tagsüber</item>
|
||||
<item>Abends</item>
|
||||
<item>Nachts</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_suspect_main">
|
||||
<item>Straßenkriminelle/Gangs</item>
|
||||
<item>Polizei</item>
|
||||
<item>Volksmenge</item>
|
||||
<item>Miliz, Kartell, Guerilla (Paramilitär)</item>
|
||||
<item>Soldaten (Militär)</item>
|
||||
<item>Terroristen (religiöse oder politische)</item>
|
||||
<item>Sonstige:…</item>
|
||||
<item>Weiß ich nicht</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cat_suspect_sub_location">
|
||||
<item>Lokale aus dem Land (National)</item>
|
||||
<item>Ausländische</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<string name="lbl_main_txt1">We have currently ...</string>
|
||||
<string name="lbl_main_txt2">... reported incidents</string>
|
||||
<string name="btn_main_report">{fa_map_marker} Report</string>
|
||||
<string name="btn_main_viewmap">{fa_info} View Map</string>
|
||||
<string name="btn_main_viewmap">{fa_map} View Map</string>
|
||||
|
||||
<string name="input_report_short_hint">Short Description</string>
|
||||
<string name="input_report_long_hint">Long Descpription</string>
|
||||
@@ -78,17 +78,17 @@
|
||||
<string name="lbl_profile_top10">Top 10</string>
|
||||
|
||||
<string name="lbl_settings_password">Confirm Password</string>
|
||||
<string name="btn_settings_req_password">{fa_envelope} Request New Password</string>
|
||||
<string name="btn_settings_req_password">{fa_envelope} Reset Password</string>
|
||||
<string name="lbl_settings_retype_password">Retype Password</string>
|
||||
|
||||
<string name="btn_maps_confirm_position">{fa_paint_brush} Report this position!</string>
|
||||
|
||||
<string name="navigation_start">Start</string>
|
||||
<string name="navigation_report">Report</string>
|
||||
<string name="navigation_start">Home</string>
|
||||
<string name="navigation_report">Incident Report</string>
|
||||
<string name="navigation_incident_map">Incident Map</string>
|
||||
<string name="navigation_user_stats">User Statistics</string>
|
||||
<string name="navigation_acc_settings">Account Settings</string>
|
||||
<string name="navigation_settings">Settings</string>
|
||||
<string name="navigation_subscriptions">Subscriptions</string>
|
||||
<string name="navigation_logout">Logout</string>
|
||||
|
||||
<string name="share_item_text">I recommend RiskAhead!</string>
|
||||
|
||||
@@ -5,16 +5,51 @@
|
||||
<item name="android:layout_marginRight">@dimen/micro_padding</item>
|
||||
</style>
|
||||
|
||||
<style name="MyRiskAheadTheme" parent="Theme.AppCompat.Light">
|
||||
<item name="colorPrimary">@color/bg_common</item>
|
||||
<item name="android:textColorPrimary">@color/actionbar_text</item>
|
||||
<item name="colorPrimaryDark">@color/bg_common_2</item>
|
||||
<item name="android:textColor">@color/common_text</item>
|
||||
<style name="MyRiskAheadTheme" parent="@style/Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="android:textViewStyle">@style/App_TextViewStyle</item>
|
||||
<item name="android:editTextStyle">@style/App_EditTextStyle</item>
|
||||
<!-- ...and here we setting appcompat’s color theme attrs -->
|
||||
<item name="colorPrimary">@color/bg_common</item>
|
||||
<item name="colorPrimaryDark">@color/bg_common_2</item>
|
||||
<item name="colorAccent">#02A8F3</item>
|
||||
</style>
|
||||
|
||||
<style name="MyRiskAheadToolbar" parent="Theme.AppCompat.NoActionBar">
|
||||
<!-- android:textColorPrimary is the color of the title text
|
||||
in the Toolbar, in the Theme.AppCompat theme: -->
|
||||
<item name="android:textColorPrimary">@color/actionbar_text</item>
|
||||
<item name="colorPrimary">@color/bg_common</item>
|
||||
<item name="colorPrimaryDark">@color/bg_common_2</item>
|
||||
<!-- android:textColorPrimaryInverse is the color of the title
|
||||
text in the Toolbar, in the Theme.AppCompat.Light theme: -->
|
||||
<!-- <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item> -->
|
||||
|
||||
<!-- android:actionMenuTextColor is the color of the text of
|
||||
action (menu) items in the Toolbar, at least in the
|
||||
Theme.AppCompat theme.
|
||||
For some reason, they already get the textColorPrimary
|
||||
when running on API 21, but not on older versions of
|
||||
Android, so this is only necessary to support older
|
||||
Android versions.-->
|
||||
<item name="actionMenuTextColor">@color/abc_primary_text_material_light</item>
|
||||
<!-- android:textColorSecondary is the color of the menu
|
||||
overflow icon (three vertical dots) -->
|
||||
<item name="android:textColorSecondary">@color/actionbar_text</item>
|
||||
|
||||
<!-- This would set the toolbar's background color,
|
||||
but setting this also changes the popup menu's background,
|
||||
even if we define popupTheme for our <Toolbar> -->
|
||||
<!-- <item name="android:background">@color/color_primary</item> -->
|
||||
</style>
|
||||
|
||||
<style name="App_EditTextStyle" parent="@android:style/Widget.EditText">
|
||||
<item name="android:textColor">@color/common_text</item>
|
||||
<item name="android:fontFamily" tools:targetApi="jelly_bean">sans-serif</item>
|
||||
</style>
|
||||
|
||||
<style name="App_TextViewStyle" parent="@android:style/Widget.TextView">
|
||||
<item name="android:textColor">@color/common_text</item>
|
||||
<item name="android:fontFamily" tools:targetApi="jelly_bean">sans-serif</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||