diff options
author | Ryan Hansberry <rhansby@gmail.com> | 2015-10-09 14:05:17 -0700 |
---|---|---|
committer | Ryan Hansberry <rhansby@gmail.com> | 2015-10-14 15:47:14 -0700 |
commit | 381c4b65027c62fa87db6038fe6de5f4e46fe990 (patch) | |
tree | fe668961f6d4c6128abc221263ab6b0f92e4ca37 /app/src/main/res | |
parent | 34cb0aac6364ef744e1326e054d292ecde1d7096 (diff) | |
download | connectbot-381c4b65027c62fa87db6038fe6de5f4e46fe990.tar.gz connectbot-381c4b65027c62fa87db6038fe6de5f4e46fe990.tar.bz2 connectbot-381c4b65027c62fa87db6038fe6de5f4e46fe990.zip |
TerminalView: Move TextView logic that allows text selection into its own class, which allows scrolling selection.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout-v11/item_terminal.xml | 47 | ||||
-rw-r--r-- | app/src/main/res/layout/item_terminal.xml | 2 |
2 files changed, 48 insertions, 1 deletions
diff --git a/app/src/main/res/layout-v11/item_terminal.xml b/app/src/main/res/layout-v11/item_terminal.xml new file mode 100644 index 0000000..6817554 --- /dev/null +++ b/app/src/main/res/layout-v11/item_terminal.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * ConnectBot: simple, powerful, open-source SSH client for Android + * Copyright 2007 Kenny Root, Jeffrey Sharkey + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <TextView + android:id="@+id/terminal_name_overlay" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:background="#aa000000" + android:padding="10dip" + android:textAppearance="?android:attr/textAppearanceLarge" + /> + + <org.connectbot.util.TerminalTextViewOverlay + android:id="@+id/terminal_text_overlay" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_centerInParent="true" + android:background="@android:color/transparent" + android:isScrollContainer="false" + android:ellipsize="end" + /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/item_terminal.xml b/app/src/main/res/layout/item_terminal.xml index b34c800..e79325d 100644 --- a/app/src/main/res/layout/item_terminal.xml +++ b/app/src/main/res/layout/item_terminal.xml @@ -25,7 +25,7 @@ > <TextView - android:id="@+id/terminal_overlay" + android:id="@+id/terminal_name_overlay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" |