Linear Layout Android

Como realizar un aplicación utlizando linear layout con orientación vertical utilizando los controles TextView, ImageView y ScrollView :





activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent"
tools:context=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/name"
android:textAlignment="center"
android:textSize="@dimen/text_size"
tools:text="@string/name" />

<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_integration_instructions_black_48dp" />

<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:lineSpacingExtra="14sp"
android:text="@string/herramientas"
android:textSize="@dimen/text_size"
tools:text="@string/herramientas" />
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
strings.xml
<resources>
<string name="app_name">PerfilProf</string>
<string name="name">Portafolio Antonio A.S</string>
<string name="herramientas">Ingeniero en sistemas Computacionales.
\n\n Herramientas de Desarrollo.
\n\n Andorid Studio 4.0 -Lenguje utilizado Kotlin
\n\n Visual Studio Community 2019 tecnologias ocupadas ASP.NET Core,C#,
ASP.WEB API , etc
\n\n Visual Studio Code Lenguje Utilizado Angular , React,
\n\n Desarrollo móvil
\n\n Xamarin
\n\n Andorid
\n\n Flutter
\n\n Bases de Datos
\n\n SQL Server - Stored Procedure, Jobs, Fucntions, Views
\n\n SQL Developer ORACLE- Stored Procedure, Jobs, Fucntions, Views
\n\n MySQL Stored Procedure, Jobs, Fucntions, Views
\nYou should ask someone else about fishing, though.\n\n</string>
</resources>

dimens.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="text_size">20sp</dimen>
</resources>

No hay comentarios:

Publicar un comentario