Automated Source Code Transformation service
This project demonstrates the conversion of various Android Layouts. This repository contains the Android source code which was used as input and generated iOS source code project.
This sample project demonstrates conversion of following layouts -
- RelativeLayout
- FrameLayout
- LinearLayout (Nested)
- ConstraintLayout
- TableLayout
- ScrollView
File | Statement |
---|---|
activity_main.xml | 353 |
linear_nested.xml | 724 |
relative_layout.xml | 752 |
frame_layout.xml | 514 |
constraint_layout.xml | 495 |
table_layout.xml | 801 |
scroll_view.xml | 776 |
Total | 4415 |
Control | Attributes |
---|---|
LinearLayout | orientation, gravity, background, textAppearance |
RelativeLayout | layout_centerHorizontal, layout_centerVertical, layout_toLeftOf, layout_toRightOf, layout_above, layout_below, layout_alignParentTop, layout_alignParentBottom, layout_alignParentRight, layout_alignParentLeft |
FrameLayout | layout_marginTop, layout_gravity = right, left, right+bottom, left+bottom, center, center_horizontal, center_vertical, right+center_vertical, bottom+center_horizontal |
ConstraintLayout | Bottom_toBottomOf, Top_toTopOf, Top_toBottomOf, Left_toLeftOf, Start_toEndOf, Right_toRightOf, Baseline_toBaselineOf, Vertical_bias, Horizontal_bias |
TableLayout | TableLayout, TableRow, background, padding |
ScrollView | ScrollView, android.support.v4.widget.NestedScrollView, HorizontalScrollView, android:scrollbars |
Screen shot of RelativeLayout -
Screen shot of ConstraintLayout -
- Note - Android source code for ConstraintLayout taken from Google CodeLabs
- CodeLabs - https://codelabs.developers.google.com/codelabs/constraint-layout/#0
- Project - https://github.com/googlecodelabs/constraint-layout
Screen shot of TableLayout -
- Credits for Android code - https://www.tutlane.com/tutorial/android/android-tablelayout-with-examples
Screen shot of ScrollView -
- Credits for Android code - https://tutorialwing.com/android-nestedscrollview-tutorial-example/
This project is made available under the MIT license. See the LICENSE file for more details.