Skip to content

Instantly share code, notes, and snippets.

@fleficher
Created March 12, 2021 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fleficher/61b0af9869bece23f9bd14e4a8908655 to your computer and use it in GitHub Desktop.
Save fleficher/61b0af9869bece23f9bd14e4a8908655 to your computer and use it in GitHub Desktop.
ViewBinding with include
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
android:id="@+id/mergeLayout"
layout="@layout/layout_merge" />
</LinearLayout>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/titleLbl"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment