mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2025-01-22 07:56:30 +00:00
1. peer list layout fix
This commit is contained in:
parent
04f2537145
commit
13af25ae08
@ -38,7 +38,7 @@ class SelectDNSInfoListAdapter(
|
|||||||
dnsInfoHolder.checkbox = listItem.findViewById(R.id.checkbox) as CheckBox
|
dnsInfoHolder.checkbox = listItem.findViewById(R.id.checkbox) as CheckBox
|
||||||
dnsInfoHolder.countryFlag = listItem.findViewById(R.id.countryFlag) as ImageView
|
dnsInfoHolder.countryFlag = listItem.findViewById(R.id.countryFlag) as ImageView
|
||||||
dnsInfoHolder.dnsInfoText = listItem.findViewById(R.id.hostInfoText) as TextView
|
dnsInfoHolder.dnsInfoText = listItem.findViewById(R.id.hostInfoText) as TextView
|
||||||
dnsInfoHolder.ping = listItem.findViewById(R.id.ping) as TextView
|
dnsInfoHolder.ping = listItem.findViewById(R.id.frame) as TextView
|
||||||
listItem.tag = dnsInfoHolder
|
listItem.tag = dnsInfoHolder
|
||||||
} else {
|
} else {
|
||||||
dnsInfoHolder = listItem.tag as DNSInfoHolder
|
dnsInfoHolder = listItem.tag as DNSInfoHolder
|
||||||
|
@ -1,57 +1,64 @@
|
|||||||
<RelativeLayout
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/frame"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:scaleX="0.4"
|
|
||||||
android:scaleY="0.4"
|
|
||||||
android:background="@drawable/checkbox_rounded_corner"
|
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_centerInParent="true">
|
|
||||||
<CheckBox
|
|
||||||
android:id="@+id/checkbox"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:theme="@style/SwitchTheme"
|
|
||||||
android:scaleX="3"
|
|
||||||
android:scaleY="3"
|
|
||||||
android:layout_margin="10dp"
|
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:checked="false"/>
|
|
||||||
</FrameLayout>
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/countryFlag"
|
android:id="@+id/countryFlag"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="5dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_toEndOf="@+id/frame"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:layout_centerInParent="true"/>
|
app:layout_constraintStart_toEndOf="@+id/hostInfoText"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/hostInfoText"
|
android:id="@+id/hostInfoText"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:layout_marginEnd="60dp"
|
|
||||||
android:minHeight="45dp"
|
android:minHeight="45dp"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:layout_toEndOf="@+id/countryFlag"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_centerInParent="true"/>
|
app:layout_constraintEnd_toStartOf="@+id/ping"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/countryFlag"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/ping"
|
android:id="@+id/ping"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:paddingEnd="10dp"
|
|
||||||
android:minHeight="45dp"
|
android:minHeight="45dp"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:layout_alignParentEnd="true"
|
app:layout_constraintEnd_toStartOf="@+id/frame"
|
||||||
android:layout_centerInParent="true"/>
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
</RelativeLayout>
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/frame"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/checkbox_rounded_corner"
|
||||||
|
android:scaleX="0.4"
|
||||||
|
android:scaleY="0.4"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/checkbox"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:background="@android:color/transparent"
|
||||||
|
android:checked="false"
|
||||||
|
android:scaleX="3"
|
||||||
|
android:scaleY="3"
|
||||||
|
android:theme="@style/SwitchTheme" />
|
||||||
|
</FrameLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
x
Reference in New Issue
Block a user