2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Top margin should be in the title, not in the view

This commit is contained in:
Albert Vaca
2015-09-12 11:53:06 -07:00
parent 16cffda2e2
commit 6b18c2f28e
2 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="16dip" android:paddingLeft="16dip"
android:paddingRight="16dip"
tools:context=".MainActivity" tools:context=".MainActivity"
android:id="@+id/listView1" android:id="@+id/listView1"
android:addStatesFromChildren="true" android:addStatesFromChildren="true"

View File

@@ -77,7 +77,7 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb
TextView text = new TextView(inflater.getContext()); TextView text = new TextView(inflater.getContext());
text.setText(getString(R.string.pairing_description)); 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); ((ListView) rootView).addHeaderView(text);
return rootView; return rootView;