Place two buttons side by side

by Droid » Mon, 06 Sep 2010 00:10:03 GMT


Sponsored Links
 OK, my buttons go one under the other, but I want them side by side.

How do I place two buttons side by side?

--



Place two buttons side by side

by Filip Havlicek » Mon, 06 Sep 2010 00:13:00 GMT


 All you want is here
 http://developer.android.com/reference/android/widget/LinearLayout.html 

2010/9/5 Droid <rod...@gmail.com>

>


Sponsored Links


Place two buttons side by side

by Droid » Mon, 06 Sep 2010 02:03:30 GMT


 Thanks, but cannot follow that page without a migraine.
Who can give me a snippet for two buttons side by side?



> >



Place two buttons side by side

by Frank Weiss » Mon, 06 Sep 2010 02:12:06 GMT


 Try the hello views page:
 http://developer.android.com/intl/de/resources/tutorials/views/index.html 

And please do use the resources before asking questions :-)

--



Place two buttons side by side

by Filip Havlicek » Mon, 06 Sep 2010 02:15:24 GMT


 Did you actually tried to read it? Everything you need to know is said in a
first few lines.

Best regards,
Filip Havlicek

2010/9/5 Droid <rod...@gmail.com>


> > >



Place two buttons side by side

by Droid » Mon, 06 Sep 2010 04:07:29 GMT


 I am coding continuously but have hit a brain fade time. So cannot
easily
read all that at this point. Later.




> > > >



Place two buttons side by side

by Droid » Mon, 06 Sep 2010 04:09:26 GMT


 Thanks for that easy reference, looks like its
android:layout_alignParentRight="true"
or something like that.




--



Place two buttons side by side

by Alex » Tue, 07 Sep 2010 21:16:42 GMT


Other Threads

1. Seg fault on Emulator startup?

Hi,
When I start the emulator with the command
emulator -avd Android2.0
it comes up with
Segmentation fault (core dumped)

if i start it without sound it works
emulator -no-audio -avd Android2.0

I'm using Fedora Core 12 64bit.
If i run
emulator -verbose -avd Android2.0

i get this,

emulator: found SDK root at /home/gary/android-sdk-linux
emulator: root virtual device file at /home/gary/.android/avd/
Android2.0.ini
emulator: virtual device content at /home/gary/.android/avd/
Android2.0.avd
emulator: virtual device config file: /home/gary/.android/avd/
Android2.0.avd/
config.ini
emulator:     locking user data image at /home/gary/.android/avd/
Android2.0.avd/userdata-
qemu.img
emulator:     locking cache image at /home/gary/.android/avd/
Android2.0.avd/
cache.img
emulator: ignoring non-existing SD Card at /home/gary/.android/avd/
Android2.0.avd/sdcard.img: No such file or
directory
emulator: found skin 'HVGA' in directory: /home/gary/android-sdk-linux/
platforms/android-2.0/
skins
emulator: autoconfig: -skin
HVGA
emulator: autoconfig: -skindir /home/gary/android-sdk-linux/platforms/
android-2.0/
skins
emulator: keyset loaded from: /home/gary/.android/
default.keyset
emulator: trying to load skin file '/home/gary/android-sdk-linux/
platforms/android-2.0/skins/HVGA/
layout'
emulator: skin network speed:
'full'
emulator: skin network delay:
'none'
emulator: registered 'boot-properties' qemud service
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
emulator: Adding boot property: 'dalvik.vm.heapsize' = '16m'
emulator: argv[00] = "emulator"
emulator: argv[01] = "-kernel"
emulator: argv[02] = "/home/gary/android-sdk-linux/platforms/
android-2.0/images//kernel-qemu"
emulator: argv[03] = "-initrd"
emulator: argv[04] = "/home/gary/android-sdk-linux/platforms/
android-2.0/images//ramdisk.img"
emulator: argv[05] = "-nand"
emulator: argv[06] = "system,size=0x4800000,initfile=/home/gary/
android-sdk-linux/platforms/android-2.0/images//system.img"
emulator: argv[07] = "-nand"
emulator: argv[08] = "userdata,size=0x4200000,file=/home/gary/.android/
avd/Android2.0.avd/userdata-qemu.img"
emulator: argv[09] = "-nand"
emulator: argv[10] = "cache,size=0x4200000,file=/home/gary/.android/
avd/Android2.0.avd/cache.img"
emulator: argv[11] = "-serial"
emulator: argv[12] = "android-kmsg"
emulator: argv[13] = "-serial"
emulator: argv[14] = "android-qemud"
emulator: argv[15] = "-append"
emulator: argv[16] = "qemu=1 console=ttyS0 android.checkjni=1
android.qemud=ttyS1 android.ndns=1"
emulator: argv[17] = "-m"
emulator: argv[18] = "96"
emulator: argv[19] = "-clock"
emulator: argv[20] = "unix"
emulator: mapping 'system' NAND image to /tmp/android/emulator-2nFiaj
emulator: rounding devsize up to a full eraseunit, now 480f000

Segmentation fault (core dumped)

Any idea why the emulator is getting a problem with sound? I'm trying
to write an app that uses sound so really need to get this working but
i'm stumped.

Thanks

Gary

-- 

2. WEP connection problem

Hi everyone, I have been reading a lot of your post lately, they have
been very helpfull for my Job, I have an issue trying to connect to an
Access Point secured with WEP through code, I have been able to
connect using WPA, WPA2 and OPEN security but with WEP is not getting
full connection. In fact the states of the Adapter goes like this:
idle ->associating->connecting->obtaining ip address->disconected, but
works when I use the UI.

Here are the two ways I have tried.

_wifiConfig = new WifiConfiguration();
_wifiConfig.SSID =   "\"" + _ssid + "\"";
_wifiConfig.wepKeys[0] = "\"" + _pass + "\"";
_wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);
_wifiConfig.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);
_wifiConfig.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED);
_wifiConfig.status = WifiConfiguration.Status.ENABLED;
_wifiReference = _wifiAdapter.addNetwork(_wifiConfig);
_wifiAdapter.enableNetwork(_wifiReference,true);

here is the other

_wifiConfig = new WifiConfiguration();
_wifiConfig.SSID =   "\"" + _ssid + "\"";
_wifiConfig.wepKeys[0] = "\"" + _pass + "\"";
_wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);
_wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40);
_wifiConfig.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104);
_wifiConfig.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);
_wifiConfig.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED);
_wifiConfig.status = WifiConfiguration.Status.ENABLED;
_wifiReference = _wifiAdapter.addNetwork(_wifiConfig);
_wifiAdapter.enableNetwork(_wifiReference,true);

Its there any errors here or someone has an idea what could be the
problem?

Best Regards
Mike

-- 

3. Big difficult to develop in Android :( (I'm italian)

4. String to spannable

5. Download a file from a URL extremely slow, am I doing it right?

6. SERIOUS problem w/ uninstalled apps and update notifications

7. Installing an app offline using usb