-
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.
[Android] Add Endpoint Number in Fragment (#25892)
- Loading branch information
1 parent
16ebad0
commit 4f5c88f
Showing
4 changed files
with
51 additions
and
25 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
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
50 changes: 30 additions & 20 deletions
50
examples/android/CHIPTool/app/src/main/res/layout/address_update_fragment.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 |
---|---|---|
@@ -1,35 +1,45 @@ | ||
<?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="match_parent" | ||
android:layout_height="match_parent" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
<EditText | ||
android:id="@+id/fabricIdEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
android:inputType="text" | ||
android:textSize="20sp" | ||
android:hint="@string/enter_fabric_id_hint_text"/> | ||
android:layout_height="match_parent"> | ||
|
||
<EditText | ||
android:id="@+id/fabricIdEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="20sp" | ||
android:hint="@string/enter_fabric_id_hint_text" | ||
android:inputType="number" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintRight_toLeftOf="@+id/deviceIdEd"/> | ||
|
||
<EditText | ||
android:id="@+id/deviceIdEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:inputType="number" | ||
android:textSize="20sp" | ||
android:hint="@string/enter_device_id_hint_text" | ||
app:layout_constraintStart_toEndOf="@+id/fabricIdEd" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<EditText | ||
android:id="@+id/deviceIdEd" | ||
android:id="@+id/epIdEd" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="16dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
android:layout_toEndOf="@id/fabricIdEd" | ||
android:inputType="text" | ||
android:hint="@string/enter_endpoint_id_hint_text" | ||
android:inputType="number" | ||
android:textSize="20sp" | ||
android:hint="@string/enter_device_id_hint_text"/> | ||
android:text ="1" | ||
app:layout_constraintStart_toEndOf="@+id/deviceIdEd" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<androidx.constraintlayout.widget.Barrier | ||
android:id="@+id/barrier" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:barrierDirection="bottom" | ||
app:constraint_referenced_ids="fabricIdEd,deviceIdEd" /> | ||
app:constraint_referenced_ids="fabricIdEd,deviceIdEd,epIdEd" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> |