Find Jobs
Hire Freelancers

Function that generates an Android Activity. - open to bidding

$30-250 USD

완료함
게시됨 10년 이상 전

$30-250 USD

제출할때 지불됩니다
I want to have a function where I just send the XML Android layout and the function returns me the java code of the activity for example I call the function like this: String Layout = "<LinearLayout xmlns:android="[login to view URL]" xmlns:tools="[login to view URL]" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/lbFullName" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Full Name:" android:layout_marginLeft="10dip" android:layout_marginRight="10dip" android:layout_marginTop="20dip"/> <EditText android:id="@+id/txtName" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="10dip" android:layout_marginBottom="20dip"/> <TextView android:id="@+id/lbEmail" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Email:" android:layout_marginLeft="10dip" android:layout_marginRight="10dip"/> <EditText android:id="@+id/txtEmail" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="10dip" android:layout_marginBottom="20dip"/> <Button android:id="@+id/btnRegister" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Register" android:layout_margin="10dip"/> </LinearLayout> "; createActivityFromLayout(Layout, activityName); Returns me: "import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; public class Test extends Activity { private TextView lbFullName; private EditText txtName; private TextView lbEmail; private EditText txtEmail; private Button btnRegister; @Override public void onCreate(Bundle savedInstanceState) { [login to view URL](savedInstanceState); setContentView(R.layout.activity_main); } /** * */ private void findViews() { lbFullName = (TextView)findViewById( [login to view URL] ); txtName = (EditText)findViewById( [login to view URL] ); lbEmail = (TextView)findViewById( [login to view URL] ); txtEmail = (EditText)findViewById( [login to view URL] ); btnRegister = (Button)findViewById( [login to view URL] ); [login to view URL]( this ); } /** * */ @Override public void onClick(View v) { if ( v == btnRegister ) { // Handle clicks for btnRegister } } }" This javascript does almost the same [login to view URL] It is open source but in javascript and I need it in Java. [login to view URL] Elements of the XML could be> "AbsoluteLayout","AdapterViewFlipper","AnalogClock","AutoCompleteTextView","Button","CalendarView","CheckBox","CheckedTextView","Chronometer","DatePicker","DialerFilter","DigitalClock","EditText","ExpandableListView","FrameLayout","Gallery","GestureOverlayView","GridLayout","GridView","HorizontalScrollView","ImageButton","ImageSwitcher","ImageView","LinearLayout","MediaController","MultiAutoCompleteTextView","NumberPicker","ProgressBar","QuickContactBadge","RadioButton","RadioGroup","RatingBar","RelativeLayout","ScrollView","SearchView","SeekBar","SlidingDrawer","Space","Spinner","StackView","SurfaceView","Switch","TabHost","TableLayout","TableRow","TabWidget","TextSwitcher","TextureView","TextView","TimePicker","ToggleButton","TwoLineListItem","VerticalLinearLayout","ViewAnimator","ViewFlipper","ViewStub","ViewSwitcher","WebView","ZoomButton","ZoomControls". Validations> The name of element's must be unique. The function must provide all imports. Function must be done in a class in an static way to just call it
프로젝트 ID: 5320309

프로젝트 정보

4 제안서
원격근무 프로젝트
활동 중 10년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
A proposal has not yet been provided
$30 USD 3일에
4.2 (2 건의 리뷰)
2.0
2.0
4 이 프로젝트에 프리랜서들의 평균 입찰은 $163 USD입니다.
사용자 아바타
I can do it within 1 day. Your job requires me to parse XML file. I am very familiar with Java Programming and XML file. I can parse the XML file easily because I have the module that is parsed from the xml. I hope to hearing from you soon. Regards, Liang Xing
$277 USD 3일에
4.8 (14 건의 리뷰)
5.8
5.8
사용자 아바타
Dear Sir, I have 6+ years experience and high skills for mobile apps and web. I think I can complete your problem in a few hours. Please check below apps and if you are interested in my skills then please contact me. Thanks Wang.
$144 USD 3일에
5.0 (7 건의 리뷰)
4.3
4.3
사용자 아바타
Greetings! My name is Robert Balazsi and I am Hungarian developer currently residing in Cluj-Napoca, Romania. I have 3+ years of experience in Java development, currently developing enterprise web applications in the financial domain, and porting some of them to mobile technologies (mostly Android). I also wrote some Eclipse plugins (for Java code generation) that were needed internally in our project to promote rapid application development. One thing that caught my eye in your project is this requirement for generating Java code and also the clear specification you gave me. As I'm fond of Test-Driven Development, I would begin with writing the unit tests for all types of scenarios (in our case, for all types of elements) that can appear (and also that are invalid). I would then implement the actual function by gradually refining my code. This would greatly increase the quality of code, since an objective view is maintained about the test cases. Moreover, as I anticipate a small to moderate XML length, I would use DOM as the XML parser since it performs better on small/moderate data (against SAX, that performs better only with huge XML data). I would also validate the data against an XSD to reject syntactically invalid data as soon as possible. Please contact me if you have any questions / observations. Kind regards, Robert
$200 USD 3일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (MEXICO)
Jesus Maria, Mexico
5.0
9
결제 수단 확인
10월 14, 2012부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.