Arn*_*nes 10 android material-design
有没有办法在Eclipse中使用Material设计创建应用程序.汉堡箭头动画,全屏高度导航抽屉...提前感谢任何sugestions.
Poo*_*oja 15
是的,您可以使用eclipse创建具有材质设计的应用程序.请仔细遵循以下每个步骤,不得有任何错误.
脚步:
values/styles.xml应如下所示.
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
....
// Your style here
</style>
Run Code Online (Sandbox Code Playgroud)
values-v21/style.xml应如下所示.
<style name="AppBaseTheme" parent="@android:style/Theme.Material.Light.DarkActionBar">
....
// Your style here
</style>
Run Code Online (Sandbox Code Playgroud)
您可以在https://developer.android.com/training/material/theme.html找到不同的样式属性
完成上述步骤后,您的应用程序将准备好材料设计主题.
现在关于导航抽屉的第二个问题,您可以使用以下链接进行简单和逐步实施.
第1部分http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html4
第2部分http://www.android4devs.com/2015/01/recycler-view-handling-onitemtouch-for.html
此实现使用Recycler视图.为此,您需要将recycleler视图lib(location - sdk\extras\android\support\v7)添加到项目中并将其添加到构建路径.
| 归档时间: |
|
| 查看次数: |
21143 次 |
| 最近记录: |