mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
improve proxy settings UI
This commit is contained in:
@@ -82,8 +82,12 @@ public class ProxyListAdapter extends BaseAdapter {
|
||||
}
|
||||
if (proxyUrl.equals(selectedProxy)) {
|
||||
checkmark.setVisibility(View.VISIBLE);
|
||||
status.setVisibility(View.VISIBLE);
|
||||
status.setText(getConnectivityString());
|
||||
if(dcContext.isConfigured() == 1 && dcContext.getConfigInt(CONFIG_PROXY_ENABLED) == 1) {
|
||||
status.setVisibility(View.VISIBLE);
|
||||
status.setText(getConnectivityString());
|
||||
} else {
|
||||
status.setVisibility(View.GONE);
|
||||
}
|
||||
} else {
|
||||
checkmark.setVisibility(View.GONE);
|
||||
status.setVisibility(View.GONE);
|
||||
|
||||
@@ -4,12 +4,9 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:background="?attr/conversation_list_item_background"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:paddingEnd="6dp"
|
||||
>
|
||||
|
||||
<TextView
|
||||
@@ -19,6 +16,8 @@
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toStartOf="@id/share"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingTop="10dp"
|
||||
android:drawablePadding="5dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
@@ -34,6 +33,8 @@
|
||||
android:layout_below="@+id/host"
|
||||
android:layout_toStartOf="@id/share"
|
||||
android:layout_marginTop="5dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:gravity="center_vertical"
|
||||
>
|
||||
|
||||
@@ -80,11 +81,10 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/share"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_toStartOf="@id/delete"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:contentDescription="@string/menu_share"
|
||||
android:background="@drawable/touch_highlight_background"
|
||||
android:src="@drawable/ic_share_white_24dp"
|
||||
@@ -93,8 +93,8 @@
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:contentDescription="@string/delete"
|
||||
|
||||
Reference in New Issue
Block a user