<Button
android:id="@+id/drawerHandle"
android:layout\_width="match\_parent"
android:layout\_height="wrap\_content"
android:layout\_centerHorizontal="true"
android:background="@color/transparent"
android:text="把手"
/>
<LinearLayout
android:id="@+id/drawerContent"
android:layout\_width="fill\_parent"
android:layout\_height="300dp"
android:layout\_below="@+id/drawerHandle"
android:background="@color/colorAccent"
android:gravity="center"
android:orientation="vertical">
<Button
android:id="@+id/click"
android:layout\_width="wrap\_content"
android:layout\_height="wrap\_content"
android:layout\_gravity="center"
android:text="底部上滑view" />
<Button
android:id="@+id/click1"
android:layout\_width="wrap\_content"
android:layout\_height="wrap\_content"
android:layout\_gravity="center"
android:text="click" />
<Button
android:id="@+id/click2"
android:layout\_width="wrap\_content"
android:layout\_height="wrap\_content"
android:layout\_gravity="center"
android:text="click" />
</LinearLayout>
</RelativeLayout>
</com.example.lenovo.drawerlibrary.DrawerLayout>
### 2、activity代码
public class MainActivity extends AppCompatActivity {
private DrawerLayout mDrawerLayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.shanghua);
mDrawerLayout = (DrawerLayout) findViewById(R.id.dial\_drawer);
mDrawerLayout.setInitialState(DrawerLayout.State.Close); //set drawer initial state: open or close
mDrawerLayout.setDrawerListener(new DrawerLayout.DrawerListener()
{
@Override
public void drawerOpened()
{
}
@Override
public void drawerClosed()
{
尾声
面试成功其实都是必然发生的事情,因为在此之前我做足了充分的准备工作,不单单是纯粹的刷题,更多的还会去刷一些Android核心架构进阶知识点,比如:JVM、高并发、多线程、缓存、热修复设计、插件化框架解读、组件化框架设计、图片加载框架、网络、设计模式、设计思想与代码质量优化、程序性能优化、开发效率优化、设计模式、负载均衡、算法、数据结构、高级UI晋升、Framework内核解析、Android组件内核等。
不仅有学习文档,视频+笔记提高学习效率,还能稳固你的知识,形成良好的系统的知识体系。这里,笔者分享一份从架构哲学的层面来剖析的视频及资料分享给大家梳理了多年的架构经验,筹备近6个月最新录制的,相信这份视频能给你带来不一样的启发、收获。
Android进阶学习资料库
一共十个专题,包括了Android进阶所有学习资料,Android进阶视频,Flutter,java基础,kotlin,NDK模块,计算机网络,数据结构与算法,微信小程序,面试题解析,framework源码!
大厂面试真题
PS:之前因为秋招收集的二十套一二线互联网公司Android面试真题 (含BAT、小米、华为、美团、滴滴)和我自己整理Android复习笔记(包含Android基础知识点、Android扩展知识点、Android源码解析、设计模式汇总、Gradle知识点、常见算法题汇总。)
《2017-2021字节跳动Android面试历年真题解析》
、Android源码解析、设计模式汇总、Gradle知识点、常见算法题汇总。)
[外链图片转存中…(img-p2uVENzr-1719209274099)]
《2017-2021字节跳动Android面试历年真题解析》
[外链图片转存中…(img-nnQDTJhk-1719209274100)]