Find Jobs
Hire Freelancers

Function that generates an Android Activity. - open to bidding

$30-250 USD

Ukończony
Opublikowano ponad 10 lat temu

$30-250 USD

Płatne przy odbiorze
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
Identyfikator projektu: 5320309

Informację o projekcie

4 ofert
Zdalny projekt
Aktywny 10 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
A proposal has not yet been provided
$30 USD w 3 dni
4,2 (2 opinii)
2,0
2,0
4 freelancerzy składają oferty o średniej wysokości $163 USD dla tej pracy
Awatar Użytkownika
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 w 3 dni
4,8 (14 opinii)
5,8
5,8
Awatar Użytkownika
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 w 3 dni
5,0 (7 opinii)
4,3
4,3
Awatar Użytkownika
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 w 3 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga MEXICO
Jesus Maria, Mexico
5,0
9
Zweryfikowana metoda płatności
Członek od paź 14, 2012

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.