diff --git a/res/layout/activity_list.xml b/res/layout/activity_list.xml index 5e9ee5c1..88188a28 100644 --- a/res/layout/activity_list.xml +++ b/res/layout/activity_list.xml @@ -2,7 +2,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="16dip" + android:paddingLeft="16dip" + android:paddingRight="16dip" tools:context=".MainActivity" android:id="@+id/listView1" android:addStatesFromChildren="true" diff --git a/src/org/kde/kdeconnect/UserInterface/PairingFragment.java b/src/org/kde/kdeconnect/UserInterface/PairingFragment.java index 995b112e..4cb92751 100644 --- a/src/org/kde/kdeconnect/UserInterface/PairingFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/PairingFragment.java @@ -77,7 +77,7 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb TextView text = new TextView(inflater.getContext()); text.setText(getString(R.string.pairing_description)); - text.setPadding(0, 0, 0, (int) (12 * getResources().getDisplayMetrics().density)); + text.setPadding(0, (int) (16 * getResources().getDisplayMetrics().density), 0, (int) (12 * getResources().getDisplayMetrics().density)); ((ListView) rootView).addHeaderView(text); return rootView;