-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Invoke wildcard Btn in CHIPTool (#25587)
- Loading branch information
1 parent
df0a9ee
commit 1000644
Showing
5 changed files
with
197 additions
and
18 deletions.
There are no files selected for viewing
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
70 changes: 70 additions & 0 deletions
70
examples/android/CHIPTool/app/src/main/res/layout/invoke_dialog.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?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="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp"> | ||
|
||
<TextView | ||
android:id="@+id/titleText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/invoke_dialog_title_text" | ||
android:textSize="22sp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<EditText | ||
android:id="@+id/invokeValueEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:hint="@string/invoke_dialog_write_value_hint" | ||
android:inputType="text" | ||
android:textSize="16sp" | ||
android:layout_marginBottom="8dp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/titleText" /> | ||
|
||
<EditText | ||
android:id="@+id/timedRequestTimeoutEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:hint="@string/invoke_dialog_timed_request_timeout_hint" | ||
android:inputType="number" | ||
android:textSize="16sp" | ||
android:layout_marginBottom="8dp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/invokeValueEd" /> | ||
|
||
<EditText | ||
android:id="@+id/imTimeoutEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:hint="@string/invoke_dialog_im_timeout_hint" | ||
android:inputType="number" | ||
android:textSize="16sp" | ||
android:layout_marginBottom="8dp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/timedRequestTimeoutEd" | ||
app:layout_constraintBottom_toTopOf="@id/exampleHint"/> | ||
|
||
<TextView | ||
android:id="@+id/exampleHint" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/invoke_dialog_user_guide_hint" | ||
android:textSize="10sp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/imTimeoutEd" | ||
app:layout_constraintBottom_toTopOf="@id/invokeBtn" | ||
tools:ignore="SmallSp" /> | ||
|
||
<Button | ||
android:id="@+id/invokeBtn" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/invoke_dialog_write_btn_text" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> |
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
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
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