in Education by
In My Activity there are more then one ListView. See the XML Layout of it: <!-- ============================================================== --> <!-- PAYE Frequency Layout start--> <!-- ============================================================== --> Now i am able to access the first ListView with this code: setListAdapter(new ArrayAdapter(this,android.R.layout.simple_list_item_1, TAXCODE)); getListView().setTextFilterEnabled(true); taxCode_EditText.setText(TAXCODE[0]); //taxCodeFinalValue = taxCode_EditText.getText().toString(); lv1 = getListView(); lv1.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view,final int Position,long id) { taxCode_EditText.setText(TAXCODE[Position].toString()); //prefsEditor.commit(); } }); But now if i access the second ListView with the below code it is not working. I am not able to see any Second ListView. So Whats wrong in my Code? Why i am not able to see the Second LiStView ? Thanks. Edited: After Answer i have set the second listview as like below code but still not get any listview. code: ListView payFrequencyListView = (ListView) findViewById(R.id.payFrequencyListView); payFrequencyListView = getListView(); payFrequencyListView.setTextFilterEnabled(true); Adapter mySecondAdapter = new ArrayAdapter(this,android.R.layout.simple_list_item_2, PAY_FREQUENCY); payFrequencyEditText.setText(PAY_FREQUENCY[0]); payFrequencyListView.setAdapter((ListAdapter) mySecondAdapter); payFrequencyListView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view,final int Position,long id) { payFrequencyEditText.setText(PAY_FREQUENCY[Position].toString()); //prefsEditor.commit(); } }); JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
add layout_weight property for layout's otherwise only on list view will occupy the screen.,

Related questions

0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    In My Activity there are more then one ListView. See the XML Layout of it: Now i am able to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Write the following in while(): For (i=1;i =100;i++){Print( %d \ ,i);} (Will no one be able to solve ... as i am doing an exam now) Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    Users are able to see a pad-lock icon in the address bar of the browser when there is _______ connection. (a ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 5, 2021 in Education by JackTerrance
0 votes
    In prestressing work, if more than one wire or strand is included in the same duct, why should all wires/strands be stressed at the same time?...
asked Jan 1, 2021 in Technology by JackTerrance
0 votes
    When there are more than one independent variables in the model, then the linear model is termed as _______ (a ... of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    I have an activity A that launches B with an Intent. (B is a MapActivity and has some async code ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    my tens digit is one more than my hundreds digit. my hundreds digit is an even number between 5 and 7. my ones ... triangle. Who am l? Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    If the data stored in the _____________ is not encrypted, then after cookie stealing, attackers can see ... -Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Nov 1, 2021 in Education by JackTerrance
0 votes
    I tried to implement Ngrx into my Angular Application, but sadly haven't been able to retrieve any data. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    After editing my UIScrollView size, page control stopped working. You can see there are only 3 slides. But ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 19, 2022 in Education by JackTerrance
0 votes
    If an entity set is a lower-level entity set in more than one ISA relationship, then the entity ... in section Database Systems Design and Implementation of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    ______________ allows the algorithm to execute more quickly by performing CPU activity in parallel with I/O ... topic in division Query Processing Techniques of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
...