<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@+id/actionBarLayout"
	android:orientation="horizontal"
	android:layout_width="match_parent"
	android:layout_height="50dip"
	android:background="@color/title_background">	
    <!-- Logo -->
	<ImageView
		android:id="@+id/moduleIcon"
		android:layout_height="35dip"
		android:layout_width="35dip"
		android:scaleType="centerCrop"
		android:layout_centerVertical="true"
		android:layout_marginLeft="12dip">
    </ImageView>

    <!-- Title -->
	<TextView
		android:id="@+id/moduleName"
		android:layout_toRightOf="@+id/moduleIcon"
		android:layout_width="wrap_content"
		android:layout_centerVertical="true"
		android:textColor="@color/title_text"
		android:textSize="18sp"
		android:textStyle="bold"
		android:layout_height="wrap_content"
		android:padding="8dp">
	</TextView>

	<!-- Right buttons -->
    <ImageView
    	android:id="@+id/title_sep_3"
		android:layout_toLeftOf="@+id/testShowResultsButton"
        android:layout_width="1dp"
        android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:background="@color/title_separator"
        android:visibility="gone"/>
        
    <Button
    	android:id="@+id/testShowResultsButton"
		android:layout_toLeftOf="@+id/title_sep_2"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
		android:padding="8dp"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:text="@string/testShowResultsMsg"
		android:textColor="@color/title_text"
		android:textSize="18sp"
		android:textStyle="bold"
        android:onClick="onEvaluateClick"
        android:background="@drawable/title_button"
        android:visibility="gone"/>
        
    <ImageView
    	android:id="@+id/title_sep_2"
		android:layout_toLeftOf="@+id/testEvaluateButton"
        android:layout_width="1dp"
        android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:background="@color/title_separator"
        android:visibility="gone"/>
        
    <Button
    	android:id="@+id/testEvaluateButton"
		android:layout_toLeftOf="@+id/title_sep_1"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
		android:padding="8dp"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:text="@string/testEvaluateMsg"
		android:textColor="@color/title_text"
		android:textSize="18sp"
		android:textStyle="bold"
        android:onClick="onEvaluateClick"
        android:background="@drawable/title_button"
        android:visibility="gone"/>
        
    <ImageView
    	android:id="@+id/title_sep_1"
		android:layout_toLeftOf="@+id/refresh"
        android:layout_width="1dp"
        android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:background="@color/title_separator"
        android:visibility="gone"/>
        
    <ImageButton
    	android:id="@+id/refresh"
		android:layout_toLeftOf="@+id/progress_refresh"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:src="@drawable/title_refresh"
        android:onClick="onRefreshClick"
        android:background="@drawable/title_button"
        android:scaleType="centerCrop"
        android:paddingLeft="3dp"
        android:paddingRight="5dp"
        android:visibility="gone"/>
    
    <ProgressBar
    	android:id="@+id/progress_refresh"
		android:indeterminateDrawable="@drawable/rotate_refresh"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:visibility="gone"/>
    
    <ImageView
    	android:id="@+id/title_sep_4"
		android:layout_toLeftOf="@+id/messageReplyButton"
        android:layout_width="1dp"
        android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:background="@color/title_separator"
        android:visibility="gone"/>
    
    <ImageButton
		android:id="@+id/messageReplyButton"
		android:layout_width="wrap_content"
		android:layout_height="match_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:onClick="onReplyMessageClick"
		android:background="@drawable/message_reply"
		android:clickable="true"
  		android:visibility="gone" />

</RelativeLayout>

