标签: material-theme

Material Design向后兼容性

从Android Developer页面上提供的示例中,我看到新的视图,如RecyclerView,向后兼容(android.support.v7.widget.RecyclerView).

Material Design中引入的所有新东西是否向后兼容(哪个版本)?

android backwards-compatibility material-design android-5.0-lollipop material-theme

63
推荐指数
3
解决办法
4万
查看次数

在AppCompat中使用基于材质的对话框主题

我在我的Manifest中有一个活动,我习惯用Dialog主题设置风格.我找不到如何在AppCompat库中替换它.

  <activity
            android:name=".LoginActivity"
            android:theme="@android:styles/Theme.Holo.Dialog" 
            android:configChanges="orientation|screenSize|keyboardHidden"
            android:label="Login" >
Run Code Online (Sandbox Code Playgroud)

有基于材料的等价物吗?

android themes android-appcompat material-design material-theme

21
推荐指数
3
解决办法
4万
查看次数

在L预览上使用材质主题

L Developer Preview目前处于API级别20.但是,显然主题需要API级别21.

@android:style/Theme.Material.Light.DarkActionBar 需要API级别21

这是一个错误,我做错了什么,或者只是不可能在L预览中使用Material?

android android-5.0-lollipop material-theme

11
推荐指数
1
解决办法
6017
查看次数

如何在IntelliJ Idea启动时禁用"材质主题"向导

我在我的Mac Intellij Idea 2018上使用Material Theme,现在每次启动IDE时它都会显示Welcome to Material Theme Wizard,以帮助我逐步设置主题.

我想在IDE启动时禁用它,我该怎么办?

谢谢.

intellij-idea material-theme

6
推荐指数
1
解决办法
549
查看次数

内存泄漏与材料主题

目前我安装了泄漏程序来跟踪应用程序中的内存泄漏.在开始我的应用程序后,我从许多活动中获取了泄漏记录.

GC ROOT android.service.theme.MaterialThemeManager $ 1.this $ 0(匿名类扩展android.service.theme.IOnMaterialThemeChangedListener $ Stub)05-31 16:14:57.240 19260-20575/in.moovo.Moovo D/LeakCanary:*参考android.service.theme.MaterialThemeManager.mContext 05-31 16:14:57.240 19260-20575/in.moovo.Moovo D/LeakCanary:*引用android.app.ContextImpl.mOuterContext

我怎样才能解决这个内存泄漏以及造成这种泄漏的原因.

android memory-leaks material-theme leakcanary

5
推荐指数
0
解决办法
132
查看次数

带有Theme.Material的Android设计支持库

我想在我的应用程序中使用新的设计支持库,从API 21开始.我想使用Theme.Material样式,但它仅适用于Theme.AppCompat样式.当我使用Theme.Material时,android会返回此错误:

错误膨胀类android.support.design.widget.textinputlayout"

我该如何解决?

先感谢您

Ps:抱歉我的英语不好,我是法国人.

更新: 这是我的代码

styles.xml

<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
    <item name="android:colorPrimary">@color/primary</item>
    <item name="android:colorPrimaryDark">@color/primary_dark</item>
    <item name="android:colorAccent">@color/accent</item>
    <item name="android:colorControlNormal">@color/control_normal</item>
    <item name="android:textColorHint">@color/silver</item>
</style>
Run Code Online (Sandbox Code Playgroud)

activity.xml

<android.support.design.widget.TextInputLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="username"
        android:id="@+id/editText1" />

</android.support.design.widget.TextInputLayout>
Run Code Online (Sandbox Code Playgroud)

的build.gradle

dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])

compile project(':facebook')
compile('com.twitter.sdk.android:twitter:1.1.0@aar') {
    transitive = true;
    exclude module: 'gson'
}

compile 'com.google.android.gms:play-services-plus:7.5.0'
compile 'com.google.android.gms:play-services-identity:7.5.0'
compile 'com.android.support:design:22.2.0'
compile 'com.android.support:support-v13:22.0.0'
compile 'com.android.support:cardview-v7:22.0.0'
compile 'com.soundcloud.android:android-crop:0.9.10@aar'

compile files('libs/volley.jar')
compile files('libs/gson-2.3.1.jar')
compile files('libs/httpclient-4.3.3.jar')
compile files('libs/httpclient-cache-4.3.3.jar')
compile files('libs/httpcore-4.3.2.jar')
compile files('libs/httpmime-4.3.3.jar')
compile files('libs/commons-lang3-3.3.2.jar')
compile …
Run Code Online (Sandbox Code Playgroud)

android android-5.0-lollipop material-theme android-design-library androiddesignsupport

3
推荐指数
1
解决办法
4357
查看次数

Visual Studio 2019的材质主题

在过去的几年,我已经使用Solarized Dark,并VS Color Theme Editor在主题Visual Studio 201x和努力后材料的主题Visual Studio Code,我想用这个精彩的主题Visual Studio 2019为好。然而,对于不兼容VS2017VS2019Material Theme不幸。我想知道是否有可能改变这个主题,即借助导出工具的帮助,如Extension ManagerVisual Studio 2019中使用您喜欢的扩展中所述。或者是有任何可用的主题类似Material ThemeVisual Studio 20172019

themes visual-studio material-theme visual-studio-code visual-studio-2019

0
推荐指数
2
解决办法
9238
查看次数