android constrait layout overlap with title bar
What's wrong with below constraint layout:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>
The button has been overlapped by title bar!
android
add a comment |
What's wrong with below constraint layout:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>
The button has been overlapped by title bar!
android
Where is that ActionBar added? It doesn't look like the default one.
– TheWanderer
Nov 15 '18 at 2:19
use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
– Harin Kaklotar
Nov 15 '18 at 2:54
is its layout of the fragment? so can you show me the root layout that contains this fragment?
– GianhTran
Nov 15 '18 at 3:59
1
From where you addedActionBar
? in manifest or in code?
– scienticious
Nov 15 '18 at 4:52
ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);
– lucky1928
Nov 15 '18 at 16:08
add a comment |
What's wrong with below constraint layout:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>
The button has been overlapped by title bar!
android
What's wrong with below constraint layout:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/constraint"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toTopOf="@+id/txtView" />
<TextView
android:id="@+id/txtView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintTop_toBottomOf="@+id/button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
/>
</android.support.constraint.ConstraintLayout>
The button has been overlapped by title bar!
android
android
asked Nov 15 '18 at 2:16
lucky1928lucky1928
3,66742245
3,66742245
Where is that ActionBar added? It doesn't look like the default one.
– TheWanderer
Nov 15 '18 at 2:19
use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
– Harin Kaklotar
Nov 15 '18 at 2:54
is its layout of the fragment? so can you show me the root layout that contains this fragment?
– GianhTran
Nov 15 '18 at 3:59
1
From where you addedActionBar
? in manifest or in code?
– scienticious
Nov 15 '18 at 4:52
ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);
– lucky1928
Nov 15 '18 at 16:08
add a comment |
Where is that ActionBar added? It doesn't look like the default one.
– TheWanderer
Nov 15 '18 at 2:19
use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
– Harin Kaklotar
Nov 15 '18 at 2:54
is its layout of the fragment? so can you show me the root layout that contains this fragment?
– GianhTran
Nov 15 '18 at 3:59
1
From where you addedActionBar
? in manifest or in code?
– scienticious
Nov 15 '18 at 4:52
ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);
– lucky1928
Nov 15 '18 at 16:08
Where is that ActionBar added? It doesn't look like the default one.
– TheWanderer
Nov 15 '18 at 2:19
Where is that ActionBar added? It doesn't look like the default one.
– TheWanderer
Nov 15 '18 at 2:19
use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
– Harin Kaklotar
Nov 15 '18 at 2:54
use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
– Harin Kaklotar
Nov 15 '18 at 2:54
is its layout of the fragment? so can you show me the root layout that contains this fragment?
– GianhTran
Nov 15 '18 at 3:59
is its layout of the fragment? so can you show me the root layout that contains this fragment?
– GianhTran
Nov 15 '18 at 3:59
1
1
From where you added
ActionBar
? in manifest or in code?– scienticious
Nov 15 '18 at 4:52
From where you added
ActionBar
? in manifest or in code?– scienticious
Nov 15 '18 at 4:52
ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);
– lucky1928
Nov 15 '18 at 16:08
ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);
– lucky1928
Nov 15 '18 at 16:08
add a comment |
2 Answers
2
active
oldest
votes
Try this...
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
/>
<TextView
android:id="@+id/txtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"/>
</android.support.constraint.ConstraintLayout>
Result:
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
add a comment |
<Button
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="SEND"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:text="Hello World"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintVertical_bias="0.0">
</TextView>
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311485%2fandroid-constrait-layout-overlap-with-title-bar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this...
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
/>
<TextView
android:id="@+id/txtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"/>
</android.support.constraint.ConstraintLayout>
Result:
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
add a comment |
Try this...
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
/>
<TextView
android:id="@+id/txtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"/>
</android.support.constraint.ConstraintLayout>
Result:
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
add a comment |
Try this...
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
/>
<TextView
android:id="@+id/txtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"/>
</android.support.constraint.ConstraintLayout>
Result:
Try this...
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
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:id="@+id/constraint"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
/>
<TextView
android:id="@+id/txtView"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="10dp"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button"/>
</android.support.constraint.ConstraintLayout>
Result:
edited Nov 16 '18 at 4:21
answered Nov 15 '18 at 4:37
Silambarasan PoongutiSilambarasan Poonguti
7,24223732
7,24223732
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
add a comment |
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
why I got a error: error: attribute layout_constraintLeft_toStartOf not found?
– lucky1928
Nov 15 '18 at 16:12
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
@lucky1928, It doesn't exist. Use layout_constraintStart_toStartOf instead layout_constraintLeft_toStartOf attribute
– Silambarasan Poonguti
Nov 16 '18 at 4:22
add a comment |
<Button
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="SEND"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:text="Hello World"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintVertical_bias="0.0">
</TextView>
add a comment |
<Button
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="SEND"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:text="Hello World"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintVertical_bias="0.0">
</TextView>
add a comment |
<Button
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="SEND"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:text="Hello World"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintVertical_bias="0.0">
</TextView>
<Button
android:id="@+id/toolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:text="SEND"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.05"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginStart="8dp"
android:text="Hello World"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintVertical_bias="0.0">
</TextView>
answered Nov 15 '18 at 4:10
Harshil kakadiyaHarshil kakadiya
627
627
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311485%2fandroid-constrait-layout-overlap-with-title-bar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Where is that ActionBar added? It doesn't look like the default one.
– TheWanderer
Nov 15 '18 at 2:19
use app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"
– Harin Kaklotar
Nov 15 '18 at 2:54
is its layout of the fragment? so can you show me the root layout that contains this fragment?
– GianhTran
Nov 15 '18 at 3:59
1
From where you added
ActionBar
? in manifest or in code?– scienticious
Nov 15 '18 at 4:52
ActionBar is default, I only add one line code to remove the title:getSupportActionBar().setDisplayShowTitleEnabled(false);
– lucky1928
Nov 15 '18 at 16:08