Skip to content

Commit

Permalink
Simplified actionpicker layout
Browse files Browse the repository at this point in the history
  • Loading branch information
David Baumgold committed Jul 19, 2010
1 parent c9977c4 commit f885663
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions res/layout/actionpicker2.xml
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/RelativeLayout01"
android:gravity="center"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/logout_layout"
android:layout_alignParentBottom="true"
android:orientation="vertical">
<TextView
android:text="email placeholder"
android:id="@+id/user_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center" />
<Button
android:text="@string/logout_label"
android:id="@+id/logout_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20sp"
android:layout_marginRight="20sp" />
</LinearLayout>

<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<TableRow>
<Button
android:text="@string/contract_label"
android:id="@+id/contract_button"
android:layout_width="120sp"
android:layout_height="120sp"
android:layout_margin="10sp" />
<Button
android:text="@string/actionpicker_whiteboards_label"
android:id="@+id/actionpicker_whiteboards_button"
android:layout_width="120sp"
android:layout_height="120sp"
android:layout_margin="10sp" />
</TableRow>
</TableLayout>
</RelativeLayout>
2 changes: 1 addition & 1 deletion src/edu/brandeis/jbs/rh/ActionPicker.java
Expand Up @@ -18,7 +18,7 @@ public class ActionPicker extends Activity implements OnClickListener, RoommateH
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.actionpicker);
setContentView(R.layout.actionpicker2);

settings = getSharedPreferences(PREFS_FILE, MODE_PRIVATE);

Expand Down

0 comments on commit f885663

Please sign in to comment.