mirror of
https://github.com/stom79/exodus-android-app
synced 2024-12-23 13:49:11 +01:00
Make reports scrollable
This commit is contained in:
parent
7009bea432
commit
9803a40ec7
@ -30,9 +30,6 @@ import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.eu.exodus_privacy.exodusprivacy.R;
|
||||
import org.eu.exodus_privacy.exodusprivacy.adapters.PermissionListAdapter;
|
||||
@ -44,7 +41,6 @@ import org.eu.exodus_privacy.exodusprivacy.objects.Report;
|
||||
import org.eu.exodus_privacy.exodusprivacy.objects.Tracker;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@ -121,6 +117,7 @@ public class ReportFragment extends Fragment {
|
||||
|
||||
reportBinding.permissions.setLayoutManager(new LinearLayoutManager(context));
|
||||
PermissionListAdapter permissionAdapter = new PermissionListAdapter(requestedPermissions);
|
||||
reportBinding.permissions.setNestedScrollingEnabled(false);
|
||||
reportBinding.permissions.setAdapter(permissionAdapter);
|
||||
|
||||
|
||||
@ -147,6 +144,7 @@ public class ReportFragment extends Fragment {
|
||||
//setup trackers lists
|
||||
reportBinding.trackers.setLayoutManager(new LinearLayoutManager(context));
|
||||
TrackerListAdapter trackerAdapter = new TrackerListAdapter(trackers,R.layout.tracker_item);
|
||||
reportBinding.trackers.setNestedScrollingEnabled(false);
|
||||
reportBinding.trackers.setAdapter(trackerAdapter);
|
||||
|
||||
//setup creator
|
||||
|
@ -1,11 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:tools="http://schemas.android.com/tools"
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
<data/>
|
||||
<RelativeLayout
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/base_info"
|
||||
@ -123,4 +126,5 @@
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</ScrollView>
|
||||
</layout>
|
Loading…
Reference in New Issue
Block a user