Skip to content
Snippets Groups Projects
Commit dbf6f241 authored by Torsten Grote's avatar Torsten Grote
Browse files

Merge branch 'make-interface-list-scrollable' into 'master'

Make interface list scrollable

See merge request !3
parents 8c2e2f46 79b0b5fb
No related branches found
No related tags found
1 merge request!3Make interface list scrollable
...@@ -21,7 +21,7 @@ public class InterfacesFragment extends Fragment { ...@@ -21,7 +21,7 @@ public class InterfacesFragment extends Fragment {
@Override @Override
public void onViewCreated(@NonNull View v, @Nullable Bundle savedInstanceState) { public void onViewCreated(@NonNull View v, @Nullable Bundle savedInstanceState) {
super.onViewCreated(v, savedInstanceState); super.onViewCreated(v, savedInstanceState);
TextView textView = (TextView) v; TextView textView = v.findViewById(R.id.text);
textView.setText(NetworkUtils.getNetworkInterfaceSummary()); textView.setText(NetworkUtils.getNetworkInterfaceSummary());
} }
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
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="wrap_content">
android:fontFamily="monospace"
android:padding="16dp" <TextView
tools:text="@tools:sample/lorem/random" /> android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="monospace"
android:padding="16dp"
tools:text="@tools:sample/lorem/random" />
</ScrollView>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment