小编vim*_*hra的帖子

如何从android活动中删除标题栏?

有人可以帮我解决这个问题.我希望我的活动全屏,并希望从屏幕上删除标题.我尝试了几种方法,但无法将其删除.

活动代码:

public class welcomepage extends Activity {
    private Button btn;
    EditText userName,passWord;
    DatabaseHandler dbHandler;
    Context ctx =this;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Remove title bar
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_welcomepage);
   }
}
Run Code Online (Sandbox Code Playgroud)

和Activity.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:background="@drawable/pic1"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.edkul.vimal.edkul.welcomepage">

</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

我想删除以蓝色显示的标题栏.请找到参考图像:

在此输入图像描述

AndroidManifest.xml中

<application
        android:minSdkVersion="3"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/Theme.AppCompat.NoActionBar">
        <activity
            android:name=".welcomepage"
            android:label="@string/app_name"
            android:theme="@style/Theme.AppCompat.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category    android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
</application>
Run Code Online (Sandbox Code Playgroud)

android android-layout

28
推荐指数
5
解决办法
7万
查看次数

git clone 命令不起作用?

我正在尝试克隆位存储桶回购。在安装 git 后执行以下命令后,我面临以下问题:

$ git clone https://usernam@bitbucket.org/username/reponame.git
Error :fatal: unable to access'https://username@bitbucket.org/username/reponame.git/': 
Failed to connect to hostname port 8000: Connection refused
Run Code Online (Sandbox Code Playgroud)

我怎样才能克服这个错误信息?

git github bitbucket

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

如何在Slack附件的字段选项内添加URL?

我正在尝试从外部源向Slack通道发送通知。我正在尝试将URL链接放在附件的字段标记内。有没有办法做到这一点?

{
    "attachments": [
        {
            "fallback": "Required plain-text summary of the attachment.",

            "color": "#36a64f",

            "pretext": "Optional text that appears above the attachment block",

            "author_name": "Bobby Tables",
            "author_link": "http://flickr.com/bobby/",
            "author_icon": "http://flickr.com/icons/bobby.jpg",

            "title": "Slack API Documentation",
            "title_link": "https://api.slack.com/",

            "text": "Optional text that appears within the attachment",

            "fields": [
                {
                    "title": "Priority",
                    "value": "High",
                    "short": false
                }
            ],

            "image_url": "http://my-website.com/path/to/image.jpg",
            "thumb_url": "http://example.com/path/to/thumb.png"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

node.js slack-api slack

2
推荐指数
1
解决办法
819
查看次数

标签 统计

android ×1

android-layout ×1

bitbucket ×1

git ×1

github ×1

node.js ×1

slack ×1

slack-api ×1