slight adjustments to layout
This commit is contained in:
parent
8681827b93
commit
b66adac25a
@ -19,7 +19,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
public void sendMessage(View view) {
|
public void sendMessage(View view) {
|
||||||
EditText editText1 = (EditText) findViewById(R.id.ipAddress);
|
EditText editText1 = (EditText) findViewById(R.id.ipAddress);
|
||||||
// String ipAddress = editText1.getText().toString();
|
// String ipAddress = editText1.getText().toString();
|
||||||
String ipAddress = "10.0.0.60";
|
String ipAddress = "172.16.202.14";
|
||||||
int port = 502;
|
int port = 502;
|
||||||
|
|
||||||
EditText editText2 = (EditText) findViewById(R.id.port);
|
EditText editText2 = (EditText) findViewById(R.id.port);
|
||||||
|
@ -8,11 +8,13 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView1"
|
android:id="@+id/textView1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="30dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:text="test"
|
android:text="I1"
|
||||||
|
android:textAlignment="center"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.881"
|
app:layout_constraintHorizontal_bias="0.881"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@ -20,56 +22,61 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView2"
|
android:id="@+id/textView2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="30dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:layout_marginTop="20dp"
|
android:text="I2"
|
||||||
android:text="bla"
|
android:textAlignment="center"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.843"
|
app:layout_constraintHorizontal_bias="0.881"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView1" />
|
tools:layout_editor_absoluteY="36dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView3"
|
android:id="@+id/textView3"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="30dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="21dp"
|
||||||
android:layout_marginTop="12dp"
|
android:text="I3"
|
||||||
android:text="foo"
|
android:textAlignment="center"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.849"
|
app:layout_constraintHorizontal_bias="0.881"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
tools:layout_editor_absoluteY="56dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView4"
|
android:id="@+id/textView4"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="30dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:layout_marginTop="16dp"
|
android:text="I4"
|
||||||
android:text="bar"
|
android:textAlignment="center"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.843"
|
app:layout_constraintHorizontal_bias="0.881"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView3" />
|
tools:layout_editor_absoluteY="77dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView5"
|
android:id="@+id/textView5"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="30dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:layout_marginTop="8dp"
|
android:text="I5"
|
||||||
android:text="TextView"
|
android:textAlignment="center"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.896"
|
app:layout_constraintHorizontal_bias="0.881"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView4" />
|
app:layout_constraintTop_toBottomOf="@+id/textView4" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView6"
|
android:id="@+id/textView6"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="30dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="20dp"
|
||||||
android:layout_marginTop="8dp"
|
android:text="I6"
|
||||||
android:text="TextView"
|
android:textAlignment="center"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.896"
|
app:layout_constraintHorizontal_bias="0.881"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView5" />
|
app:layout_constraintTop_toBottomOf="@+id/textView5" />
|
||||||
|
|
||||||
@ -99,9 +106,9 @@
|
|||||||
android:id="@+id/textView9"
|
android:id="@+id/textView9"
|
||||||
android:layout_width="68dp"
|
android:layout_width="68dp"
|
||||||
android:layout_height="22dp"
|
android:layout_height="22dp"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="20dp"
|
||||||
android:layout_marginTop="148dp"
|
android:layout_marginTop="48dp"
|
||||||
android:text="TextView"
|
android:text="AI1"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
@ -242,4 +249,13 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textView20" />
|
app:layout_constraintTop_toBottomOf="@+id/textView20" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView22"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="12dp"
|
||||||
|
android:text="AI1 Wert:"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/textView9"
|
||||||
|
tools:layout_editor_absoluteX="20dp" />
|
||||||
</android.support.constraint.ConstraintLayout>
|
</android.support.constraint.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user