Revision fee0d4aa
b/res/layout/addexternalnode.xml | ||
---|---|---|
10 | 10 |
android:layout_marginLeft="10dip" android:layout_marginTop="10dip"></TextView> |
11 | 11 |
<EditText android:layout_height="wrap_content" |
12 | 12 |
android:layout_width="fill_parent" android:layout_marginLeft="20dip" |
13 |
android:layout_marginRight="30dip" android:id="@+id/ip_address"></EditText> |
|
13 |
android:layout_marginRight="30dip" android:id="@+id/ip_address" android:lines="1" android:scrollHorizontally="true"></EditText>
|
|
14 | 14 |
<TextView android:id="@+id/textView2" android:layout_width="wrap_content" |
15 | 15 |
android:layout_height="wrap_content" android:layout_marginLeft="10dip" |
16 | 16 |
android:text="Port"></TextView> |
b/res/layout/addtextfile.xml | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/RelativeLayout" android:layout_height="fill_parent" android:layout_width="fill_parent"> |
4 | 4 |
<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="Filename" android:id="@+id/filename_textview" android:layout_marginLeft="22dip"></TextView> |
5 |
<EditText android:id="@+id/file_name_text" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_below="@+id/filename_textview" android:layout_marginLeft="22dip" android:layout_marginRight="30dip"></EditText> |
|
5 |
<EditText android:id="@+id/file_name_text" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_below="@+id/filename_textview" android:layout_marginLeft="22dip" android:layout_marginRight="30dip" android:lines="1" android:scrollHorizontally="true"></EditText>
|
|
6 | 6 |
<TextView android:layout_below="@+id/file_name_text" android:layout_height="wrap_content" android:id="@+id/file_contents_view" android:layout_width="wrap_content" android:text="File Content" android:layout_marginLeft="22dip"></TextView> |
7 | 7 |
<EditText android:layout_width="fill_parent" android:id="@+id/new_file_text" android:layout_above="@+id/add_text_file_buttons" android:layout_height="fill_parent" android:layout_below="@+id/file_contents_view" android:layout_marginLeft="22dip" android:layout_marginRight="30dip" android:gravity="top"></EditText> |
8 | 8 |
<LinearLayout android:layout_height="wrap_content" android:id="@+id/add_text_file_buttons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_alignParentBottom="true"> |
b/res/layout/updateloadbalancer.xml | ||
---|---|---|
15 | 15 |
android:layout_gravity="center_vertical" android:text="Name" |
16 | 16 |
android:layout_width="wrap_content"></TextView> |
17 | 17 |
<EditText android:layout_height="wrap_content" android:layout_weight="1" android:layout_marginRight="20dip" |
18 |
android:layout_width="wrap_content" android:id="@+id/edit_lb_name_text"> |
|
18 |
android:layout_width="wrap_content" android:id="@+id/edit_lb_name_text" android:lines="1" android:scrollHorizontally="true">
|
|
19 | 19 |
<requestFocus></requestFocus> |
20 | 20 |
</EditText> |
21 | 21 |
</TableRow> |
b/res/layout/view_add_loadbalancer.xml | ||
---|---|---|
27 | 27 |
android:text="Name"></TextView> |
28 | 28 |
<EditText android:layout_height="wrap_content" |
29 | 29 |
android:layout_width="wrap_content" android:layout_weight="1" |
30 |
android:id="@+id/edit_lb_name_text" android:layout_marginRight="20dip"> |
|
30 |
android:id="@+id/edit_lb_name_text" android:layout_marginRight="20dip" android:lines="1" android:scrollHorizontally="true">
|
|
31 | 31 |
<requestFocus></requestFocus> |
32 | 32 |
</EditText> |
33 | 33 |
</TableRow> |
b/src/com/rackspacecloud/android/ViewLoadBalancerActivity.java | ||
---|---|---|
24 | 24 |
import android.view.View; |
25 | 25 |
import android.view.View.OnClickListener; |
26 | 26 |
import android.widget.Button; |
27 |
import android.widget.HorizontalScrollView; |
|
27 | 28 |
import android.widget.LinearLayout; |
28 | 29 |
import android.widget.TextView; |
29 | 30 |
|
... | ... | |
366 | 367 |
if(virtualIps != null){ |
367 | 368 |
for (int i = 0; i < virtualIps.size(); i++) { |
368 | 369 |
TextView tv = new TextView(this.getBaseContext()); |
369 |
tv.setLayoutParams(((TextView)findViewById(R.id.view_port)).getLayoutParams()); // easy quick styling! :) |
|
370 |
//tv.setLayoutParams(((TextView)findViewById(R.id.view_port)).getLayoutParams()); // easy quick styling! :)
|
|
370 | 371 |
tv.setTypeface(tv.getTypeface(), 1); // 1 == bold |
371 | 372 |
tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20); |
372 | 373 |
tv.setTextColor(Color.WHITE); |
373 | 374 |
tv.setText(virtualIps.get(i).getAddress()); |
374 |
layout.addView(tv, layoutIndex++); |
|
375 |
HorizontalScrollView scroll = new HorizontalScrollView(this.getBaseContext()); |
|
376 |
scroll.setLayoutParams(((TextView)findViewById(R.id.view_port)).getLayoutParams()); // easy quick styling! :) |
|
377 |
scroll.setScrollbarFadingEnabled(true); |
|
378 |
scroll.addView(tv); |
|
379 |
layout.addView(scroll, layoutIndex++); |
|
375 | 380 |
} |
376 | 381 |
} |
377 | 382 |
|
... | ... | |
408 | 413 |
tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20); |
409 | 414 |
tv.setTextColor(Color.WHITE); |
410 | 415 |
tv.setText(addresses.get(i)); |
411 |
layout.addView(tv, layoutIndex++); |
|
416 |
HorizontalScrollView scroll = new HorizontalScrollView(this.getBaseContext()); |
|
417 |
scroll.setLayoutParams(((TextView)findViewById(R.id.view_port)).getLayoutParams()); // easy quick styling! :) |
|
418 |
scroll.setScrollbarFadingEnabled(true); |
|
419 |
scroll.addView(tv); |
|
420 |
layout.addView(scroll, layoutIndex++); |
|
412 | 421 |
} |
413 | 422 |
} |
414 | 423 |
} |
Also available in: Unified diff