Skip to content

Conversation

@neel1998
Copy link
Member

@neel1998 neel1998 commented Jun 1, 2019

Fixes #1762 #1373

Changes: User can now continuously log data in multimeter and can set time interval in configuration settings. Reset / Read buttons removed

Screenshot/s for the changes:
20190602_133618

Checklist: [Please tick following check boxes with [x] if the respective task is completed]

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing:
multimeter.zip

@CloudyPadmal @ho-dor please review

@mariobehling
Copy link
Member

Could you please get rid of the "read" and "reset" button and implement it in a way that it always shows the data input, if any. In a multimeter device there is no such thing as a read or input button. As soon as the user connects the device to do measurements it shows the output. Same should happen here. Please implement it in the same way like an actual multimeter.

@neel1998
Copy link
Member Author

neel1998 commented Jun 2, 2019

@mariobehling on it. :)

@neel1998 neel1998 force-pushed the multimeter_continuous_log branch from 8eec288 to da84fa6 Compare June 2, 2019 08:09
@neel1998
Copy link
Member Author

neel1998 commented Jun 2, 2019

@mariobehling i have made the changes you suggested. Please have a look

Copy link

@ho-dor ho-dor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue in multiple places , hard coded dimen values.

android:layout_marginEnd="@dimen/multimeter_constraint_1"
android:layout_marginRight="@dimen/multimeter_constraint_1"
android:layout_marginStart="@dimen/multimeter_constraint_1"
android:layout_marginBottom="16dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard coded dimension

android:layout_marginEnd="@dimen/multimeter_constraint_2"
android:layout_marginRight="@dimen/multimeter_constraint_2"
android:layout_marginStart="@dimen/multimeter_constraint_2"
android:layout_marginBottom="5dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well

android:layout_marginEnd="@dimen/multimeter_constraint_1"
android:layout_marginRight="@dimen/multimeter_constraint_1"
android:layout_marginStart="@dimen/multimeter_constraint_1"
android:layout_marginBottom="8dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too

android:layout_marginBottom="8dp"
android:gravity="center"
android:text="@string/multimeter_measure"
android:textSize="14sp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to a dimen resource.

android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue

android:layout_marginBottom="8dp"
android:layout_marginTop="5dp"
app:layout_constraintBottom_toTopOf="@+id/reset"
android:layout_marginBottom="8dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

android:layout_marginEnd="@dimen/multimeter_constraint_1"
android:layout_marginRight="@dimen/multimeter_constraint_1"
android:layout_marginStart="@dimen/multimeter_constraint_1"
android:layout_marginBottom="24dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check please. Same issue

android:layout_marginEnd="@dimen/multimeter_left_box_endmargin"
android:layout_marginRight="@dimen/multimeter_left_box_endmargin"
android:layout_marginStart="@dimen/multimeter_layout_margin_2"
android:layout_marginBottom="8dp"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link
Contributor

@adityastic adityastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make changes by ho-dor. Everything else seems fine

@neel1998
Copy link
Member Author

neel1998 commented Jun 3, 2019

@ho-dor @CloudyPadmal I removed the hard coded dimensions. Please review

@CloudyPadmal CloudyPadmal merged commit b40c276 into fossasia:development Jun 3, 2019
neel1998 added a commit to neel1998/pslab-android that referenced this pull request Jul 30, 2019
* continuous logging added to multimeter

* hardcoded dimensions removed
@neel1998 neel1998 deleted the multimeter_continuous_log branch August 27, 2019 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow user to set time interval to continuously log data in multimeter

5 participants