Commit e1ad6a5b authored by Craig Earley's avatar Craig Earley
Browse files

cleans up the landscape version of the database button screen

parent 8de0ba4e
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/serverIp"
android:text=""
android:hint="@string/server_ip"
android:layout_alignParentTop="true"
android:singleLine="true"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:layout_centerHorizontal="true"
android:inputType=""
android:autofillHints="" />
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="start">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/database"
android:singleLine="true"
android:text=""
android:hint="@string/database_name"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:layout_below="@+id/serverIp"
android:layout_alignStart="@id/serverIp"
android:layout_alignEnd="@id/serverIp"
android:layout_centerHorizontal="true"
android:inputType=""
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/serverIp"
android:text=""
android:hint="@string/server_ip"
android:layout_alignParentTop="true"
android:singleLine="true"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:layout_centerHorizontal="true"
android:inputType=""
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/username"
android:text=""
android:hint="@string/username"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:singleLine="true"
android:textCursorDrawable="@null"
android:layout_below="@+id/database"
android:layout_alignStart="@id/serverIp"
android:layout_alignEnd="@id/serverIp"
android:layout_centerHorizontal="true"
android:inputType=""
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/database"
android:singleLine="true"
android:text=""
android:hint="@string/database_name"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:inputType=""
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/password"
android:text=""
android:inputType="textPassword"
android:hint="@string/password"
android:textColorHint="@color/dark_gray_blue"
android:singleLine="true"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:layout_below="@+id/username"
android:layout_alignStart="@id/serverIp"
android:layout_alignEnd="@id/serverIp"
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/username"
android:text=""
android:hint="@string/username"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:singleLine="true"
android:textCursorDrawable="@null"
android:inputType=""
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/port"
android:text="@string/default_port"
android:hint="@string/port_of_db"
android:singleLine="true"
android:layout_below="@+id/password"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:fontFamily="sans-serif"
android:layout_alignStart="@id/serverIp"
android:layout_alignEnd="@id/serverIp"
android:layout_centerHorizontal="true"
android:inputType=""
android:autofillHints="" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/password"
android:text=""
android:inputType="textPassword"
android:hint="@string/password"
android:textColorHint="@color/dark_gray_blue"
android:singleLine="true"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:autofillHints="" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/connect"
android:id="@+id/setupDbButton"
android:textAllCaps="false"
android:layout_marginTop="87dp"
android:layout_below="@+id/port"
android:layout_toStartOf="@+id/port" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/port"
android:text="@string/default_port"
android:hint="@string/port_of_db"
android:singleLine="true"
android:layout_below="@+id/password"
android:textColorHint="@color/dark_gray_blue"
android:textColor="@color/dark_gray_blue"
android:textCursorDrawable="@null"
android:fontFamily="sans-serif"
android:inputType=""
android:autofillHints="" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastUpload"
android:id="@+id/lastUpload"
android:textColor="@color/dark_gray_blue"
android:textAppearance="@android:style/TextAppearance.Medium"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/upload"
android:id="@+id/uploadButton"
android:textAllCaps="false"
android:layout_alignTop="@+id/wipeDatabase"
android:layout_toEndOf="@+id/wipeDatabase"
android:layout_marginStart="88dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastDownload"
android:id="@+id/lastDownload"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textColor="@color/dark_gray_blue"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wipeDB"
android:id="@+id/wipeDatabase"
android:textAllCaps="false"
android:layout_alignTop="@+id/setupDbButton"
android:layout_toEndOf="@+id/lastUpload" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Clean field data"
android:id="@+id/wipeFieldData"
android:textAllCaps="false"
android:layout_below="@id/wipeDatabase"
android:layout_alignParentStart="true"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Clean readings table"
android:id="@+id/wipeReadingsTable"
android:textAllCaps="false"
android:layout_below="@id/wipeFieldData"
android:layout_alignParentStart="true"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Clean streaming table"
android:id="@+id/wipeStreamingTable"
android:textAllCaps="false"
android:layout_below="@id/wipeFieldData"
android:layout_alignParentEnd="true"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastUpload"
android:id="@+id/lastUpload"
android:layout_alignStart="@id/setupDbButton"
android:textColor="@color/dark_gray_blue"
android:textAppearance="@android:style/TextAppearance.Medium"
android:layout_below="@id/wipeStreamingTable"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastClean"
android:id="@+id/lastClean"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textColor="@color/dark_gray_blue"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/databaseSize"
android:id="@+id/databaseSize"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textStyle="bold"
android:textColor="@color/dark_gray_blue" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastDownload"
android:id="@+id/lastDownload"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textColor="@color/dark_gray_blue"
android:layout_above="@+id/lastClean"
android:layout_alignStart="@+id/lastUpload" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/databaseStatus"
android:id="@+id/databaseStatus"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textStyle="bold"
android:textColor="@color/dark_gray_blue"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="end">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/connect"
android:id="@+id/setupDbButton"
android:textAllCaps="false"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastClean"
android:id="@+id/lastClean"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textColor="@color/dark_gray_blue"
android:layout_above="@id/databaseSize"
android:layout_alignStart="@+id/lastDownload"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/databaseSize"
android:id="@+id/databaseSize"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textStyle="bold"
android:textColor="@color/dark_gray_blue"
android:layout_above="@+id/databaseStatus"
android:layout_alignStart="@id/lastUpload" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Upload tables"
android:id="@+id/uploadButton"
android:textAllCaps="false" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/databaseStatus"
android:id="@+id/databaseStatus"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textStyle="bold"
android:textColor="@color/dark_gray_blue"
android:layout_alignParentBottom="true"
android:layout_alignStart="@id/lastUpload"
android:layout_marginBottom="25dp" />
</RelativeLayout>
\ No newline at end of file
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/wipeDB"
android:id="@+id/wipeDatabase"
android:textAllCaps="false" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Clean field data"
android:id="@+id/wipeFieldData"
android:textAllCaps="false"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Clean readings table"
android:id="@+id/wipeReadingsTable"
android:textAllCaps="false"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Clean streaming table"
android:id="@+id/wipeStreamingTable"
android:textAllCaps="false"/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment