Swastik
Swastik Dey wrote:Why third party library? A spinner is a better solution as per your requirement.
Swastik
Swastik Dey wrote:Of course you can. Though my suggestion would be to use a database, and populate spinner values from the underlying database. Reason being in future when your data changes (modified/deleted/added) you don't have to change anything in the code, you will just manipulate the database table, and spinner will be populated based on those values.
priyanshi bhardwaj wrote:
I am reading this tutorial Tutorial I have followed same steps. Now I am trying to edit this layout. I simply want to add a textview in custom layout.
Swastik
Was trying to access location also .So my code is having code for that alsoSwastik Dey wrote:Need to see your code what you have done?
Swastik
Yes and in picture 1 also I need only India flag and it's countrycode. not the whole layout. I have no idea how to do it.Swastik Dey wrote:And your problem is Select country is getting repeated?
Swastik
Swastik Dey wrote:
Now coming to your second problem you just want to display flag and country flag and code not the country name.
Let me know if this helps.
Swastik
Swastik Dey wrote:
The above is in your country_row.xml file. So every time it inflates the row, this gets displayed. You need to take it out from here and put it in activity_main.xml before the spinner.
Swastik
Swastik Dey wrote:Show activity_main.xml
Swastik
Swastik Dey wrote:Can you show the screen shot of activity_main.xml? Do you see Select country here?
Yes it worked is there a way to customise the font and font size.Swastik Dey wrote:Did this work?
If No then please tell me is there any other way with full control on layout of spinner dialog.priyanshi bhardwaj wrote:
Yes it worked is there a way to customise the font and font size.Swastik Dey wrote:Did this work?
![]()
Swastik
priyanshi bhardwaj wrote:
Was trying to access location also .So my code is having code for that alsoSwastik Dey wrote:Need to see your code what you have done?
i.e you need to segregate.
MainActivity.java
countryItem.java
countryAdapter.java
activity main.xml
country_row.xml
Here is the code![]()
Dialog Header .Swastik Dey wrote:Font size of what? Dialog header or spinner data?
Swastik
It is saying function cannot be resolved .Swastik Dey wrote:That's bit tricky, however what problem are you getting with location updates,
Swastik
Swastik
Yes Ok will do it and then let you know what happensSwastik Dey wrote:Ok, probably I noticed the problem. The last argument to the method is this. As per documentation last argument should be a reference of LocattonListener interface. So apart from extending AppCompatActivity you have to implement LocationListener interface and implement it's methods.
And any suggestions on customize headerSwastik Dey wrote:That's bit tricky, however what problem are you getting with location updates,
Swastik
You have helped me a lot just do any trick if you can think of.Swastik Dey wrote:Can't think of anything right now, but should be doable, if not in an easy way , then by some tricky way.
Swastik
not now but as soon as possible . According to your convenienceSwastik Dey wrote:You want the solution right now?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |