Skip to content

Commit

Permalink
Settings header
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoPrimi committed Jan 28, 2017
1 parent 5b6cac2 commit 671bc29
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public TestResultListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int
@Override
public void onBindViewHolder(TestResultListAdapter.ViewHolder holder, final int position) {
final JSONObject i = values.get(position);
//TODO use only input and blocking not the entire json
try {
holder.txtTitle.setText(i.getString("input"));
} catch (JSONException e) {
Expand Down
21 changes: 21 additions & 0 deletions app/src/main/res/layout/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notifications"
android:textSize="13dp"
android:textColor="@color/color_off_black" />

<android.support.v7.widget.SwitchCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -67,6 +74,13 @@
android:layout_alignParentEnd="true" />
</RelativeLayout>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/privacy"
android:textSize="13dp"
android:textColor="@color/color_off_black" />

<android.support.v7.widget.SwitchCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -132,6 +146,13 @@
android:checked="true"
android:textColor="@color/color_ooni_blue" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/advanced_settings"
android:textSize="13dp"
android:textColor="@color/color_off_black" />

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 671bc29

Please sign in to comment.