android-appcompat

Floating Toolbar with Appcompat

纵然是瞬间 提交于 2019-12-17 22:43:16
问题 How to create a floating toolbar like the following image as proposed in the material design guidelines and in the Google Map application. 回答1: I've worked with the Toolbar before and all the comments from CommonsWare are absolutely correct. The Toolbar widget (https://developer.android.com/reference/android/support/v7/widget/Toolbar.html) have absolutely nothing special or different than any other Viewgroup and does not behave differently than any other ViewGroup. Put it inside a FrameLayout

How do I make my button which is fixed at the bottom of a layout scroll, once the recyclerview on top grows in size

为君一笑 提交于 2019-12-17 21:10:40
问题 I have a very basic yet difficult issue where I have a button fixed at the bottom of the view, but below recyclerview container. Once the container size grows, I want the button to go below the recyclerview (scrollable) instead of being fixed at the bottom of the view.Is there a way to achieve this? I have looked online for a couple of ideas but didn't find anything quite like it yet. i am basically using <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout

appcompat_v7: Error retrieving parent for item: No resource found that matches the given name

自作多情 提交于 2019-12-17 19:12:41
问题 I am trying to build the Android project that uses appcompat_v7 library. For that, I created my project through Eclipse -> New Android Sample Project and added my custom styles.xml and then added the appcompat_v7 library Project -> Properties -> Android -> Add. But I am getting the following errors in appcompat_v7/res/values/styles_base.xml when I compile my project: appcompat_v7/res/values/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given

How to style the cursor color of SearchView under AppCompat

十年热恋 提交于 2019-12-17 18:25:50
问题 My SearchView is android.support.v7.widget.SearchView and AppTheme is showed below. <style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary_dark</item> <item name="colorAccent">@color/color_accent</item> </style> <style name="AppTheme" parent="AppBaseTheme"> </style> The color of SearchView seems strange, its cursor and bottom line showed white and

how to set colored border on cardview

百般思念 提交于 2019-12-17 18:06:22
问题 I am implementing card view but I can't find any border option to set a border on it. here is my card.xml: <android.support.v7.widget.CardView android:layout_marginTop="10dp" android:id="@+id/cardView" android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" card_view:cardPreventCornerOverlap="false" app:cardPreventCornerOverlap="false" xmlns:card_view="http://schemas.android.com/tools" xmlns:app="http://schemas

After setting up android-support-v7-appcompat R.java is missing

那年仲夏 提交于 2019-12-17 16:10:11
问题 I am trying to change my Eclipse project to make it backward compatible to Android 2.1. I followed the instructions to set up the Support Library from here but after I attached the Library project to my project, the R.java from the gen directory gone. Plus I got some errors in the console, like: [2013-09-02 00:08:26 - gitarshopAndroidClient] /usr/local/external/android-sdk-linux/extras/android/support/v7/appcompat/res/values-v14/styles_base.xml:24: error: Error retrieving parent for item: No

Styling ActionMode ActionBar in Android 5.0 Lollipop (with AppCompat)

情到浓时终转凉″ 提交于 2019-12-17 15:16:43
问题 I used this tutorial to facelift my Holo app for Lollipop: http://android-developers.blogspot.ru/2014/10/appcompat-v21-material-design-for-pre.html What I have: Theme <style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="windowActionModeOverlay">true</item> <item name="colorPrimary">@color/theme_primary</item> <item name="colorPrimaryDark">@color/theme_primary_dark</item> <item name="colorAccent">@color/theme_accent</item> </style> Toolbar layout <android.support.v7

How to add android.support.v7.widget.GridLayout into intelliJidea?

感情迁移 提交于 2019-12-17 10:40:51
问题 I want to add GridLayout into my android project which is use support library GridLayout v7. I found this thread but maybe a few steps of adding this library did not mention in this paragraph Set up support GridLayout library in IntelliJ . can anyone explain obviously? Edit: I have the same problem at this thread 回答1: It's late for an answer but here it is, at least for future people looking for a solution on how to add the support library and resources for GridLayout (or ActionBarActivity /

AppCompat 23.3 Support Vectors no longer work?

安稳与你 提交于 2019-12-17 10:19:24
问题 I was using the support vector drawables added in Support Library 23.2 along with AppCompat. I was using vector drawables both with app:srcCompat and inside a StateListDrawable so I could use them with android:drawableLeft for my TextView. Since upgrading to the 23.3.0 version of AppCompat, only the vectors in app:srcCompat are working. Whenever I reference it the other way I get FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.package.name/

How to fix: “You need to use a Theme.AppCompat theme (or descendant) with this activity”

送分小仙女□ 提交于 2019-12-17 09:35:23
问题 I am having trouble running my Android app in a fullscreen mode per instructions of a video. When it tries to run, the app crashes with the error. "You need to use a Theme.AppCompat theme (or descendant) with this activity Manifest File <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.djsg38.hikerswatch"> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android