Re: [android-developers] Re: How to improve image quality in Android Webkit (comparing with iOS)
Hi, Le jeudi 1 novembre 2012 16:00:52 UTC-4, Anthony Prieur a écrit : Sorry I've no example myself, you would find on the net. Nope didn( find any. Anyone to explain why the result is so poor on Android comparing with iOS dealing with image on CSS/html ? -- 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: How to improve image quality in Android Webkit (comparing with iOS)
thanks Anthony, may I have a code example please ? Le mercredi 31 octobre 2012 06:39:24 UTC-4, Anthony Prieur a écrit : You might get better results trying to use the Javascript 'viewport'. Le mardi 30 octobre 2012 16:24:26 UTC+1, huberte a écrit : Trying to load http://www.sciences-physiques.eu/appli/oneimage/ both in iOS and Android (SGS2). Image is 1600*2262 The result is a better image on iOS. I know android can do better, because I had an application with such big image downsized, and the text was clearer. I red a lot about adding some code in css, but it seems that it does not apply to webkit Here are the screenshots : http://tof.canardpc.com/show/9144d047-0aaf-4906-9c96-1a991112f9fc.html http://tof.canardpc.com/show/36008198-e6ef-4b02-820b-fe2ca8b8df1c.html The code is : !DOCTYPE HTMLhtml manifest= lang=en-UShead meta charset=UTF-8 titlecarimage/title style type=text/css img { width: 100%; } html, body { height: 100%; background-color: #1985D0 } /style body img src=1.png / /body/html just that you know, if I put max-width instead of width, the result is worse than with only the width attribute Because I'll have physics, chemistry, math and for good rendering I use Latek. So I have to use image. On Android my pupils say I could use something better than a bad scanner. On iOS they say it's like in their books... Thanks a lot ! -- 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] How to improve image quality in Android Webkit (comparing with iOS)
Trying to load http://www.sciences-physiques.eu/appli/oneimage/ both in iOS and Android (SGS2). Image is 1600*2262 The result is a better image on iOS. I know android can do better, because I had an application with such big image downsized, and the text was clearer. I red a lot about adding some code in css, but it seems that it does not apply to webkit Here are the screenshots : http://tof.canardpc.com/show/9144d047-0aaf-4906-9c96-1a991112f9fc.html http://tof.canardpc.com/show/36008198-e6ef-4b02-820b-fe2ca8b8df1c.html The code is : !DOCTYPE HTMLhtml manifest= lang=en-UShead meta charset=UTF-8 titlecarimage/title style type=text/css img { width: 100%; } html, body { height: 100%; background-color: #1985D0 } /style body img src=1.png / /body/html just that you know, if I put max-width instead of width, the result is worse than with only the width attribute Because I'll have physics, chemistry, math and for good rendering I use Latek. So I have to use image. On Android my pupils say I could use something better than a bad scanner. On iOS they say it's like in their books... Thanks a lot ! -- 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: How to improve image quality in Android Webkit (comparing with iOS)
thanks a lot bob, for your answer Le mardi 30 octobre 2012 12:04:29 UTC-4, bob a écrit : Please see the following method in this class: *android.graphics.Bitmap* I did not need this, when programming in eclipse : ImageView image = (ImageView) findViewById(R.id.imageview); And voilà, autofit, autosize, autoscale :) and clean image. Note you will probably have to get rid of your WebView approach. I cant, this time I need to do a web app, beacause of the many teachers beta testing, and then using it. try it http://www.sciences-physiques.eu/appli/carimage/ you have one image in image and 3 in carimage (carousel) the result is horrible in the stock browser, not so bad in chrome on my sgs2. why ? -- 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] How can i program a tree of multiplechoices that ends on an image depending of the choices
I have 3 buttons at start. when u press on one of those buttons, it put layout properties on gone or viewable. I end up with a tree of 3 columns, with approximatively 40 to 50 buttons. First, i think this isnt good. wich tools can i use to manage so many choices ? Second, the final buttons (those on the right layout) show an imageview. I used android - passing variable from intent extra to ImageViewhttp://stackoverflow.com/questions/7524725/android-passing-variable-from-intent-extra-to-imageview/10604079#10604079 . I don't want too many layouts and/or activity,nor too much intent. The thing is this routine appears slower than expected with 30 case and else if. And last but not least the app crash on 4.0.3 phones and AVD and is slow on 2.3 phones and AVD. Could someone give me some hints to program this better? Thanks. PS : could SimpleExpandableListAdapter be a good solution ? If it is how should i do to launch the image ? Or keep the same code but i'd like to stock the link between images and butons into an array. Good solution ? -- 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: java.lang.OutOfMemoryError on 4.0.3 APV and phone not in 2.1 2.3
I dont understand what you mean, could you be more specific or post a code example ? thks Le jeudi 17 mai 2012 04:06:36 UTC-4, Solution 9420 a écrit : hi, Just want to share with U that I also experienced the same scenario when I did the compatibility test of my app (9420 Tablet Keyboard) again 4.0.4 (GNexus). What I did is unscientific but to do bitmap.recycle() more often. (check null first) on the unused ones. The symptom seems to go away. Regards, Solution 9420 -- 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] java.lang.OutOfMemoryError on 4.0.3 APV and phone not in 2.1 2.3
I used the method from Renaud here http://stackoverflow.com/questions/7524725/android-passing-variable-from-intent-extra-to-imageview/10604079#10604079 This works fine on 2.1 2.3 phone and AVD when I tunr the phone from landscpae to portrait and vice versa Not in 4.03 phone and AVD, I get a java.lang.OutOfMemoryError, note that my bitmap eg, my png file is only 189ko heavy 05-17 04:29:53.532: E/AndroidRuntime(1227): FATAL EXCEPTION: main 05-17 04:29:53.532: E/AndroidRuntime(1227): java.lang.OutOfMemoryError 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.nativeCreate(Native Method) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createBitmap(Bitmap.java:605) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createBitmap(Bitmap.java:551) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:524) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:499) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:374) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:404) 05-17 04:29:53.532: E/AndroidRuntime(1227): at com.android.fbd.Images.onCreate(Images.java:35) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.Activity.performCreate(Activity.java:4465) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3351) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.access$700(ActivityThread.java:123) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1151) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.os.Handler.dispatchMessage(Handler.java:99) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.os.Looper.loop(Looper.java:137) 05-17 04:29:53.532: E/AndroidRuntime(1227): at android.app.ActivityThread.main(ActivityThread.java:4424) 05-17 04:29:53.532: E/AndroidRuntime(1227): at java.lang.reflect.Method.invokeNative(Native Method) 05-17 04:29:53.532: E/AndroidRuntime(1227): at java.lang.reflect.Method.invoke(Method.java:511) 05-17 04:29:53.532: E/AndroidRuntime(1227): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 05-17 04:29:53.532: E/AndroidRuntime(1227): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 05-17 04:29:53.532: E/AndroidRuntime(1227): at dalvik.system.NativeStart.main(Native Method) -- 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
Re: [android-developers] Image scaled, scroll, zoom, without margin
I did android:adjustViewBounds=true android:scaleType=fitXY great on portrait mode, but landscape does not fit, why ? -- 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
Re: [android-developers] Image scaled, scroll, zoom, without margin
In scrollview width=fill_parent works, but the image is ugly Le lundi 14 mai 2012 02:47:50 UTC-4, huberte a écrit : I did android:adjustViewBounds=true android:scaleType=fitXY great on portrait mode, but landscape does not fit, why ? -- 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
Re: [android-developers] Re: Add application licencing to apk
You were right Jteagle, I switched and it's a;looot easier ! Le lundi 7 mai 2012 13:57:17 UTC-4, JTeagle a écrit : Take a look at the instructions here: http://developer.android.com/guide/market/licensing/setting-up.html#add-library Particularly, look a few lines down where it starts If you are developing using the SDK command-line tools Why you aren't using Eclipse, though, is a mystery. Why make it harder for yourself? -- 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
Re: [android-developers] Image scaled, scroll, zoom, without margin
here the code, it's working : ?xml version=1.0 encoding=utf-8? ScrollView android:id=@+id/scrollView1 android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/exp1_image android:layout_width=fill_parent android:layout_height=1944dp android:adjustViewBounds=true android:background=# android:src=@drawable/exp1 android:scaleType=fitCenter / /ScrollView thks to kostya -- 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] Image scaled, scroll, zoom, without margin
Hi, A very easy thing, I thought. Have an image : exp1.png, which I want to fit the screen in landscape or portrait, and wish that the user can scroll this image. Tell me please, if I do that correctly : 1. I did copy different resolution in xhdpi (1024x) hdpi(640x) and ldpi,mdpi(480x...) first warning/error : 2. Have a Layout like this : ScrollView android:id=@+id/scrollView1 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/exp1_image android:src=@drawable/exp1 android:layout_width=fill_parent android:layout_height=fill_parent android:scaleType=centerInside / /ScrollView 3. Have a class like this: public class ImageActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ImageView image = (ImageView) findViewById(R.id.exp1_image); } } a. In portrait mode I have margin up and down (black screen), the image does not fit the screen. I don't know hot to set the title of the image (Image). b. In landscape mode : the image is centered and not scaled, I have margin left and right I cant zoom in the image. Scrolling is very good -- 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: Equally verticaly spaced button
OUhh, that is clever ! Works ! (I did try to add the android: befor your code, I'm not so good) Really a nice issue for this problem, why is it not so much spread ? Here the view block what I add to your code ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical View android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1/ Button android:layout_width=fill_parent android:layout_height=wrap_content android:text=button 1/ View android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1/ Button android:layout_width=fill_parent android:layout_height=wrap_content android:text=button 2/ View android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1/ Button android:layout_width=fill_parent android:layout_height=wrap_content android:text=button 3/ View android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1/ /LinearLayout Le jeudi 10 mai 2012 23:04:34 UTC-4, huberte a écrit : I tried this with no luck : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=fill_parent android:orientation=vertical android:visibility=visible android:weightSum=3 Button android:id=@+id/button1 android:layout_width=fill_parent android:layout_height=0dp android:gravity=center_vertical|center_horizontal android:text=Button android:layout_weight=1/ Button android:id=@+id/button2 android:layout_width=fill_parent android:layout_height=0dp android:gravity=center_vertical|center_horizontal android:text=Button android:layout_weight=1/ Button android:id=@+id/button3 android:layout_width=fill_parent android:layout_height=0dp android:gravity=center_vertical|center_horizontal android:text=Button android:layout_weight=1/ /LinearLayout thks for your help ! -- 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] Menu : Handling click events : DialogBox
I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics/resources/menu-resource.html I wrote this in main activity @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.mainmenu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection switch (item.getItemId()) { case R.id.infos: infos(); return true; case R.id.waring: waring(); return true; case R.id.credits: credits(); return true; case R.id.about: about(); return true; default: return super.onOptionsItemSelected(item); } } private void about() { // // TODO Auto-generated method stub // // custom dialog } Where shoudd I put my alertbox (is this correct for a simple text box with no button ?) : new AlertDialog.Builder(this).setTitle(About).setMessage(el viva Android !).create(); in private void about(), which never works or directly in case R.id.about: about(); Quit lost here. -- 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: Equally verticaly spaced button
Oh and thanks Kostya, just one thing, why does Eclipse telling me a warning ? nested weights is bad for performance ? thks -- 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] Menu : Handling click events : DialogBox
Hi, I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics/resources/menu-resource.html I wrote this in main activity @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.mainmenu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection switch (item.getItemId()) { case R.id.infos: infos(); return true; case R.id.waring: waring(); return true; case R.id.credits: credits(); return true; case R.id.about: about(); return true; default: return super.onOptionsItemSelected(item); } } private void about() { // // TODO Auto-generated method stub // // custom dialog } Where shoudd I put my alertbox (is this correct for a simple text box with no button ?) : new AlertDialog.Builder(this).setTitle(About).setMessage(el viva Android !).create(); in private void about(), which never works or directly in case R.id.about: about(); Quit lost here. thks -- 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: Menu : Handling click events : DialogBox
Le samedi 12 mai 2012 07:20:46 UTC-4, Tolriq a écrit : You just forgot to show the created dialog :) o| Sorry Thanks Tolric :) Just 3 other questions if I may. The text in question could be very long, 1. Would the scrollbar auto appears ? 2. Should I use the sample code from API ReadAsses.java ( https://groups.google.com/forum/?fromgroups#!topic/android-developers/sJBm7LywxDQ ) 3. Should I put my text file in res/ or res/common or res/raw ? -- 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: Menu : Handling click events : DialogBox
Thanks. But I'm to noob to check how to have this menu item clicked and then display a basic textbox from a txt file... I try to find something easy, but I didn't succeed :( Le samedi 12 mai 2012 09:38:29 UTC-4, Tolriq a écrit : If simple TextView there's no scrollbar by default, you need a scrollview or things like : http://stackoverflow.com/questions/1748977/making-textview-scrollable-in-android For 2 and 3, it depends on your needs :) If you want your text in multiple language then res would be the way to go, if it's simple text you can use raw and assets just a personal choice. Le samedi 12 mai 2012 14:49:44 UTC+2, huberte a écrit : Le samedi 12 mai 2012 07:20:46 UTC-4, Tolriq a écrit : You just forgot to show the created dialog :) o| Sorry Thanks Tolric :) Just 3 other questions if I may. The text in question could be very long, 1. Would the scrollbar auto appears ? 2. Should I use the sample code from API ReadAsses.java ( https://groups.google.com/forum/?fromgroups#!topic/android-developers/sJBm7LywxDQ ) 3. Should I put my text file in res/ or res/common or res/raw ? -- 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: Menu : Handling click events : DialogBox
Tolriq, I have this main.xml : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical ScrollView android:id=@+id/scrollView1 android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/TextView1 android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout /ScrollView /LinearLayout Then I call my textview in java : package com.android.boite; import android.app.Activity; import android.os.Bundle; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import java.io.IOException; import java.io.InputStream; public class BoiteActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Programmatically load text from an asset and place it into the // text view. Note that the text we are loading is ASCII, so we // need to convert it to UTF-16. try { InputStream is = getAssets().open(text.txt); // // We guarantee that the available method returns the //total // size of the asset... of course, this does mean that a //single // asset can't be more than 2 gigs. int size = is.available(); // Read the entire asset into a local byte buffer. byte[] buffer = new byte[size]; is.read(buffer); is.close(); // Convert the buffer into a string. String text = new String(buffer); // Finally stick the string into the text view. TextView tv = (TextView)findViewById(R.id.TextView1); tv.setText(text); } catch (IOException e) { // Should never happen! throw new RuntimeException(e); } } } Almost all bymyself (and this group). The text is showing (but not like in a box, I think I have to use margin in my second linearlayout ?) but é à é caracters are faulty (?) Is my way good ? Thks -- 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
Re: [android-developers] Re: Menu : Handling click events : DialogBox
Le samedi 12 mai 2012 18:17:55 UTC-4, Kostya Vasilyev a écrit : ... you will now need to catch UnsupportedEncodingException, as a formality. Didn't understood... 2) Check the encoding of your asset text file in Eclipse: right click, properties, see bottom of the right pane. Done, thks it works Don'y know how to have a textbox with a little margin over the text. This odes not work : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical ScrollView android:id=@+id/scrollView1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_margin=10dp LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/TextView1 android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout /ScrollView /LinearLayout -- 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
Re: [android-developers] Equally verticaly spaced button
Exactly. Look closely at the title. I thought it was clear enoug. Sorry Jason. Space, e.g having the same space between them, not resizing them. For example : top-20dp-button-20dp-button-20dp I I was clear enough -- 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
Re: [android-developers] Equally verticaly spaced button
Thanks but your code is not working, what is this view item ? I searched, it's not documented, is it ? I can complete the code you gave me (id, missing with type view) http://developer.android.com/reference/android/view/View.html 20 dp was an example, I could have written 2000 dp or whatever Le vendredi 11 mai 2012 08:20:25 UTC-4, Kostya Vasilyev a écrit : ... where 20dp is a dynamic size, based on how much space is available? If that's what you want, consider: LinearLayout orientation=vertical Button height=wrap_content/ View width=fill_parent, height=0dp, weight=1/ Button height=wrap_content/ View width=fill_parent, height=0dp, weight=1/ Button height=wrap_content/ /LinearLayout The View items act as spacers, and will be dynamically resized by LinearLayout due to having weight attribute. -- K 11.05.2012 15:25, huberte написал: Exactly. Look closely at the title. I thought it was clear enoug. Sorry Jason. Space, e.g having the same space between them, not resizing them. For example : top-20dp-button-20dp-button-20dp I I was clear enough -- Kostya Vasilyev -- 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
Re: [android-developers] Equally verticaly spaced button
Le vendredi 11 mai 2012 19:03:39 UTC-4, Kostya Vasilyev a écrit : View? No, View is definitely not documented. It might not even exist. /LameJoke :) Of course it's documented, but not the way your wrote it. Because your code as you wrote is: - not referenced in http://developer.android.com/reference/android/view/View.html - returns error would you be so kind and give me some explanation ? -- 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
Re: [android-developers] Equally verticaly spaced button
Le vendredi 11 mai 2012 19:03:39 UTC-4, Kostya Vasilyev a écrit : /LameJoke By the way your blog is terrific and your apps great ! congrats ! -- 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] Menu cannot be resolved to a type
And MenuInflater cannot be resolved to a type I have made a clean example from http://developer.android.com/guide/topics/ui/menus.html have import android.app.Activity; import android.os.Bundle; dont see anything about on google Thks -- 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: Menu cannot be resolved to a type
Le jeudi 10 mai 2012 21:06:44 UTC-4, huberte a écrit : And MenuInflater cannot be resolved to a type I have made a clean example from http://developer.android.com/guide/topics/ui/menus.html I must import import android.view.MenuInflater; import android.view.Menu; never written in beginners tutorial :( -- 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] Equally verticaly spaced button
I tried this with no luck : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=fill_parent android:orientation=vertical android:visibility=visible android:weightSum=3 Button android:id=@+id/button1 android:layout_width=fill_parent android:layout_height=0dp android:gravity=center_vertical|center_horizontal android:text=Button android:layout_weight=1/ Button android:id=@+id/button2 android:layout_width=fill_parent android:layout_height=0dp android:gravity=center_vertical|center_horizontal android:text=Button android:layout_weight=1/ Button android:id=@+id/button3 android:layout_width=fill_parent android:layout_height=0dp android:gravity=center_vertical|center_horizontal android:text=Button android:layout_weight=1/ /LinearLayout thks for your help ! -- 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] Add application licencing to apk
Hi, I already have an apk. i did red http://developer.android.com/guide/market/licensing/setting-up.html But can I start from my apk to add the licence ? thks -- 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: Add application licencing to apk
I do not use Eclipse. Le lundi 7 mai 2012 13:38:54 UTC-4, huberte a écrit : Hi, I already have an apk. i did red http://developer.android.com/guide/market/licensing/setting-up.html But can I start from my apk to add the licence ? thks -- 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: Add application licencing to apk
I do not use Eclipse, so I ask myself if it's right : I think I have to modify the java file located in src/com/myproject and merge it with the example file from the SDK. Then I have to merge my Android manifest with the one in example. Am I right ? thanks. Le lundi 7 mai 2012 13:38:54 UTC-4, huberte a écrit : Hi, I already have an apk. i did red http://developer.android.com/guide/market/licensing/setting-up.html But can I start from my apk to add the licence ? thks -- 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] OpenDocument
Would like to use the native OpenDocument to open a jpg file that's in my app. Is there a way to open this file with the native app (zooming resizing, etc) but that it cant be copied to the phone ? It may be a noob question. thks -- 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