-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
App: Use RecyclerView and map to support various model
This patch replaces buttons and textView to RecyclerView for supporting various model. Also, MainService's class variable tensorQueryServer is replaced to MutableMap. Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
- Loading branch information
Showing
5 changed files
with
93 additions
and
38 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
18 changes: 4 additions & 14 deletions
18
ml_inference_offloading/src/main/res/layout/activity_main.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,20 +1,10 @@ | ||
<?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:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
<Button | ||
android:id="@+id/start" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Start" /> | ||
<Button | ||
android:id="@+id/stop" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Stop" /> | ||
<TextView | ||
android:id="@+id/port" | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/model_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
android:layout_height="wrap_content" /> | ||
</LinearLayout> |
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<Button | ||
android:id="@+id/start" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Start" /> | ||
<Button | ||
android:id="@+id/stop" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Stop" /> | ||
<TextView | ||
android:id="@+id/port" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
</LinearLayout> |