aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res
diff options
context:
space:
mode:
authoralescdb <alescdb@users.noreply.github.com>2015-08-22 16:27:22 +0200
committeralescdb <alescdb@users.noreply.github.com>2015-08-22 16:27:22 +0200
commit3f7146bf87b79cc6fd48cf79b65933199e24e9ba (patch)
tree7ca49ca7d085ea43cd7b581e1f528c1893d24a0b /app/src/main/res
parentad3dbb4abfe61a0993c33e01c342397a7e0d8cce (diff)
downloadconnectbot-3f7146bf87b79cc6fd48cf79b65933199e24e9ba.tar.gz
connectbot-3f7146bf87b79cc6fd48cf79b65933199e24e9ba.tar.bz2
connectbot-3f7146bf87b79cc6fd48cf79b65933199e24e9ba.zip
Scroll keyboard back a forth to give a hint to user about the scrollable keyboard.
Handle repeatable arrow keys (easily extendable to other keys if needed).
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout-large/act_console.xml46
-rw-r--r--app/src/main/res/layout/act_console.xml156
2 files changed, 101 insertions, 101 deletions
diff --git a/app/src/main/res/layout-large/act_console.xml b/app/src/main/res/layout-large/act_console.xml
index 1f8c51f..ea40714 100644
--- a/app/src/main/res/layout-large/act_console.xml
+++ b/app/src/main/res/layout-large/act_console.xml
@@ -26,27 +26,27 @@
android:background="#ff000000">
<android.support.v7.widget.Toolbar
+ android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:id="@+id/toolbar"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"/>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="#222222"
android:textAppearance="?android:attr/textAppearanceMedium"
- app:tabIndicatorColor="@android:color/white"
- android:background="#222222"/>
+ app:tabIndicatorColor="@android:color/white"/>
<TextView
android:id="@android:id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:text="@string/terminal_no_hosts_connected"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ android:layout_below="@id/toolbar"
android:gravity="center"
- android:layout_below="@id/toolbar"/>
+ android:text="@string/terminal_no_hosts_connected"
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
<android.support.v4.view.ViewPager
android:id="@+id/console_flip"
@@ -60,29 +60,29 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- android:padding="5dip"
android:background="#80000000"
android:fadingEdge="horizontal"
android:fadingEdgeLength="25dip"
+ android:padding="5dip"
android:visibility="gone"
>
<TextView
android:id="@+id/console_password_instructions"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="5dip"
android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_width="fill_parent"
android:visibility="gone"
- android:layout_marginBottom="5dip"
/>
<EditText
android:id="@+id/console_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
+ android:layout_below="@+id/console_password_instructions"
android:password="true"
android:singleLine="true"
- android:layout_below="@+id/console_password_instructions"
/>
</RelativeLayout>
@@ -92,46 +92,46 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- android:padding="5dip"
android:background="#80000000"
android:fadingEdge="horizontal"
android:fadingEdgeLength="25dip"
+ android:padding="5dip"
android:visibility="gone"
>
<TextView
android:id="@+id/console_prompt"
- android:layout_height="wrap_content"
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
<Button
android:id="@+id/console_prompt_no"
- android:text="@string/button_no"
- android:paddingTop="5dip"
- android:paddingBottom="10dip"
- android:paddingLeft="40dip"
- android:paddingRight="40dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/console_prompt"
android:clickable="false"
+ android:paddingBottom="10dip"
+ android:paddingLeft="40dip"
+ android:paddingRight="40dip"
+ android:paddingTop="5dip"
+ android:text="@string/button_no"
/>
<Button
android:id="@+id/console_prompt_yes"
- android:text="@string/button_yes"
- android:paddingTop="5dip"
- android:paddingBottom="10dip"
- android:paddingLeft="40dip"
- android:paddingRight="40dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_toLeftOf="@+id/console_prompt_no"
android:layout_below="@+id/console_prompt"
+ android:layout_toLeftOf="@+id/console_prompt_no"
+ android:paddingBottom="10dip"
+ android:paddingLeft="40dip"
+ android:paddingRight="40dip"
+ android:paddingTop="5dip"
+ android:text="@string/button_yes"
/>
</RelativeLayout>
diff --git a/app/src/main/res/layout/act_console.xml b/app/src/main/res/layout/act_console.xml
index a734882..8d29942 100644
--- a/app/src/main/res/layout/act_console.xml
+++ b/app/src/main/res/layout/act_console.xml
@@ -19,104 +19,104 @@
-->
<RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#ff000000">
-
- <TextView
- android:id="@android:id/empty"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:text="@string/terminal_no_hosts_connected"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:gravity="center"/>
+ android:background="#ff000000">
+
+ <TextView
+ android:id="@android:id/empty"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:gravity="center"
+ android:text="@string/terminal_no_hosts_connected"
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
<android.support.v4.view.ViewPager
- android:id="@+id/console_flip"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- />
+ android:id="@+id/console_flip"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
<RelativeLayout
- android:id="@+id/console_password_group"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:padding="5dip"
- android:background="#80000000"
- android:fadingEdge="horizontal"
- android:fadingEdgeLength="25dip"
- android:visibility="gone"
- >
-
- <TextView
- android:id="@+id/console_password_instructions"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ android:id="@+id/console_password_group"
android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:background="#80000000"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="25dip"
+ android:padding="5dip"
android:visibility="gone"
- android:layout_marginBottom="5dip"
- />
+ >
+
+ <TextView
+ android:id="@+id/console_password_instructions"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="5dip"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:visibility="gone"
+ />
<EditText
- android:id="@+id/console_password"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:password="true"
- android:singleLine="true"
- android:layout_below="@+id/console_password_instructions"
- />
+ android:id="@+id/console_password"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@+id/console_password_instructions"
+ android:password="true"
+ android:singleLine="true"
+ />
</RelativeLayout>
<RelativeLayout
- android:id="@+id/console_boolean_group"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:padding="5dip"
- android:background="#80000000"
- android:fadingEdge="horizontal"
- android:fadingEdgeLength="25dip"
- android:visibility="gone"
- >
+ android:id="@+id/console_boolean_group"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:background="#80000000"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="25dip"
+ android:padding="5dip"
+ android:visibility="gone"
+ >
<TextView
- android:id="@+id/console_prompt"
- android:layout_height="wrap_content"
- android:layout_width="fill_parent"
- android:textAppearance="?android:attr/textAppearanceMedium"
- />
+ android:id="@+id/console_prompt"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ />
<Button
- android:id="@+id/console_prompt_no"
- android:text="@string/button_no"
- android:paddingTop="5dip"
- android:paddingBottom="10dip"
- android:paddingLeft="40dip"
- android:paddingRight="40dip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_alignParentRight="true"
- android:layout_below="@+id/console_prompt"
- android:clickable="false"
- />
+ android:id="@+id/console_prompt_no"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentRight="true"
+ android:layout_below="@+id/console_prompt"
+ android:clickable="false"
+ android:paddingBottom="10dip"
+ android:paddingLeft="40dip"
+ android:paddingRight="40dip"
+ android:paddingTop="5dip"
+ android:text="@string/button_no"
+ />
<Button
- android:id="@+id/console_prompt_yes"
- android:text="@string/button_yes"
- android:paddingTop="5dip"
- android:paddingBottom="10dip"
- android:paddingLeft="40dip"
- android:paddingRight="40dip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toLeftOf="@+id/console_prompt_no"
- android:layout_below="@+id/console_prompt"
- />
+ android:id="@+id/console_prompt_yes"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@+id/console_prompt"
+ android:layout_toLeftOf="@+id/console_prompt_no"
+ android:paddingBottom="10dip"
+ android:paddingLeft="40dip"
+ android:paddingRight="40dip"
+ android:paddingTop="5dip"
+ android:text="@string/button_yes"
+ />
</RelativeLayout>