Skip to content

Instantly share code, notes, and snippets.

@yhdesai
Created February 26, 2018 12:20
Show Gist options
  • Save yhdesai/6a43f68d0ac7210496869563f5301053 to your computer and use it in GitHub Desktop.
Save yhdesai/6a43f68d0ac7210496869563f5301053 to your computer and use it in GitHub Desktop.
the input layout
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:orientation="horizontal">
<ImageButton
android:id="@+id/photoPickerButton"
android:layout_width="36dp"
android:layout_height="36dp"
android:background="@android:drawable/ic_menu_gallery" />
<EditText
android:id="@+id/messageEditText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1" />
<Button
android:id="@+id/sendButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:enabled="false"
android:text="send"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment