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:
@@ -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"
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user