Re: [android-developers] font size normalization

2015-08-10 Thread Marina Cuello
You could use this tool to help on calculations:
http://angrytools.com/android/pixelcalc/

Marina

On Fri, Aug 7, 2015 at 12:11 PM, Justin Anderson magouyaw...@gmail.com
wrote:

 AFAIK there is no direct matching like that. They are two different
 operating systems and render text differently.

 That being said, I think I read an article once that said there is a
 (very) rough equivalence between pts used in iOS and sp/dp values used in
 Android.

 You could try using 18 sp (or dp) and comparing rendered font sizes on
 your Android and iOS devices. It may not be exact and you may need to tweak
 it a little, but it is going to mainly be a trial and error kind of thing.

 Of course, all of this is assuming you are not defining your fonts in
 pixel values on Android, which would be a big no no.

 Hope that helps.

 On Fri, Aug 7, 2015, 9:55 AM Jags jag...@gmail.com wrote:

 in my app i use title fonr size 18.7 in ios, my customer says in android
 same size font looks smaller than iphone in s6.
 which font type and size in android s6 will be closest matching in iphone
 ? iphone one is accepted by my customer as a standard to use.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] avoid re adding items in list view

2015-08-10 Thread TreKing
On Wed, Jul 29, 2015 at 1:51 AM, gvi7 gvi70...@gmail.com wrote:

 In my application i have a SlidingTabLayout, each tab containing a
 listview. when i go through the tabs several times the items are added in
 the listview each time. how can i prevent this behaviour?


Step through your code and debug the problem. Put a breakpoint where the
items are being added and review the stacktrace that leads to the multiple
calls. My guess would be the fact that you have an items array allocated
at Fragment construction time and add stuff to it in onCreateView, which
can get called multiple times within the fragment's lifecycle.

the second question

 On each tab i want to add a second fragment that will hold some controls,
 each fragment has to be linked with a list item from the list view, when i
 switch the tab the first list item has to be selected to display the
 corresponding fragment. How can i achieve this behavior?


You need to provide pictures or something. Your description is hard to
follow and thus impossible to answer.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.