Posts by rsicarelli • 3,086 points
110 posts
-
1
votes2
answers72
viewsA: I need you to return your name by clicking on the list
The problem is that you are trying to use the onClickListener to select a specific item from a ListView. The Onclicklistener serves for the entire View, no matter what item you click on. In turn,…
-
1
votes3
answers623
viewsA: What is the best way to share variables between 3 Activity’s?
One practice I use a lot in my projects is to create classes Uteis to centralize all the result_code and messages between Activity An example public class Prefs { public static final String…
androidanswered rsicarelli 3,086 -
2
votes1
answer90
viewsA: Distorted Layout on the Tablet
I recommend you take a read in that Google documentation on multiple resolutions. At the sitting Configuration examples might be interesting to you. Anyway, check on the layout_width and…
-
1
votes1
answer311
viewsA: Color of an Android app
When you use a style that uses the AppCompat accurate also put all attributes with android:as a prefix, for example: <style name="ActionBar.Solid.David"…
-
1
votes1
answer71
viewsA: Leave pictures rounded android
Try something like that: private setBitmapRounded(){ Bitmap image = BitmapFactory.decodeResource(getResources(), R.drawable.img_qualquer); ImageView mImageView = (ImageView)…
-
1
votes2
answers208
viewsA: Using Dialog in a Fragment
Many Android components and objects need a Context to work, that is, you need to tell these newly created components and objects what is happening. A hint is in the method onAttach of your Fragment,…
-
2
votes1
answer1827
viewsA: Set Imageview content via a URI
Use the setImageUri() is not the best way to set image in your UI, it may cause some latency flaws when giving the Code. Instead, use the setImageBitmap(): //Transforme sua URI em um Bitmap Bitmap…
androidanswered rsicarelli 3,086 -
6
votes1
answer3631
viewsA: Graphics on Android
For you to use Google-Chart on Android, you need to work on a Webview Here is a slideshare Cool using Google-Chart along with this example If you don’t want to use through a Webview, try using…
-
2
votes1
answer312
viewsA: Code Metrics, Analysis and Clone for Android Studio
I don’t know specific for Android, but I know these two for Java: http://pmd.sourceforge.net/ http://findbugs.sourceforge.net/…
-
6
votes3
answers2485
viewsA: How to insert res/string string in the String[]{} array;
You can declare a String array in the array.xml file (within the values directory): <string-array name="cores"> <item>@string/cor1</item> <item>@string/cor2</item>…