Skip to content

Instantly share code, notes, and snippets.

@Filmaluco
Created November 25, 2022 11:45
Show Gist options
  • Save Filmaluco/57a1fbacc905bb18cd6e7e9fddab876b to your computer and use it in GitHub Desktop.
Save Filmaluco/57a1fbacc905bb18cd6e7e9fddab876b to your computer and use it in GitHub Desktop.
fragment_second
<?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:id="@+id/scrollView2"
android:layout_width="0dp" android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/tvContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="monospace" android:textSize="16sp"
android:text="(none)" />
</ScrollView>
<ImageView
android:id="@+id/imageView"
android:layout_width="64dp" android:layout_height="64dp"
android:layout_marginEnd="16dp" android:layout_marginTop="16dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@mipmap/ic_launcher" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment