Skip to content

Instantly share code, notes, and snippets.

@fdundjer
Created June 26, 2018 09:22
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 fdundjer/352102b9ee9da95caeb583692782c8f1 to your computer and use it in GitHub Desktop.
Save fdundjer/352102b9ee9da95caeb583692782c8f1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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">
<Button
android:id="@+id/changeTintColorButton"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:textStyle="bold"
android:textSize="20dp"
android:layout_marginLeft="20dip"
android:layout_marginTop="5dip"
android:layout_marginRight="20dip"
android:layout_marginBottom="5dip"
android:text="Change tint color"
app:MvxBind="Click ChangeTintColorCommand" />
<ImageView
android:layout_below="@id/changeTintColorButton"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/logo"
android:scaleType="fitCenter"
app:MvxBind="TintColor NativeColor(ImageTintColor)" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment