Can you center a Button in RelativeLayout?
I’m trying to center a button in relative layout, is this possible? I’ve tried the Gravity and Orientation functions but they don’t do anything. 11 Answers 11
I’m trying to center a button in relative layout, is this possible? I’ve tried the Gravity and Orientation functions but they don’t do anything. 11 Answers 11
What I am trying to do: I am trying to make a custom dialog in android With rounded corners. What is happening: I am able to make custom dialog but it doesn’t have rounded corners. I tried adding a selector but still I couldn’t achieve rounded corners. Below is my code for the same: Java … Read more
The documentation of Toolbar says If an app uses a logo image it should strongly consider omitting a title and subtitle. What is the proper way to remove the title? 18 Answers 18
I have a custom BttomSheetDialogFragment and I want to have round corners in top of Bottom View This is my Custom class that inflates my layout that I want to appear from bottom View mView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { mView = inflater.inflate(R.layout.charge_layout, container, false); initChargeLayoutViews(); return mView; } and … Read more
I’m currently developing a responsive site using Twitter Bootstrap. The site has a full screen background image across mobile/tablet/desktop. These images rotate and fade through each, using two divs. It’s nearly perfect, except one issue. Using iOS Safari, Android Browser or Chrome on Android the background jumps slightly when a user scrolls down the page … Read more
We’re seeing a number of TimeoutExceptions in GcWatcher.finalize, BinderProxy.finalize, and PlainSocketImpl.finalize. 90+% of them happen on Android 4.3. We’re getting reports of this from Crittercism from users out in the field. The error is a variation of: “com.android.internal.BinderInternal$GcWatcher.finalize() timed out after 10 seconds“ java.util.concurrent.TimeoutException: android.os.BinderProxy.finalize() timed out after 10 seconds at android.os.BinderProxy.destroy(Native Method) at android.os.BinderProxy.finalize(Binder.java:459) … Read more
For my app I am using a RecyclerView inside a ScrollView where the RecyclerView has a height based on its content using this library. Scrolling is working but it’s not working smoothly when I scroll over the RecyclerView. When I scroll over the ScrollView itself it is scrolling smoothly. The code I am using to … Read more
I would like to have a way to reference the project’s manifest version number in the main part of the code. What I have been doing up until now is to link the version number in a String XML file to the manifest (@string/Version). What I would like to do is to do it the … Read more
I am currently developing an application that will use Bluetooth Low Energy (testing on the Nexus 4). After getting started with the official BLE APIs in Android 4.3, I have noticed that after I connect a device for the first time I am rarely able to successfully connect to / communicate with that device or … Read more
How can I know which version of Gradle I am using in my Android Studio? Please guide. I want to make sure I am using Gradle version 2.2.1. 11 Answers 11