<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_marginRight="?android:attr/scrollbarSize"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:stretchColumns="*" >
 
	<LinearLayout
	  android:orientation="vertical"
	  android:layout_width="fill_parent"
	  android:layout_height="wrap_content">

	    <!-- Dummy item to prevent AutoCompleteTextView from receiving focus -->
	    <LinearLayout
	    android:id="@+id/linearLayout_focus"
	    android:focusable="true"
	    android:focusableInTouchMode="true"
	    android:layout_width="0px"
	    android:layout_height="0px"/>
	    <LinearLayout 
	        android:id="@+id/base_dlg_button_panel"
            android:orientation="horizontal"
	        android:layout_width="fill_parent"
	        android:layout_height="wrap_content"
	        android:minHeight="?android:attr/listPreferredItemHeight"
	        android:gravity="center_vertical"
	        android:background="#60404040"
	        >
	        <ImageButton android:id="@+id/base_dlg_btn_back"
	            android:layout_width="wrap_content"
	            android:layout_height="wrap_content"
	            android:layout_centerVertical="true"
                android:minWidth="?android:attr/listPreferredItemHeight"
	            android:src="@drawable/cr3_button_prev"
	            android:focusable="false"
	            android:focusableInTouchMode="false"
	            android:background="@null"
	            android:contentDescription="@string/dlg_button_back"/>
	            />
            <ImageButton android:id="@+id/btn_open_book"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_alignParentRight="true"
                android:minWidth="?android:attr/listPreferredItemHeight"
                android:src="@drawable/cr3_button_book_open"
                android:focusable="false"
                android:focusableInTouchMode="false"
                android:background="@null"
	            android:contentDescription="@string/dlg_button_open_book"/>
                />
            <ImageButton android:id="@+id/book_folder_open"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:minWidth="?android:attr/listPreferredItemHeight"
                android:src="@drawable/cr3_button_folder_go"
                android:focusable="false"
                android:focusableInTouchMode="false"
                android:background="@null"
	            android:contentDescription="@string/dlg_button_open_folder"/>
                />
            <ImageButton android:id="@+id/book_recent_delete"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:gravity="right"
                android:minWidth="?android:attr/listPreferredItemHeight"
                android:src="@drawable/cr3_button_recent_book_delete"
                android:focusable="false"
                android:focusableInTouchMode="false"
                android:background="@null"
	            android:contentDescription="@string/dlg_button_recent_delete"/>
                />
            <ImageButton android:id="@+id/book_delete"
	            android:layout_width="wrap_content"
	            android:layout_height="wrap_content"
	            android:layout_centerVertical="true"
                android:gravity="right"
                android:minWidth="?android:attr/listPreferredItemHeight"
	            android:src="@drawable/cr3_button_book_delete"
	            android:focusable="false"
	            android:focusableInTouchMode="false"
	            android:background="@null"
	            android:contentDescription="@string/dlg_button_book_delete"/>
	            />
	    </LinearLayout>
        <LinearLayout 
            android:id="@+id/base_dlg_button_panel"
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            >
            <LinearLayout 
                android:orientation="vertical"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="2dip"
                android:gravity="center_vertical"
                >
      	        <ImageView android:id="@+id/book_cover"
		            android:layout_width="wrap_content"
		            android:layout_height="wrap_content"
		            android:layout_gravity="center_vertical|center_horizontal"
		            android:padding="3dip"
		            android:scaleType="fitCenter"
		            android:minHeight="120dip"
	                android:minWidth="100dip"
	                android:maxHeight="200dip"
	                android:maxWidth="150dip"
	                android:drawable="@drawable/cr3_browser_book"
		            />
                <ImageView android:id="@+id/book_progress"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|center_horizontal"
                    android:layout_marginTop="3dip"
                    android:padding="3dip"
                    android:scaleType="fitCenter"
                    android:minHeight="15dip"
                    android:minWidth="100dip"
                    android:maxHeight="15dip"
                    android:maxWidth="150dip"
                    />
      	    </LinearLayout>
	        <LinearLayout 
	            android:orientation="vertical"
	            android:layout_width="fill_parent"
	            android:layout_height="wrap_content"
                android:layout_marginLeft="2dip"
	            android:gravity="center_vertical"
	            >
	            <RadioGroup android:id="@+id/book_state"
	                android:layout_width="match_parent"
	                android:layout_height="wrap_content" >
        	        <RadioButton android:id="@+id/book_state_new" android:text="@string/book_state_none" android:layout_width="match_parent" android:layout_height="wrap_content"/>
                    <RadioButton android:id="@+id/book_state_toread" android:text="@string/book_state_toread" android:layout_width="match_parent" android:layout_height="wrap_content"/>
                    <RadioButton android:id="@+id/book_state_reading" android:text="@string/book_state_reading" android:layout_width="match_parent" android:layout_height="wrap_content"/>
                    <RadioButton android:id="@+id/book_state_finished" android:text="@string/book_state_finished" android:layout_width="match_parent" android:layout_height="wrap_content"/>
                </RadioGroup>
		    </LinearLayout>
	        	        
   	    </LinearLayout>
        <TextView 
            style="@style/TextAppearance.Medium"
            android:singleLine="true"
            android:text="@string/book_info_rating" 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>
        <RatingBar
            android:id="@+id/book_rating"
            android:isIndicator="false"
            android:numStars="5"
            android:stepSize="1"
            android:rating="3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
	    <TextView 
		    android:id="@+id/lbl_book_title"
		    style="@style/TextAppearance.Medium"
		    android:singleLine="true"
		    android:text="@string/book_info_book_title" 
		    android:layout_width="wrap_content"
		    android:layout_height="wrap_content"/>
		<EditText 
		    android:id="@+id/book_title" 
		    android:layout_width="fill_parent" 
		    android:layout_height="wrap_content"
		    android:text="Book title" 
		    style="@style/TextAppearance.Widget.EditText"
	        android:editable="true" 
	        android:singleLine="true"
		/>
	
	    <TextView 
	        android:id="@+id/lbl_book_author"
	        style="@style/TextAppearance.Medium"
	        android:singleLine="true"
	        android:text="@string/book_info_book_authors" 
	        android:layout_width="wrap_content"
	        android:layout_height="wrap_content"/>
        <LinearLayout 
            android:id="@+id/book_authors_list" 
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            >
		   <EditText 
		        android:layout_width="fill_parent" 
		        android:layout_height="wrap_content"
		        android:text="Book title" 
		        style="@style/TextAppearance.Widget.EditText"
		        android:editable="true" 
		        android:singleLine="true"
		    />
	   </LinearLayout>
		
	    <TableLayout 
	        android:layout_width="fill_parent"
            android:layout_height="wrap_content">
	        <TableRow >
			   	<TextView 
			        android:id="@+id/lbl_book_series_name"
			        style="@style/TextAppearance.Medium"
			        android:singleLine="true"
			        android:text="@string/book_info_book_series_name" 
                    android:layout_weight="3"
			        android:layout_width="wrap_content"
			        android:layout_height="wrap_content"/>
                <TextView 
                    android:id="@+id/lbl_book_series_number"
                    style="@style/TextAppearance.Medium"
                    android:singleLine="true"
                    android:text="#" 
                    android:layout_weight="1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"/>
		    </TableRow>
            <TableRow >
                <EditText 
                    android:id="@+id/book_series_name" 
                    android:layout_width="fill_parent" 
                    android:layout_height="wrap_content"
                    android:layout_weight="3"
                    android:text="Series" 
                    style="@style/TextAppearance.Widget.EditText"
                    android:editable="true" 
                    android:singleLine="true"
                />
                <EditText 
			        android:id="@+id/book_series_number" 
			        android:layout_width="fill_parent" 
			        android:layout_height="wrap_content"
                    android:layout_weight="1"
			        android:text="10" 
			        style="@style/TextAppearance.Widget.EditText"
			        android:editable="true" 
			        android:singleLine="true"
			    />
			</TableRow>
	    </TableLayout>
	</LinearLayout>
</ScrollView>
