android-support-library Questions
4
Sorry maybe this is not new topic, but really need help, i was try many post about this, but my problem still not fix, i am newbie about android. I try to learn Material Design, i use android lolli...
Bramble asked 14/7, 2015 at 8:38
13
Solved
I want to set margin in between each tab. Like in PagerTabStrip which has setTextSpacing(int textSpacing) to make text spacing between tab. Can TabLayout do that?
Bernardobernarr asked 15/9, 2015 at 7:33
37
Solved
I am trying to disable user dragging on BottomSheet. The reason I want to disable is two things. 1. It's preventing the ListView from scrolling downward, 2. I don't want users to dismiss using drag...
Temperance asked 4/3, 2016 at 10:56
12
Solved
I'm trying to figure out how can be modified FloatingActionButton from android support library. Can it be used with the text instead of image?
Something like this one:
I see it extends ImageBut...
Ronen asked 12/11, 2015 at 12:15
5
Solved
I have problem with setting Snackbar on tablet (API 22), on phones (API 23 and 22) it works fine (from edge to edge), even when horizontal.
Result is such Snackbar as below:
FloatingActionButton (...
Rangy asked 1/10, 2015 at 21:2
3
Solved
I need a custom layout for my PreferenceFragmentCompat. In the docs for PreferenceFragmentCompat it seems that you can possibly inflate and return a view in onCreateView().
However a NPE results:-...
Zosema asked 13/3, 2016 at 5:25
3
I need to change SwitchCompat's track color.
I've tried this, but it didn't worked for me.
This is code of my XML file
<android.support.v7.widget.SwitchCompat
android:id="@+id/sc_push"
style=...
Failure asked 1/9, 2015 at 9:23
9
Solved
I need to put Switch inside item in navigation drawer. I'm using new design support library, but I cannot find if it is posibble at all. When using
android:checkable
item is just full selected ...
Ogham asked 13/6, 2015 at 21:43
5
I have a view in ConstrainLayout as follows.
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="260dp"
android:textColor="#FFF"
android:t...
Torques asked 16/1, 2017 at 6:29
17
Solved
I have an AppCompatActivity that controls replacing many fragments. Here is my layout for it.
activity_main.xml
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.androi...
Moderato asked 11/6, 2015 at 11:9
2
I'm getting these warnings in my android build.
Warning:(19, 9) Attribute `layout_marginVertical` is only used in API level 26 and higher (current min is 24)
Warning:(20, 9) Attribute `layout_margi...
Ophthalmoscope asked 13/3, 2018 at 2:18
4
Solved
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'supp...
Vaginectomy asked 3/9, 2017 at 13:37
4
Should I select the Use legacy android.support libraries option when creating a new project? What will happen if I don't select this option?
Sambo asked 11/6, 2020 at 13:3
28
Solved
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.
...
Vanbuskirk asked 13/6, 2015 at 22:3
6
Solved
I had this issue where I overflow the 64k method limit in Dalvik when compiling all the library I used. I started to have this issue when I imported the Support Library, as some are already contain...
Constabulary asked 12/5, 2016 at 15:52
5
Is there a way to avoid it?
If my text is "Blablabla" and it doesn't fit in a square, I don't want to have something like:
Blabla-
bla
I want "Blablabla" with a smaller font size. Is there a wa...
Eisegesis asked 27/10, 2017 at 13:43
3
Is it possible to make CollapsingToolbarLayout's expanded title text wraps across several lines (similar to TextView.maxLines attribute)?
Athanasia asked 5/7, 2015 at 19:41
4
Solved
I want to support at least api 10, I want to be able to style my preferences nicely, I want to be able to have headers (or to show PreferenceScreens). It seems that PreferenceActivity, not fully su...
Paulson asked 17/9, 2015 at 1:50
3
Solved
I can choose from either of the following ways of checking to see if my app has a given permission.
Which one is preferred?
ContextCompat (from support-compat lib):
ContextCompat.checkSelfPermis...
Lanfranc asked 28/6, 2017 at 23:12
4
On which situation android-build/android-studio shows these errors?
Cannot access androidx.lifecycle.LifecycleOwner
and
Cannot access androidx.lifecycle.ViewModelStoreOwner
What is the mean...
Halide asked 2/9, 2019 at 20:1
22
Solved
I have a FragmentActivity and I want to use a map fragment within it. I'm having a problem getting the support fragment manager to access it.
if (googleMap == null) {
googleMap = ((SupportMapFra...
Ibnrushd asked 27/11, 2013 at 8:44
10
Solved
I'm having trouble importing some of the Android UI testing framework classes - I just can't figure out what is going wrong!
This is my class:
@RunWith(AndroidJUnit4.class)
@LargeTest
public clas...
Vanda asked 14/6, 2016 at 20:5
5
Solved
I am new to android and was learning how to implement Location Based Services, and i encounter the following errors -
Cannot resolve symbol 'ActivityCompat'
in line 'import android.support.v4....
Limemann asked 10/9, 2019 at 9:55
7
Solved
when I update android support lib from 23.0.1 to 23.1.0, I find the SeekBar is not full width any more.
this is the test XML file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
x...
Gaspard asked 2/11, 2015 at 8:54
24
Solved
So I've started using the new Snackbar in the Design Support Library, but I found that when you define "android:textColor" in your theme, it applies to the text color of the snackbar. This is obvio...
Wynn asked 25/6, 2015 at 21:55
© 2022 - 2024 — McMap. All rights reserved.