Skip to content

Commit

Permalink
refs #39 Convert this layout into a linear layout for simplicity sake…
Browse files Browse the repository at this point in the history
…. The right thing to do is put the layout into a scrollview and then organize the contained layout

so that it scrolls when the keyboard comes up.  I've never understood why this login panel is so difficult to make it work.  Will stick with this for the samsung because it works.
  • Loading branch information
truedat101 committed Oct 14, 2013
1 parent 0dec60e commit 92fa914
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
android:label="@string/app_name"
android:theme="@style/Theme.Transparent"
android:screenOrientation="landscape"
android:windowSoftInputMode="stateHidden"
android:windowSoftInputMode="adjustResize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
40 changes: 20 additions & 20 deletions res/layout-large-land/login.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rl_dialog"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/rounded_border"
android:layout_gravity="center"
android:gravity="top|center"
android:orientation="vertical"
android:layout_margin="50dip">

<TextView
Expand All @@ -15,15 +16,25 @@
android:layout_marginTop="10dip"
android:textColor="@color/black"
android:textSize="12sp"
android:layout_centerHorizontal="true"/>
/>

<View
<!-- <View
android:id="@+id/view_separator"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="@color/gray"
android:layout_margin="5dip"
android:layout_below="@id/tv_title"/>
android:layout_below="@id/tv_title"/> -->

<TextView
android:id="@+id/tv_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dip"
android:text="@string/server"
android:textColor="@color/black"
android:textSize="12sp"
/>

<EditText
android:id="@+id/et_server_ip"
Expand All @@ -36,18 +47,8 @@
android:digits="0123456789."
android:singleLine="true"
android:layout_margin="10dip"
android:layout_centerInParent="true" />
/>

<TextView
android:id="@+id/tv_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dip"
android:text="@string/server"
android:textColor="@color/black"
android:textSize="12sp"
android:layout_above="@+id/et_server_ip"
android:layout_centerInParent="true" />

<Button
android:id="@+id/bt_connect"
Expand All @@ -56,17 +57,16 @@
android:text="@string/connect"
android:textSize="12sp"
android:layout_marginTop="30dip"
android:layout_below="@+id/et_server_ip"
android:layout_centerInParent="true"/>

<View
<!-- <View
android:id="@+id/view_separator2"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="@color/gray"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:layout_marginBottom="20dip"
android:layout_alignParentBottom="true"/>
android:layout_alignParentBottom="true"/> -->

</RelativeLayout>
</LinearLayout>

0 comments on commit 92fa914

Please sign in to comment.