• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How can I force a button to be at the bottom of the screen?

Hello all, I am trying to design an activity but I am having problems trrying to put the button at the bottom of the screen. ¿How can I do it?
This is my XML file:

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/linearLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">


    <TextView
        android:id="@+id/tvAViajar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginTop="56dp"
        android:layout_marginEnd="56dp"
        android:layout_marginBottom="25dp"
        android:text="@string/actividades"
        android:textColor="@color/colorPrimaryDark"
        android:textSize="28sp"
        android:textStyle="bold" />

    <TextView
        android:id="@+id/tvDestinoViaje"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="56dp"
        android:text="@string/destinoActividad"
        android:textSize="22sp" />


    <EditText
        android:id="@+id/etDestinoViaje"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginEnd="56dp"
        android:layout_marginBottom="12dp"
        android:ems="10"
        android:inputType="textPersonName"
        android:text="@string/etdestinoActividad" />

    <TextView
        android:id="@+id/tvFechaViaje"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginTop="6dp"
        android:layout_marginEnd="56dp"
        android:layout_marginBottom="5dp"
        android:text="@string/fechaActividad"
        android:textSize="22sp" />


    <EditText
        android:id="@+id/etFechaViaje"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginEnd="56dp"
        android:layout_marginBottom="15dp"
        android:ems="10"
        android:inputType="textPersonName"
        android:text="@string/etfechaActividad" />

    <TextView
        android:id="@+id/tvHoraViaje"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="56dp"
        android:layout_marginBottom="5dp"
        android:text="@string/horaActividad"
        android:textSize="22sp" />

    <EditText
        android:id="@+id/etHoraViaje"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="35dp"
        android:layout_marginEnd="56dp"
        android:ems="10"
        android:inputType="textPersonName"
        android:text="@string/ethoraActividad" />

    <Button
        android:id="@+id/button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:background="@drawable/ripple_effect_primary"
        android:text="@string/buscar_actividades"
        android:textColor="@color/white" />


</LinearLayout>

And this is how it looks like:

Captura.PNG


Thanks all.

Dropbox alternatives?

It was a spiel from Google that really got me motivated to start acting on this. It was their offer for additional storage [above the 15GB we get just for having Google accounts]. It said 100GB was $19.95 per year, 200GB for $29.95(?), and then it shot up to 2TB.

I've had a 1TB Dropbox account for years, but awhile back they upgraded it to 2TB--and increased its price. I don't want or need >1TB, nor do I want to pay for it.

I'm leaning toward Google, but wish they had something in the middle--more than 200GB but less than 2TB.

Another Googly problem

Full shit mode? :eek:

Excellent! This is being added to my running file of useful Android info. :)

Full something mode, hahaha.
Not poop, but maybe a word that I did not realize would be censored.

Poop works fine, though.

Anyway, glad to have been of some help.
There are many, many different devices, each with different features and functions.

So the more knowledge we share about how to work around all these different devices, the better.

It actually took the installation of an app for me to even find this, and I spent the better part of 6 months trying to avoid long pressing the circle navigation button.

Thanks to Greenify, it was located and delt with.

Mhl help

Hi*, new here. Just bought the z4, love the phone. But it does not have MhL compatibility. Is there a way to convert this to be MhL compatible? Can this be rooted to make this happen?
I use my phone for teaching, so my ability to play videos and movies on a TV is Paramount. I have no internet or wifi being that I live in the country. Anyone please help

Help 'Facebook upload failed - Tap for options' message

Hi all. I keep getting the above message/notification. I don't know what upload it is referring to, and when I 'Tap for options' all I get is a screen saying I don't have any pending stories.
Top left there's a <left arrow> to 'Your posts' which just takes me to my phone's home screen, and top right a camera icon which takes me to the photo gallery. If I cancel out of this the message has gone, but it keeps returning.
How do I get rid of this annoying message permanently?!
TIA
= = = =
Answer: I too had this problem; I did not like seeing that there was no solution yet. THIS is what worked for me; I am not saying it is THE solution, it is just one way to get around the annoying (and repetitive!) message: “Facebook upload failed - Tap for options” yet there were no options! I uninstalled Facebook from my phone; went back to Play Store & Reinstalled it. Problem gone.


Note: there is a Technipage listing titled: “Facebook for Android: Clear Stuck Uploads – Technipages” which eventually said to, in Android settings to “CLEAR DATA”. Not being a super-tech, I did not like the ominous warning which came with that; I did not want my Facebook data cleared; contacts cleared, etc.

SO, I realized that my laptop version of FB would survive the removal from my phone. Which is what led me to Uninstall from the phone, and Reinstall. It Worked!

Help android shows location in Richmond

Probably there is an error in Google's database of WiFi networks: your phone can see a network that Google thinks is elsewhere. Could be that someone has moved from Richmond, could just be a database error. I don't know the innards of Google's location algorithm (I imagine they regard those as confidential) so couldn't say how it handles conflicting information (e.g. if your phone sees networks that it thinks are in different places), so this is just speculating from the fact that WiFi location relies on Google's database of WiFi routers and their locations. But errors in this, sometimes from WiFi, sometimes cell information, do occur: I see 5-10 different reports of this sort here each year.

Help Problem Android Studio

when you've successfully compiled an app, you can run it in the emulator, which you may have to download and install separately, It integrate with Android Studio and you can run your app on it from within Android Studio. The emulator gives you a choice of emulated devices including a variety of phones and tablets with varying screen sizes and resolutions.

Stadia

ok so i just got stadia installed and have been playing for a few days now. i purchased all three of the latest Tomb Raider games along with Destiny 2, Samurai Showdown, and Final Fantasy XV.

so far i have been only playing the Tomb Raider game and it is just like playing a console game. it is hard to believe that i'm playing a game through just the chromecast ultra!!!!!

i think i might play final fantasy just to see what that is like.

i also need to figure out how to use the stadia controller on my pixelbook. i think i just need a type c to usb dongle and hook the controller via usb. unfortunately playing stadia thru the web browser will not work wirelessly just yet.

i do kind of wish that prices for the games were a tad cheaper.

Hacked?

My bluetooth has been connecting w/o authorization for some weeks.

Maybe it's an app you've got installed?

This evening, I screenshot this log from mirrorlink. Bluetooth is indicating mirrorlink activated BT today. I do not use samsung mirrorlink certainly not with a vehicle.

--------- beginning of main
11-29 20:21:51.466 7161 7161 D VPNC : LogActivity: onSaveInstanceState
11-29 20:24:20.462 7161 7161 D VPNC : LogActivity: onSaveInstanceState
11-29 20:24:36.131 7161 7161 D VPNC : LogActivity: onSaveInstanceState
11-29 20:24:38.117 7161 7161 D VPNC : MainActivity: onResume
11-29 20:24:38.117 7161 7161 D VPNC : MainActivity: active conn: null
11-29 20:24:38.117 7161 7161 D VPNC : ProfileClient: checkUpgrade
11-29 20:24:38.154 7161 7161 D VPNC : MainActivity: updateProfileList
11-29 20:24:38.155 7161 7161 I VPNC : MainActivity: GOT 0 profiles
11-29 20:24:38.158 7161 7161 D VPNC : MainActivity: recreateDialogs
11-29 20:24:38.158 7161 7161 D VPNC : WorkerService: enableShutdown: true
11-29 20:24:41.273 7161 7161 D VPNC : MainActivity: onPause
11-29 20:24:42.501 7161 7161 D VPNC : MainActivity: onDestroy
11-29 20:24:42.501 7161 7161 D VPNC : WorkerClient: doUnbindService
11-29 20:24:42.541 7161 7161 D VPNC : WorkerService: onUnbind
11-29 20:24:42.541 7161 7161 D VPNC : WorkerService: checkServiceStopSoon
11-29 20:24:47.551 7161 7161 D VPNC : WorkerService: stopIfNoActiveConnections
11-29 20:24:47.551 7161 7161 I VPNC : WorkerService: stopping service!
11-29 20:24:47.551 7161 7161 D VPNC : WorkerService: clearConnectionNotification
11-29 20:24:47.559 7161 7161 D IPSC : IPsecRemoteConnection: setServiceListener(null)
11-29 20:24:47.559 7161 7161 D IPSC : IPsecRemoteConnection: stopService()
11-29 20:24:47.568 7161 7161 D IPSC : IPsecRemoteConnection: stopService(): result version: 5
11-29 20:24:47.569 7161 7161 D IPSC : IPsecRemoteConnection: stopService() = IPSEC_OK
11-29 20:24:47.570 7161 7205 D VPNC : WorkerService: thread: timer service end
11-29 20:24:47.579 7161 7161 D VPNC : WorkerService: onDestroy
11-29 20:24:47.580 7161 7161 D VPNC : WorkerService: clearConnectionNotification
11-29 20:24:50.706 7161 7161 D VPNC : MainActivity: onCreate
11-29 20:24:50.742 7161 7161 D VPNC : MainActivity: new config
11-29 20:24:50.744 7161 7161 D VPNC : MainActivity: onResume
11-29 20:24:50.744 7161 7161 D VPNC : MainActivity: active conn: null
11-29 20:24:50.744 7161 7161 D VPNC : ProfileClient: checkUpgrade
11-29 20:24:50.750 7161 7161 D VPNC : MainActivity: updateProfileList
11-29 20:24:50.750 7161 7161 I VPNC : MainActivity: GOT 0 profiles
11-29 20:24:50.750 7161 7161 D VPNC : WorkerClient: doBindService
11-29 20:24:50.758 7161 7161 D VPNC : WorkerService: onCreate
11-29 20:24:50.758 7161 7161 I VPNC : WorkerService: Received start id 1: Intent { cmp=com.ipsec.vpnclient/.WorkerService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
11-29 20:24:50.758 7161 7161 D VPNC : WorkerService: userSerialNumber = 0
11-29 20:24:50.759 7161 15496 D VPNC : WorkerService: thread: startService
11-29 20:24:50.759 7161 15496 D IPSC : IPsecRemoteConnection: setServiceListener(com.ipsec.vpnclient.WorkerService@126e21a)
11-29 20:24:50.759 7161 15496 D IPSC : IPsecRemoteConnection: startService()
11-29 20:24:50.759 7161 7161 D VPNC : WorkerService: onBind
11-29 20:24:50.759 7161 15496 D IPSC : IPsecServiceInterface: startService(): serviceIntent: Intent { cmp=com.ipsec.service/.IPsecService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
11-29 20:24:50.759 7161 15497 D VPNC : WorkerService: thread: timer service started
11-29 20:24:50.763 7161 15496 D IPSC : IPsecRemoteConnection: startService() = IPSEC_OK
11-29 20:24:50.793 7161 7161 D VPNC : WorkerClient: onServiceConnected: ComponentInfo{com.ipsec.vpnclient/com.ipsec.vpnclient.WorkerService}
11-29 20:24:50.793 7161 7161 D VPNC : MainActivity: workerclient started: com.ipsec.vpnclient.WorkerService@126e21a
11-29 20:24:50.793 7161 7161 D VPNC : WorkerService: userSerialNumber = 0
11-29 20:24:50.793 7161 7161 D VPNC : WorkerService: start Handler (com.ipsec.vpnclient.MainActivity$1) {6870340}
11-29 20:24:50.793 7161 7161 D VPNC : MainActivity: recreateDialogs
11-29 20:24:50.793 7161 7161 D IPSC : IPsecRemoteConnection: onServiceConnected(): ComponentInfo{com.ipsec.service/com.ipsec.service.IPsecService} android.os.BinderProxy@dfa1279
11-29 20:24:50.794 7161 7161 D IPSC : IPsecRemoteConnection: onServiceConnected(): startService(): version: 5
11-29 20:24:50.794 7161 7161 D VPNC : WorkerService: onServiceStatusChanged: IPSEC_OK
11-29 20:24:55.316 7161 7161 D VPNC : WorkerService: enableShutdown: false
11-29 20:24:55.343 7161 7161 D VPNC : MainActivity: onPause
11-29 20:24:55.359 7161 7161 D VPNC : LogActivity: onCreate
11-29 20:24:55.375 7161 7161 D VPNC : LogActivity: onTabSelected 0
11-29 20:24:55.377 7161 7161 D VPNC : LogActivity: ft.add 0
11-29 20:24:55.380 7161 7161 D VPNC : LogActivity: onCreateView 0
11-29 20:24:55.384 7161 15508 D VPNC : WorkerService: getLog
11-29 20:24:55.384 7161 15508 D IPSC : IPsecRemoteConnection: getLogReader()
11-29 20:24:55.942 7161 7161 D VPNC : MainActivity: onSaveInstanceState
11-29 20:25:03.314 7161 7161 D VPNC : LogActivity: onTabUnselected 0
11-29 20:25:03.314 7161 7161 D VPNC : LogActivity: onTabSelected 1
11-29 20:25:03.314 7161 7161 D VPNC : LogActivity: ft.add 1
11-29 20:25:03.320 7161 7161 D VPNC : LogActivity: onCreateView 1

Yeh, that looks busy. Do you have any things like public rental bikes within range of your phone?

Filter

Back
Top Bottom