[android-developers] Re: how to set android font style to bold
On 19 Mar, 21:33, Meryl Silverburgh wrote: > In android, if I have a TextPaint object, how can I set the font style > to be 'bold'? > I can't find any method in TextPaint or Paint to allow me do that. Try this: http://developer.android.com/reference/android/graphics/Paint.html#setFakeBoldText(boolean) Regards Kacza --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Load two different views simultaneously in a screen
On 5 Mar, 14:50, And-Rider wrote: > I want to create a single screen with two different views .And i want > to refresh one view without disturbing the second view. Hi, the first thing that comes to my mind is to create a LinearLayout, put two views into it and refresh only one when needed. class MyActivity extends Activity { View topView; View bottomView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); this.topView = new MyTopView(this); this.bottomView = new MyBottomView(this); layout.addView(topView, new LinearLayout.LayoutParams (LinearLayout.LayoutParams.FILL_PARENT)); layout.addView(bottomView, new LinearLayout.LayoutParams (LinearLayout.LayoutParams.FILL_PARENT)); } void refreshBottomView() { if (this.topView != null) this.topView.postInvalidate(); } } (code not checked) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] SeekBar does not reach the end
Hello, I have an options panel that allows setting of keyboard sensivity. I use SeekBar to get the sensivity but it never reaches the max end. There is the code: final SeekBar seekBarKeyboardSens = (SeekBar)findViewById (R.id.SeekBarKeyboardSens); seekBarKeyboardSens.setMax(10); seekBarKeyboardSens.setProgress(keyboardSensivity); seekBarKeyboardSens.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) { keyboardSensivity = arg1; } // other overrides }); Max value I got is 8... Has anyone solved that problem? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: SeekBar does not reach the end
Ok I guess I solved the mystery: It depends on seekbar resolution (max value). I set max to 100 and now everything looks fine. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---