zoukankan      html  css  js  c++  java
  • 随心而记

    //---1--------在eclipse--中去除标题-----------------------------------

      在   setContentView(R.layout.activity_home);之前加

    requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏

    //----2-----------视频播放实现横竖屏切换--------在配置文件中-----------VideoView所在的--activity中------    

    <activity
                android:name="com.bw.bofang.QuanPingActivity"
                android:label="@string/title_activity_quan_ping"
                android:screenOrientation="sensor"
                 > 

    //----------------android studio的项目怎么去掉标题-------------------------------------

    <application

    android:icon="@drawable/ic_la"//工程的图标
    android:label="@string/app_name"//工程的名字、去string中改

    android:theme="@style/Theme.AppCompat.Light.NoActionBar">//此为不显示标题栏

    </application>

    //-------------------------//关闭输入框--------------------------
                    InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
                    imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
  • 相关阅读:
    java线程(1)-线程同步
    Scala:(3)数组
    Codeforces 899F Letters Removing
    拼图游戏的可解性
    Hash
    哈夫曼编码
    莫比乌斯
    FFT
    Ropes
    区间合并
  • 原文地址:https://www.cnblogs.com/changyiqiang/p/5788225.html
Copyright © 2011-2022 走看看