1
0
mirror of https://github.com/balkian/Carrousel-Android.git synced 2024-12-22 21:18:13 +00:00

I8: Botones al UI

This commit is contained in:
Fernando Herrera 2011-03-10 00:05:11 +01:00
parent 2ec6d7f717
commit 4bb85fb0de
2 changed files with 26 additions and 4 deletions

View File

@ -1,7 +1,28 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="fill_parent" android:layout_width="match_parent"
android:layout_height="fill_parent" android:layout_height="match_parent">
/> <FrameLayout
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1" >
<ListView android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:drawSelectorOnTop="false"/>
</FrameLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_height="wrap_content" android:layout_width="match_parent">
<Button android:id="@+id/subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Subscribe to selected matches"/>
<Button android:id="@+id/quit"
android:layout_height="wrap_content"
android:text="Quit" android:layout_width="wrap_content"/>
</LinearLayout>
</LinearLayout>

View File

@ -23,6 +23,7 @@ public class Configuration extends ListActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
intent = new Intent(getBaseContext(), Results.class); intent = new Intent(getBaseContext(), Results.class);
startService(intent); startService(intent);
setContentView(R.layout.main);
ServiceConnection conn = new ServiceConnection() { ServiceConnection conn = new ServiceConnection() {
@Override @Override
public void onServiceConnected(ComponentName className, IBinder service) { public void onServiceConnected(ComponentName className, IBinder service) {