I'm new to android and the positioning elements are way different than as it is for web.
So What I want to do is this:
Login: ______ Password: _____ What I can get is this, by setting the linearLayout to vertical orientation:
Login: __ Password: __ Or this, with horizontal orientation:
Login:_____Password:_____ How may I mix it and achieve what I need?
Current 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:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:id="@+id/mainActivity" tools:context=".MainActivity"> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:text="Login:" android:textSize="14pt"/> <EditText android:layout_width="wrap_content" android:layout_height="match_parent" android:id="@+id/loginText"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:text="Senha:" android:textSize="14pt"/> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/passText"/> </LinearLayout>