implemented connecting and disconnecting to embedded
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:contentDescription="@string/button_power"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
android:scaleType="fitCenter"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
</LinearLayout>
|
||||
@@ -49,6 +50,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_back"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<ImageButton
|
||||
android:id="@+id/iv_home"
|
||||
@@ -60,6 +62,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_home"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<ImageButton
|
||||
android:id="@+id/iv_menu"
|
||||
@@ -71,6 +74,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_menu"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -94,6 +98,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_up"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_empty_top_right"
|
||||
@@ -117,6 +122,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_left"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<ImageButton
|
||||
android:id="@+id/iv_ok"
|
||||
@@ -128,6 +134,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_ok"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<ImageButton
|
||||
android:id="@+id/iv_right"
|
||||
@@ -139,6 +146,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_right"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -162,6 +170,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_down"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_empty_bottom_right"
|
||||
@@ -191,6 +200,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_minus"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_empty_center"
|
||||
@@ -207,6 +217,7 @@
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/button_plus"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -220,15 +231,30 @@
|
||||
android:layout_height="1dp"
|
||||
android:layout_margin="4dp"
|
||||
android:background="#7F7F7F"/>
|
||||
<CheckBox
|
||||
android:id="@+id/cb_use_emitter"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:textSize="18sp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:text="@string/use_emitter"
|
||||
android:checked="false"/>
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<CheckBox
|
||||
android:id="@+id/cb_use_emitter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:textSize="18sp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:text="@string/use_emitter"
|
||||
android:layout_weight="1"
|
||||
android:checked="false"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_connection_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:gravity="center_vertical|end"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_weight="1"
|
||||
android:textSize="18sp"
|
||||
android:textColor="#FF7F7F"
|
||||
android:text="@string/status_not_connected"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -253,18 +279,20 @@
|
||||
android:autofillHints=""
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="18sp"
|
||||
android:hint="@string/default_ip"
|
||||
android:inputType="text"
|
||||
android:text="@string/default_ip"
|
||||
android:layout_height="60dp"
|
||||
android:layout_weight="1">
|
||||
</EditText>
|
||||
<ImageButton
|
||||
android:id="@+id/btn_connection_status"
|
||||
android:id="@+id/btn_connect_emitter"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:src="@mipmap/connect_emitter"
|
||||
android:padding="12dp"
|
||||
android:src="@mipmap/button_link"
|
||||
android:scaleType="fitCenter"
|
||||
android:contentDescription="@string/connect"
|
||||
android:stateListAnimator="@animator/button_elevation_anim"
|
||||
style="?android:buttonBarButtonStyle"/>
|
||||
</LinearLayout>
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user