Exception or error: I’ve been trying to set up a long click listener event, but keep getting the following error: Type mismatch. Required:Boolean Found:Unit I’ve had no issues with the setOnClickListener event, but for some reason I’m having zero luck with the setOnLongClickListener event. I’m currently trying to display a simple Toast: view.setOnLongClickListener{ Toast.makeText(this, “Long …
Tag: perl
xamarin – Visual Studio 2017 Android Device Manager thinks WHPX is not properly installed-ThrowExceptions
Exception or error: I just update Visual Studio 2017 to version 15.8.0, the one that I’ve been waiting for a while now, due to its support for Hyper-V accelerated Android emulators using Windows Hypervisor Platform (WHPX). I’ve been running Windows 10 version 1803 since May, and I have installed/enabled Windows Hypervisor Platform from “Turn Windows …
android – Ellipsize not working properly for a multiline TextView with an arbitrary maximum height-ThrowExceptions
Exception or error: I have a TextView with an unknown maximum height, which is dependent on the device’s DPI/screen resolution. So, for instance, on and MDPI device this maximum height makes it possible to show only 2 lines at a time, a value that can be increased up to an undefined number. My issue is …
java – How to properly remove padding (or margin?) around buttons in Android?-ThrowExceptions
Exception or error: Currently, I have the following bottom log in button. When button is not being pressed When button is being pressed The XML looks like this <LinearLayout android:background=”?attr/welcomeBottomNavBarBackground” android:orientation=”horizontal” android:id=”@+id/sign_in_bottom_nav_bar” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_alignParentBottom=”true”> <Button style=”?android:attr/buttonBarButtonStyle” android:id=”@+id/sign_in_button” android:layout_width=”0dp” android:width=”0dp” android:layout_weight=”1.0″ android:layout_height=”48dp” android:gravity=”center” android:layout_gravity=”center” android:enabled=”true” android:textAllCaps=”true” android:text=”@string/log_in” /> </LinearLayout> I would like to remove the …
Android TextView Hyperlink-ThrowExceptions
Exception or error: I’m implementing a TextView with a string containing two hyperlinks as below but the links are not opening a new browser window: <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”center” android:gravity=”center” android:textColor=”#ffffff” android:paddingLeft=”50dp” android:paddingRight=”50dp” android:textSize=”14sp” android:clickable=”true” android:linksClickable=”true” android:textColorLink=”@color/colorPrimary” android:autoLink=”web” android:text=”@string/agree_terms_privacy”/> In string.xml <string name=”agree_terms_privacy”>By continuing, you agree to our <a href=”http://link1/terms”>Terms of Use</a> and read the …
android – Database not getting copied properly in OnePlus Two-ThrowExceptions
Exception or error: I am creating an Android Application and I am using sqlite database in it. for that I have placed a sqlite file in assets folder of project and I am copying this file to phone while my first execution of application using code below. private void copyDataBase() throws IOException { new File(DB_PATH).mkdirs(); …
hyperlink – How to support Amazon and Android Market (Google Play) links in same APK-ThrowExceptions
Exception or error: This question already has answers here: Closed 8 years ago. Possible Duplicate: Supporting Amazon and Android market links inside application I was wondering if and how you could differentiate between an Amazon App Store installed app and one installed from the Market. For example, say I have my app called “Example App”, …
android – How to properly hide&show the actionbar using the new design library API?-ThrowExceptions
Exception or error: Background Suppose I have these elements in the activity: actionbar (actually a Toolbar) tabs (using TabLayout ) ViewPager, with fragments. each fragment has ListVIew/RecyclerView. I wish to have the same behavior as on many apps, that when scrolling, the action bar will hide or show. A perfect example for it is how …
xml – How to properly design/style a Android Navigation Drawer-ThrowExceptions
Exception or error: Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago. Im having trouble find any resources on how to properly design a standard Navigation Drawer. I’ve got the below …