Changed Rest-Calls to new API,
Many bugfixes and some improvements (especially on the map), Some minor design changes, Removed MainActivity from Menu
This commit is contained in:
@@ -1,138 +1,158 @@
|
||||
<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:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@color/bg_login"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dp"
|
||||
tools:context=".LoginActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_login_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="54dp"
|
||||
android:background="@color/bg_common"
|
||||
android:textColor="@color/md_white_1000"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="@string/lbl_login_title"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
android:typeface="sans" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_email"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/lbl_login_title"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@color/white"
|
||||
android:hint="@string/input_register_email_hint"
|
||||
android:inputType="textEmailAddress"
|
||||
android:padding="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_password"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_below="@+id/input_register_email"
|
||||
android:layout_marginTop="5dp"
|
||||
android:background="@color/white"
|
||||
android:hint="@string/input_register_password_hint"
|
||||
android:inputType="textPassword"
|
||||
android:padding="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_login"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_below="@+id/input_register_password"
|
||||
android:layout_marginBottom="5dip"
|
||||
android:layout_marginTop="20dip"
|
||||
android:background="@color/btn_login_bg"
|
||||
android:minWidth="120dp"
|
||||
android:text="@string/btn_start_login"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_switchtoregistration"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_below="@+id/btn_login"
|
||||
android:layout_marginBottom="10dip"
|
||||
android:background="#ffea7f8a"
|
||||
android:minWidth="120dp"
|
||||
android:text="@string/btn_start_register"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_below="@+id/btn_switchtoregistration"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content">
|
||||
android:text="@string/lbl_login_title"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/lbl_login_title"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
android:paddingBottom="20dp">
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/input_layout_email"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_email"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/input_register_email_hint"
|
||||
android:inputType="textEmailAddress"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/input_layout_password"
|
||||
android:layout_below="@+id/input_layout_email"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_password"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:hint="@string/input_register_password_hint"
|
||||
android:inputType="textPassword"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_below="@+id/input_layout_password"
|
||||
android:layout_marginBottom="5dip"
|
||||
android:layout_marginTop="20dip"
|
||||
bootstrap:bootstrapText="@string/btn_start_login"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true" />
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_switchtoregistration"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_below="@+id/btn_login"
|
||||
android:layout_marginBottom="5dip"
|
||||
bootstrap:bootstrapText="@string/btn_start_register"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_below="@+id/btn_switchtoregistration"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/linearLayout3">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_login_resendPW"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lbl_login_resendPW"
|
||||
android:textColor="@color/bg_common"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_login_resendPW"
|
||||
android:id="@+id/lbl_login_usesocialnet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lbl_login_resendPW"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
</LinearLayout>
|
||||
android:layout_above="@+id/lay_social"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:textColor="@color/bg_common"
|
||||
android:text="@string/lbl_login_usesocialnet" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_login_usesocialnet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/frag_login_btnGP"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="@string/lbl_login_usesocialnet" />
|
||||
<LinearLayout
|
||||
android:id="@+id/lay_social"
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnGP"
|
||||
android:name="org.deke.risk.riskahead.fragment.GooglePlusButtonFragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_margin="1dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout="@layout/fragment_googleplus_button" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnTW"
|
||||
android:name="org.deke.risk.riskahead.fragment.TwitterButtonFragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_margin="1dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout="@layout/fragment_twitter_button" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnFB"
|
||||
android:name="org.deke.risk.riskahead.fragment.FacebookButtonFragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_margin="1dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout="@layout/fragment_facebook_button" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnGP"
|
||||
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"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="5dp"
|
||||
tools:layout="@layout/fragment_googleplus_button" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnTW"
|
||||
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"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="5dp"
|
||||
tools:layout="@layout/fragment_twitter_button" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnFB"
|
||||
android:name="org.deke.risk.riskahead.fragment.FacebookButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="5dp"
|
||||
tools:layout="@layout/fragment_facebook_button" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/black"
|
||||
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" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/toolbar"
|
||||
android:contentDescription="@null"
|
||||
android:id="@+id/imageView"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layoutContent"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="30dp"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:background="@color/main_button"
|
||||
android:id="@+id/linearLayout">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_points"
|
||||
android:text="@string/lbl_main_txt1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="@color/white"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_main_incidents"
|
||||
android:text="0"
|
||||
android:textColor="@color/white"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="38dp"
|
||||
android:textSize="40sp"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_profile_numberposts"
|
||||
android:text="@string/lbl_main_txt2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:layout_marginTop="34dp"
|
||||
android:textColor="@color/white"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutNotifications"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_above="@+id/layoutFooter">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_notifystatus"
|
||||
android:text="@string/txt_notifystatus_txt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="@color/white"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_main_notifystatus_status"
|
||||
android:text="AUS"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="@color/white"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutFooter"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_main_report"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/white"
|
||||
android:layout_marginRight="1dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="80dp"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:text="@string/btn_main_reportinc" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_main_viewmap"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:layout_weight="1"
|
||||
android:paddingRight="10dp"
|
||||
android:textColor="@color/white"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="80dp"
|
||||
android:text="@string/btn_main_showmap" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -8,17 +8,8 @@
|
||||
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">
|
||||
|
||||
@@ -49,7 +40,15 @@
|
||||
android:id="@+id/pb_map_progress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true" />
|
||||
android:layout_alignParentBottom="true" />
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar_trans"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:background="@color/bg_report"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ProfileActivity">
|
||||
@@ -11,7 +11,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
layout="@layout/layout_toolbar_col"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
@@ -26,15 +26,6 @@
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/logo_380"
|
||||
android:id="@+id/imageView2"
|
||||
android:alpha="0.05"
|
||||
android:layout_gravity="center_horizontal"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<android.support.design.widget.TabLayout
|
||||
android:id="@+id/tab_layout"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -1,140 +1,156 @@
|
||||
<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:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@color/bg_register"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dp"
|
||||
tools:context=".LoginActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_register_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="54dp"
|
||||
android:background="@color/bg_common"
|
||||
android:textColor="@color/md_white_1000"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/lbl_register_title"
|
||||
android:textColor="@color/input_register"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
android:typeface="sans" />
|
||||
android:textSize="20sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/lbl_register_title"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@color/input_register_bg"
|
||||
android:hint="@string/input_register_name_hint"
|
||||
android:inputType="textCapWords"
|
||||
android:padding="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/input_register"
|
||||
android:textColorHint="@color/input_register_hint" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_email"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/input_register_name"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@color/input_register_bg"
|
||||
android:hint="@string/input_register_email_hint"
|
||||
android:inputType="textEmailAddress"
|
||||
android:padding="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/input_register"
|
||||
android:textColorHint="@color/input_register_hint" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_password"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/input_register_email"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@color/input_register_bg"
|
||||
android:hint="@string/input_register_password_hint"
|
||||
android:inputType="textPassword"
|
||||
android:padding="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/input_register"
|
||||
android:textColorHint="@color/input_register_hint" />
|
||||
|
||||
<LinearLayout
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_below="@+id/input_register_password"
|
||||
android:orientation="horizontal"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/linearLayout2">
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/lbl_register_title"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
android:paddingBottom="20dp">
|
||||
|
||||
<Button
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/input_layout_username"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_name"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/input_register_name_hint"
|
||||
android:inputType="textCapWords"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/input_layout_email"
|
||||
android:layout_below="@+id/input_layout_username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_email"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/input_register_email_hint"
|
||||
android:inputType="textEmailAddress"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/input_layout_password"
|
||||
android:layout_below="@+id/input_layout_email"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_register_password"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/input_register_password_hint"
|
||||
android:inputType="textPassword"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/input_login"
|
||||
android:textColorHint="@color/input_login_hint" />
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_register"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_weight=".4"
|
||||
android:background="#ffea7f8a"
|
||||
android:minWidth="120dp"
|
||||
android:text="@string/btn_start_register"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_below="@id/input_layout_password"
|
||||
android:layout_marginBottom="5dip"
|
||||
android:layout_marginTop="20dip"
|
||||
bootstrap:bootstrapText="@string/btn_start_register"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
bootstrap:roundedCorners="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_register_switchtologin"
|
||||
android:gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/bg_common"
|
||||
android:textAlignment="center"
|
||||
android:text="@string/txt_register_switchtologin"
|
||||
android:layout_below="@+id/btn_register"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_login_usesocialnet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/frag_login_btnGP"
|
||||
android:layout_above="@+id/lay_social"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="@string/lbl_login_usesocialnet"
|
||||
android:textColor="@color/input_register" />
|
||||
android:textColor="@color/bg_common"
|
||||
android:text="@string/lbl_login_usesocialnet" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnGP"
|
||||
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"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="5dp"
|
||||
tools:layout="@layout/fragment_googleplus_button" />
|
||||
<LinearLayout
|
||||
android:id="@+id/lay_social"
|
||||
android:layout_width="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnTW"
|
||||
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"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="5dp"
|
||||
tools:layout="@layout/fragment_twitter_button" />
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnGP"
|
||||
android:name="org.deke.risk.riskahead.fragment.GooglePlusButtonFragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_margin="1dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout="@layout/fragment_googleplus_button" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnFB"
|
||||
android:name="org.deke.risk.riskahead.fragment.FacebookButtonFragment"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginTop="5dp"
|
||||
tools:layout="@layout/fragment_facebook_button" />
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnTW"
|
||||
android:name="org.deke.risk.riskahead.fragment.TwitterButtonFragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_margin="1dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout="@layout/fragment_twitter_button" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lbl_register_switchtologin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:textColor="@color/input_register"
|
||||
android:text="@string/txt_register_switchtologin" />
|
||||
<fragment
|
||||
android:id="@+id/frag_login_btnFB"
|
||||
android:name="org.deke.risk.riskahead.fragment.FacebookButtonFragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_margin="1dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout="@layout/fragment_facebook_button" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
android:id="@+id/main_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:background="@color/bg_report"
|
||||
tools:context=".ReportWFActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
layout="@layout/layout_toolbar"
|
||||
layout="@layout/layout_toolbar_col"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
@@ -30,15 +30,7 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_horizontal" >
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/logo_380"
|
||||
android:id="@+id/imageView2"
|
||||
android:layout_margin="5dp"
|
||||
android:alpha="0.05"
|
||||
android:layout_gravity="center_horizontal"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:background="@color/bg_report"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SettingsActivity">
|
||||
@@ -11,7 +11,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
layout="@layout/layout_toolbar_col"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
@@ -22,16 +22,6 @@
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_below="@id/toolbar">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/logo_380"
|
||||
android:id="@+id/imageView2"
|
||||
android:layout_margin="5dp"
|
||||
android:alpha="0.05"
|
||||
android:layout_gravity="center_horizontal"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -1,48 +0,0 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
tools:context="org.deke.risk.riskahead.StartActivity"
|
||||
android:background="#ffffff">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image_start_logo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/logo_riskahead"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:background="#00ffffff"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutFooter"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_alignParentBottom="true">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_start_login"
|
||||
android:text="@string/btn_start_login"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="gotoLogin" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_start_register"
|
||||
android:text="@string/btn_start_register"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="gotoRegister" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -2,7 +2,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main_layout"
|
||||
android:background="@drawable/layout_bg_gradient"
|
||||
android:background="@color/bg_report"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SubscriptionsActivity">
|
||||
@@ -11,7 +11,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
layout="@layout/layout_toolbar_col"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
android:id="@+id/layoutMain"
|
||||
android:layout_below="@+id/toolbar"
|
||||
android:layout_margin="0dp"
|
||||
android:gravity="center"
|
||||
android:padding="5dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -30,7 +31,6 @@
|
||||
android:text="@string/lbl_subs_maintaining"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_margin="5dp"/>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
android:text="@string/lbl_subs_helpus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:layout_margin="5dp"
|
||||
android:textColor="@color/text_light_grey"/>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/layout_toolbar"
|
||||
layout="@layout/layout_toolbar_col"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login_fb"
|
||||
android:layout_width="225dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="50dp"
|
||||
bootstrap:bootstrapText="{fa_facebook_f} Facebook"
|
||||
bootstrap:bootstrapBrand="primary"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login_gp"
|
||||
android:layout_width="225dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="50dp"
|
||||
bootstrap:bootstrapText="{fa_google} Google+"
|
||||
bootstrap:bootstrapBrand="danger"
|
||||
|
||||
@@ -73,16 +73,13 @@
|
||||
android:textColor="@color/bg_common" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="100dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:hint="@string/hint_place"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:id="@+id/lbl_reportwf_position_detail"
|
||||
android:layout_below="@+id/lbl_reportwf_1_question_2"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginBottom="50dp"/>
|
||||
android:layout_below="@+id/lbl_reportwf_1_question_2"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||
android:id="@+id/btn_login_twitter"
|
||||
android:layout_width="225dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="50dp"
|
||||
bootstrap:bootstrapText="{fa_twitter} Twitter"
|
||||
bootstrap:bootstrapBrand="info"
|
||||
|
||||
12
app/src/main/res/layout/layout_toolbar_col.xml
Normal file
12
app/src/main/res/layout/layout_toolbar_col.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v7.widget.Toolbar xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
|
||||
android:background="@color/bg_common"
|
||||
/>
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
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" />
|
||||
android:background="@color/translucent"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user