- A+
所属分类:Android开发
一、碎片化
1.碎片:是一种可以在嵌入在活动当中的UI片段,他能让程序更加合理和充分的利用大屏幕空间,因为在平板电脑上应用的非常广泛。
2.先设置一个左边的
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="Button"
/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textSize="20sp"
android:text="This is right fragment"
/>
</LinearLayout>
LeftFragment = inflater.inflate(R.layout.left_fragment,container,
我们先写一个框架,下次连载在晒出想要的结果
另外
(.join([.join([([(x-y) % len()] ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 ) x range(-30, 30)]) y range(30, -30, -1)]))
二、源码:
1.项目地址
https://github.com/ruigege66/Android/tree/master/UIBestPractice
2.CSDN:https://blog.csdn.net/weixin_44630050
3.博客园:https://www.cnblogs.com/ruigege0000/
4.欢迎关注微信公众号:傅里叶变换,个人公众号,仅用于学习交流,后台回复”礼包“,获取大数据学习资料
转载自:https://www.cnblogs.com/ruigege0000/p/12735259.html