小编Ali*_*rei的帖子

删除BottomNavigationView标签

谷歌发布了支持BottomNavigationView的新支持库v25

在此输入图像描述

有没有办法删除商品标签?

android android-support-library androiddesignsupport bottomnavigationview

56
推荐指数
6
解决办法
4万
查看次数

Android Studio无法解析:support-core-utils

将支持库版本升级到27.1.1后我同步项目我遇到以下错误:

Failed to resolve: support-core-utils
Run Code Online (Sandbox Code Playgroud)

任何的想法?

这是我的项目级构建文件:

    buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
        classpath 'com.google.gms:google-services:3.1.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
Run Code Online (Sandbox Code Playgroud)

和应用程序级别构建文件:

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
Run Code Online (Sandbox Code Playgroud)

android gradle

30
推荐指数
4
解决办法
1万
查看次数

Android底部页面布局边距

如何在片段中设置页边距?

我在片段底部有一个线性布局,现在我想从该线性布局的顶部展开底部片材

android:layout_marginBottom="36dp" 不起作用,底页覆盖线性布局.

这是我的代码:

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="36dp"
    android:background="@drawable/shadow"
    android:layout_gravity="bottom">

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@mipmap/ic_add_white_24dp" />
</LinearLayout>

<LinearLayout
    android:id="@+id/bottom_sheet"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#ff0000"
    app:behavior_hideable="true"
    app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
    android:layout_marginBottom="36dp">

    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Test" />

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

android

9
推荐指数
1
解决办法
4621
查看次数

viewpager2 RTL 无法与清单一起使用supportsRtl = false

有没有办法强制 ViewPager2 RTL 方向?我已设置android:layoutDirection="rtl"为 viewpager2 但由于android:supportsRtl="false"清单中它仍然是 LTR。我该如何解决这个问题?

android android-viewpager android-viewpager2

5
推荐指数
1
解决办法
646
查看次数