Skip to content

Conversation

@ho-dor
Copy link

@ho-dor ho-dor commented Jun 19, 2019

Fixes #1807
Changes:Removed hard coded values and redundant attributes in layouts

Screenshot/s for the changes:N/A

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:
redundant.zip

<LinearLayout
android:id="@+id/servo_timeline_controls"
android:layout_width="10dp"
android:layout_width="@dimen/robotic_arm_margin_10"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's not put value at the end

<dimen name="robotic_arm_margin_7">7dp</dimen>
<dimen name="robotic_arm_margin_10">10dp</dimen>
<dimen name="robotic_arm_height">25dp</dimen>
<dimen name="servo_image_width">20dp</dimen>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Place these close to their respective counterparts. May be you can give a clean up to the whole strings file keeping variables related to a single component close

@CloudyPadmal CloudyPadmal added the Status: Review Required Requested reviews from peers and maintainers label Jun 20, 2019
@CloudyPadmal CloudyPadmal merged commit e8f4a0c into fossasia:development Jun 21, 2019
@CloudyPadmal CloudyPadmal removed the Status: Review Required Requested reviews from peers and maintainers label Jun 21, 2019
neel1998 pushed a commit to neel1998/pslab-android that referenced this pull request Jul 30, 2019
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.

Lot of hardcoded and redundant code in layout files

3 participants