Skip to content

Commit 07dae23

Browse files
committed
scroll view for smooth scroll
1 parent 1410615 commit 07dae23

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

editor.txt

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
#include <stdio.h>
2-
#include <errno.h>
3-
#include <string.h>
4-
5-
extern int errno ;
2+
#include <float.h>
63

74
int main () {
8-
FILE *fp;
9-
10-
fp = fopen("file.txt", "r");
11-
if( fp == NULL ) {
12-
fprintf(stderr, "Value of errno: %d", errno);
13-
fprintf(stderr, "Error opening file: %s", strerror(errno));
14-
} else {
15-
fclose(fp);
16-
}
5+
printf("The maximum value of float = %.10e", FLT_MAX);
6+
printf("The minimum value of float = %.10e", FLT_MIN);
177

18-
return(0);
8+
printf("The number of digits in the number = %.10e", FLT_MANT_DIG);
199
}

libeditor/src/main/res/layout/fragment_diagnostic.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
</android.support.v7.widget.RecyclerView>
3434

35-
<FrameLayout
35+
<ScrollView
3636
android:id="@+id/compiler_output_container"
3737
android:layout_width="match_parent"
3838
android:layout_height="match_parent"
@@ -49,7 +49,7 @@
4949
android:textColor="?android:textColorPrimary"
5050
android:textSize="@dimen/smallest_text_size"
5151
android:typeface="monospace" />
52-
</FrameLayout>
52+
</ScrollView>
5353

5454
</android.support.v4.view.ViewPager>
5555

0 commit comments

Comments
 (0)