2
I’ve tried many things here to make my Linearlayout stand at the bottom of the screen but I can’t do that. I need to do this with Linear which has id= "underneath" Does anyone know?
Follows my xml:
<?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"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="Teste"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</ScrollView>
<LinearLayout
android:id="+id/embaixo"
android:layout_gravity="end"
android:gravity="end"
android:padding="10dp"
android:background="@color/colorAccent"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="40dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/marca_simplifica" />
</LinearLayout>
</LinearLayout>
Hello @Aline, ever considered using weights ? If they don’t fit, you can paste the linear layout inside a relativelayout and throw it to the bottom.
– Dev
How????????? Will I try to do it here
– Aline
Did you manage to do Aline ? I gave an answer below, maybe serve as an example for your problem
– Dev
I did. But as a beginner I understood more the other answer..........
– Aline
Ah is very simple haha say that there I have 2 linearlayout inside a relativelayout, one will stay at the top and one at the bottom of the screen
– Dev
Ah understood now Matheus :)
– Aline
Soon I’ll ask another question Matheus... Because I’m having trouble getting the button back on a Tablayout... :/
– Aline