RSS

Posts in 2021

  • Most votes on android-layout questions 2

    May 01, 2021 in FAQ

    Most votes on android-layout questions 2. #11 What does android:layout_weight mean? #12 How do I align views at the bottom of the screen? #13 Can the Android layout folder contain subfolders? #14 View's getWidth() and getHeight() returns 0 #15 Why fragments, and when to use fragments instead of activities? #16 How to programmatically set drawableLeft on Android button? #17 How do I get the currently displayed fragment? #18 Percentage width in a RelativeLayout #19 How do I remove lines between ListViews on Android? #20 android:drawableLeft margin and/or padding

    Read all the top votes questions and answers in a single page. #11: What does android:layout_weight mean? (Score: 662) Created: 2010-10-22 Last updated: 2012-01-03 Tags: android, android-layout, android-widget I don’t understand how to use this …

    Read more

  • Most votes on android-layout questions 10

    May 01, 2021 in FAQ

    Most votes on android-layout questions 10. #91 Error inflating class fragment #92 Android - how to make a scrollable constraintlayout? #93 Border in shape XML #94 How to dismiss the dialog with click on outside of the dialog? #95 Preview layout with merge root tag in Intellij IDEA/Android Studio #96 What is android:weightSum in android, and how does it work? #97 Why are nested weights bad for performance? Alternatives? #98 java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference #99 ListView inside ScrollView is not scrolling on Android #100 One Activity and all other Fragments

    Read all the top votes questions and answers in a single page. #91: Error inflating class fragment (Score: 170) Created: 2011-06-21 Last updated: 2016-07-06 Tags: android, android-layout, android-fragments I get the Error Unable to start activity …

    Read more

  • Most votes on android-layout questions 1

    May 01, 2021 in FAQ

    Most votes on android-layout questions 1. #1 What is the difference between "px", "dip", "dp" and "sp"? #2 What is the difference between match_parent and fill_parent? #3 What is the difference between gravity and layout_gravity in Android? #4 You need to use a Theme.AppCompat theme (or descendant) with this activity #5 What's "tools:context" in Android layout files? #6 How to hide the title bar for an Activity in XML with existing custom theme #7 How to change fontFamily of TextView in Android #8 How do I put a border around an Android textview? #9 Standard Android Button with a different color #10 Can I underline text in an Android layout?

    Read all the top votes questions and answers in a single page. #1: What is the difference between "px", "dip", "dp" and "sp"? (Score: 6029) Created: 2010-01-08 Last updated: 2018-12-03 Tags: android, …

    Read more

  • Most votes on android questions 9

    May 01, 2021 in FAQ

    Most votes on android questions 9. #81 Android getResources().getDrawable() deprecated API 22 #82 How to change fontFamily of TextView in Android #83 How to define a circle shape in an Android XML drawable file? #84 What's the best way to limit text length of EditText in Android #85 How to prevent a dialog from closing when a button is clicked #86 How do I put a border around an Android textview? #87 How do you install an APK file in the Android emulator? #88 getColor(int id) deprecated on Android 6.0 Marshmallow (API 23) #89 How do I obtain crash-data from my Android application? #90 Standard Android Button with a different color

    Read all the top votes questions and answers in a single page. #81: Android getResources().getDrawable() deprecated API 22 (Score: 782) Created: 2015-03-13 Last updated: 2019-03-02 Tags: android, android-drawable, android-resources, …

    Read more

  • Most votes on android questions 8

    May 01, 2021 in FAQ

    Most votes on android questions 8. #71 How do I discover memory usage of my application in Android? #72 How to display HTML in TextView? #73 How do I add a library project to Android Studio? #74 How to avoid reverse engineering of an APK file? #75 Sending an Intent to browser to open specific URL #76 How do I get extra data from intent on Android? #77 All com.android.support libraries must use the exact same version specification #78 Service vs IntentService in the Android platform #79 Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23 #80 How to determine when Fragment becomes visible in ViewPager

    Read all the top votes questions and answers in a single page. #71: How do I discover memory usage of my application in Android? (Score: 812) Created: 2010-02-19 Last updated: 2014-10-27 Tags: java, android, memory, memory-management How can I find …

    Read more

  • Most votes on android questions 7

    May 01, 2021 in FAQ

    Most votes on android questions 7. #61 Converting pixels to dp #62 How to send an object from one Android Activity to another using Intents? #63 How can I connect to Android with ADB over TCP? #64 What is the simplest and most robust way to get the user's current location on Android? #65 How to pass an object from one activity to another on Android #66 Dilemma: when to use Fragments vs Activities: #67 Unfortunately MyApp has stopped. How can I solve this? #68 Making TextView scrollable on Android #69 How to call a method after a delay in Android #70 android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through Intent.getData()

    Read all the top votes questions and answers in a single page. #61: Converting pixels to dp (Score: 890) Created: 2011-01-05 Last updated: 2020-04-17 Tags: android, pixel, resolution, dpi I have created my application with the height and width given …

    Read more

  • Most votes on android questions 6

    May 01, 2021 in FAQ

    Most votes on android questions 6. #51 How to Disable landscape mode in Android? #52 What's "tools:context" in Android layout files? #53 How do I create a transparent Activity on Android? #54 Place cursor at the end of text in EditText #55 How to create RecyclerView with multiple view type? #56 onActivityResult is not being called in Fragment #57 "Conversion to Dalvik format failed with error 1" on external JAR #58 Auto Scale TextView Text to Fit within Bounds #59 How to hide the title bar for an Activity in XML with existing custom theme #60 How to set TextView textStyle such as bold, italic

    Read all the top votes questions and answers in a single page. #51: How to Disable landscape mode in Android? (Score: 979) Created: 2009-02-24 Last updated: 2019-08-26 Tags: android, android-manifest, android-orientation How can I disable landscape …

    Read more

  • Most votes on android questions 5

    May 01, 2021 in FAQ

    Most votes on android questions 5. #41 Android "Only the original thread that created a view hierarchy can touch its views." #42 How do I rotate the Android emulator display? #43 How to manage startActivityForResult on Android? #44 How to add dividers and spaces between items in RecyclerView? #45 Static way to get 'Context' in Android? #46 How to convert a Drawable to a Bitmap? #47 Why doesn't RecyclerView have onItemClickListener()? #48 Can't start Eclipse - Java was started but returned exit code=13 #49 How to check if a service is running on Android? #50 Ship an application with a database

    Read all the top votes questions and answers in a single page. #41: Android "Only the original thread that created a view hierarchy can touch its views." (Score: 1048) Created: 2011-03-02 Last updated: 2017-12-10 Tags: android, …

    Read more

  • Most votes on android questions 4

    May 01, 2021 in FAQ

    Most votes on android questions 4. #31 How do I display an alert dialog on Android? #32 Fling gesture detection on grid layout #33 Run/install/debug Android applications over Wi-Fi? #34 findViewById in Fragment #35 R cannot be resolved - Android error #36 You need to use a Theme.AppCompat theme (or descendant) with this activity #37 Download a file with Android, and showing the progress in a ProgressDialog #38 Can't create handler inside thread that has not called Looper.prepare() #39 How to make links in a TextView clickable? #40 Android Studio: Add jar as library?

    Read all the top votes questions and answers in a single page. #31: How do I display an alert dialog on Android? (Score: 1133) Created: 2010-01-22 Last updated: 2021-04-03 Tags: android, android-alertdialog, android-dialog I want to display a …

    Read more

  • Most votes on android questions 3

    May 01, 2021 in FAQ

    Most votes on android questions 3. #21 Is there a way to get the source code from an APK file? #22 Hex transparency in colors #23 Strange OutOfMemory issue while loading an image to a Bitmap object #24 Android 8: Cleartext HTTP traffic not permitted #25 'Must Override a Superclass Method' Errors after importing a project into Eclipse #26 Activity has leaked window that was originally added #27 Android SDK installation doesn't find JDK #28 Is quitting an application frowned upon? #29 How to get current time and date in Android #30 How do I "select Android SDK" in Android Studio?

    Read all the top votes questions and answers in a single page. #21: Is there a way to get the source code from an APK file? (Score: 1348) Created: 2010-08-29 Last updated: 2014-04-04 Tags: android, android-resources, decompiling, apk The hard drive …

    Read more