Skip to content

Commit

Permalink
Updated UI
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 9, 2018
1 parent 992c3ab commit c3791f7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
27 changes: 14 additions & 13 deletions Android/app/src/main/res/layout/peripheral_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,34 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView android:src="@drawable/ic_bluetooth"
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent" />
android:src="@drawable/ic_bluetooth" />

<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="4"
android:layout_height="wrap_content">
android:orientation="vertical">

<TextView
android:id="@+id/tvName"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="DEVICE NAME"
android:textColor="#000000"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:textSize="20sp"
android:textStyle="bold" />

<TextView
android:id="@+id/tvAddress"
android:textSize="14sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="DEVICE ADDRESS"
android:textColor="#000000"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:textSize="14sp" />

</LinearLayout>

Expand Down
27 changes: 14 additions & 13 deletions Android/app/src/main/res/layout/peripheral_item_2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,30 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:layout_width="wrap_content"

android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ic_bluetooth" />

<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="4"
android:layout_height="wrap_content">
android:orientation="vertical">

<TextView
android:id="@+id/tvAddress"
android:textSize="20sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="DEVICE ADDRESS"
android:textColor="#000000"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:textSize="20sp"
android:textStyle="bold" />

</LinearLayout>

<ImageView android:src="@drawable/ic_bluetooth"

android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent" />

<!-- <TextView
android:id="@+id/tvRssi"
android:text="-51"
Expand Down

0 comments on commit c3791f7

Please sign in to comment.