Created
November 18, 2023 12:39
-
-
Save ziadasem/01f2373d2c34b6e15d9807e8447679c5 to your computer and use it in GitHub Desktop.
activity_main file for MainActivity Java Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="match_parent" | |
android:padding="8sp" | |
android:orientation="vertical"> | |
<TextView | |
android:id="@+id/textView" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textSize="20sp" | |
android:textStyle="bold" | |
android:text="Send Text" /> | |
<com.google.android.material.textfield.TextInputLayout | |
android:layout_width="match_parent" | |
android:id="@+id/inputField" | |
android:layout_marginTop="8sp" | |
android:layout_height="wrap_content"> | |
<com.google.android.material.textfield.TextInputEditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:hint="write here!" /> | |
</com.google.android.material.textfield.TextInputLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
> | |
<Button | |
android:id="@+id/flutterJavaNavigationButton" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="wrap_content" | |
android:layout_marginHorizontal="5dp" | |
android:text="Send to Flutter" /> | |
<Button | |
android:layout_weight="1" | |
android:id="@+id/kotlinSendingButton" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginHorizontal="5dp" | |
android:text="Send to Kotlin" /> | |
</LinearLayout> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/resultTV" | |
/> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment