android-support-library

javafxports 'android' gradle task requires “Android Support Library” which is retired from Android SDK Manager…what now?

时间秒杀一切 提交于 2019-12-17 07:53:37
问题 The official Gluon docs say in the prerequisites for an Android build: From the Android SDK Manager, install...from Extras the Android Support Library However, it seems that this is retired from the sdk manager in lieu of the "Android Support Repository", a gradle repository. The javafxports plugin is apparently still looking for the old support library folder in the android SDK, as indicated by the error: Cannot expand ZIP '<my AppData path>\Local\Android\sdk\extras\android\support\multidex

RecyclerView items with big empty space after 23.2.0

泄露秘密 提交于 2019-12-17 07:14:37
问题 After update to v23.2.0 in my RecyclerView I have items with huge empty vertical space, between the items. My item layout is very simple: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > 回答1: According to the doc With the release 23.2.0 there is an exciting new feature to the LayoutManager API: auto-measurement ! This allows a RecyclerView to size itself based on

AAPT: error: resource android:attr/fontVariationSettings not found and resource android:attr/ttcIndex not found

允我心安 提交于 2019-12-17 06:56:07
问题 I m currently working on an android project, so when I upgrade the project from android targetSdkVersion 21 to 27, the project won't work. so if there's anyone here who can help me to fix that problem. I m using mac os 10.12. this app/build.gradle : apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' android { compileSdkVersion 27 buildToolsVersion "27.0.3" defaultConfig { applicationId "ma.oujda.ifdose" minSdkVersion 21 targetSdkVersion 27 versionCode 1

How to add “Android Design Support Library” to Eclipse with ADT-plugin?

巧了我就是萌 提交于 2019-12-17 06:46:09
问题 The Android Developers Blog announced in May 2015: The Design library is available now, so make sure to update the Android Support Repository in the SDK Manager. I am using Eclipse (Version: Luna 4.4.2) with latest ADT-plugin and don't see anything "design" in the SDK manager: When trying to use android.support.design.widget.FloatingActionButton or android.support.design.widget.NavigationView in my projects like this one - I unfortunately get errors: Caused by: java.lang

How to add “Android Design Support Library” to Eclipse with ADT-plugin?

感情迁移 提交于 2019-12-17 06:46:07
问题 The Android Developers Blog announced in May 2015: The Design library is available now, so make sure to update the Android Support Repository in the SDK Manager. I am using Eclipse (Version: Luna 4.4.2) with latest ADT-plugin and don't see anything "design" in the SDK manager: When trying to use android.support.design.widget.FloatingActionButton or android.support.design.widget.NavigationView in my projects like this one - I unfortunately get errors: Caused by: java.lang

How to replace deprecated android.support.v4.app.ActionBarDrawerToggle

梦想的初衷 提交于 2019-12-17 06:25:09
问题 Yesterday (17-10-2014) I have update Android SDK and support-library-v4.jar of my App, now I get deprecation warning related to ActionBarDrawerToggle , reading the documentation seems that I have to use the ActionBarDrawerToggle in support-library-v7.appcompact.jar . Here some parts of my Activity that could be relevants: import android.app.ActionBar; import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; import android.support.v4.app

How I can remove the unnecessary top padding of the Navigation view?

浪尽此生 提交于 2019-12-17 06:08:25
问题 There's an unnecessary top padding between the header and the first item shown in this picture. How it can be removed? you can find the source code here: https://github.com/chrisbanes/cheesesquare 回答1: NavigationView seeks to match the material design specs for the navigation drawer which state an 8dp space between content areas. Generally there are no ways to override NavigationView to specifically break the specifications. 回答2: You can override predefined dimensions at your dimens.xml as;

How to hide ToolBar when i scrolling content up in android

强颜欢笑 提交于 2019-12-17 05:02:00
问题 I am trying to hide my tool bar when i scroll my text and image with content , here i use scrollView for getting scroll content when ,when i scroll content up how to hide tool bar please any one tell me how to get here my XMl code content_main.XML <android.support.v4.widget.NestedScrollView xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android" app:layout_behavior="

Set span for items in GridLayoutManager using SpanSizeLookup

不羁岁月 提交于 2019-12-17 04:46:52
问题 I want to implement grid-like layout with section headers. Think of https://github.com/TonicArtos/StickyGridHeaders What I do now: mRecyclerView = (RecyclerView) view.findViewById(R.id.grid); mLayoutManager = new GridLayoutManager(getActivity(), 2); mLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { @Override public int getSpanSize(int position) { switch(mAdapter.getItemViewType(position)){ case MyAdapter.TYPE_HEADER: return 1; case MyAdapter.TYPE_ITEM: return 2;

Change EditText hint color when using TextInputLayout

北慕城南 提交于 2019-12-17 03:56:12
问题 I am using the new TextInputLayout from the design library. I am able to get it to show and to change the color of the floating label. Unfortunately the actual EditText hint is now always white. I have tried changing the hintColor in XML, styles, and programmatically and also tried using the android.support.v7.widget.AppCompatEditText but the EditText hint always shows white. Here is my XML for my TextInputLayout and EditText <android.support.design.widget.TextInputLayout android:layout_width