View not visible in TabLayout
up vote
-1
down vote
favorite
I have a TabLayout
with two different tabs.
The initial Tab shows a CardView
and want to place the @id/logo
(the last item in the xml file) just below this Card. Namely if the user search for a term, I made the CardView invisible programmatically, and a RecyclerView will populate the screen below the RecyclerView and after the Recycler View
will appear the logo, if instead the user presses the second tab, the RecyclerView will populate all the screen
<?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:background="@color/cardViewBackground">
<android.support.design.widget.TabLayout
android:id="@+id/address_filter_tl"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="start"
android:background="@color/colorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabGravity="fill"
app:tabIndicatorColor="@color/primaryWhite"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/primaryWhite"
app:tabTextColor="@color/inactiveTabText"
android:layout_marginBottom="?attr/actionBarSize">
<android.support.design.widget.TabItem
android:id="@+id/search_results_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_result" />
<android.support.design.widget.TabItem
android:id="@+id/address_book_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/address_book" />
</android.support.design.widget.TabLayout>
<android.support.v7.widget.CardView
android:id="@+id/my_location_cv"
android:layout_width="0dp"
android:layout_height="72dp"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:clickable="true"
android:focusable="true"
app:cardElevation="2dp"
app:layout_constraintBottom_toTopOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/address_filter_tl">
<android.support.constraint.ConstraintLayout
android:id="@+id/my_location_cl"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="16dp"
app:layout_constraintBottom_toBottomOf="@id/my_location_cl"
app:layout_constraintStart_toStartOf="@id/my_location_cl"
app:layout_constraintTop_toTopOf="@id/my_location_cl"
app:srcCompat="@drawable/ic_my_location"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:text="@string/my_location"
android:textColor="@color/primaryBlack"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/guideline"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/my_location_address_tv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:layout_marginEnd="16dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/primaryGreyText"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/guideline"
tools:text="7331 GA Apeldoorn" />
<android.support.constraint.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_begin="36dp" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
<include
android:id="@+id/search_results_cv"
layout="@layout/addresses_card_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/my_location_cv"
app:layout_constraintBottom_toBottomOf="parent" />
<android.support.v7.widget.AppCompatImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
app:layout_goneMarginBottom="8dp"
android:src="@drawable/powered_by_google"
app:layout_constraintTop_toBottomOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
this is the include
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:clipToPadding="false"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/addresses_rv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/address_item" />
</android.support.constraint.ConstraintLayout>
android android-layout android-recyclerview android-tablayout android-constraintlayout
add a comment |
up vote
-1
down vote
favorite
I have a TabLayout
with two different tabs.
The initial Tab shows a CardView
and want to place the @id/logo
(the last item in the xml file) just below this Card. Namely if the user search for a term, I made the CardView invisible programmatically, and a RecyclerView will populate the screen below the RecyclerView and after the Recycler View
will appear the logo, if instead the user presses the second tab, the RecyclerView will populate all the screen
<?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:background="@color/cardViewBackground">
<android.support.design.widget.TabLayout
android:id="@+id/address_filter_tl"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="start"
android:background="@color/colorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabGravity="fill"
app:tabIndicatorColor="@color/primaryWhite"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/primaryWhite"
app:tabTextColor="@color/inactiveTabText"
android:layout_marginBottom="?attr/actionBarSize">
<android.support.design.widget.TabItem
android:id="@+id/search_results_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_result" />
<android.support.design.widget.TabItem
android:id="@+id/address_book_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/address_book" />
</android.support.design.widget.TabLayout>
<android.support.v7.widget.CardView
android:id="@+id/my_location_cv"
android:layout_width="0dp"
android:layout_height="72dp"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:clickable="true"
android:focusable="true"
app:cardElevation="2dp"
app:layout_constraintBottom_toTopOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/address_filter_tl">
<android.support.constraint.ConstraintLayout
android:id="@+id/my_location_cl"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="16dp"
app:layout_constraintBottom_toBottomOf="@id/my_location_cl"
app:layout_constraintStart_toStartOf="@id/my_location_cl"
app:layout_constraintTop_toTopOf="@id/my_location_cl"
app:srcCompat="@drawable/ic_my_location"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:text="@string/my_location"
android:textColor="@color/primaryBlack"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/guideline"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/my_location_address_tv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:layout_marginEnd="16dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/primaryGreyText"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/guideline"
tools:text="7331 GA Apeldoorn" />
<android.support.constraint.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_begin="36dp" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
<include
android:id="@+id/search_results_cv"
layout="@layout/addresses_card_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/my_location_cv"
app:layout_constraintBottom_toBottomOf="parent" />
<android.support.v7.widget.AppCompatImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
app:layout_goneMarginBottom="8dp"
android:src="@drawable/powered_by_google"
app:layout_constraintTop_toBottomOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
this is the include
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:clipToPadding="false"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/addresses_rv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/address_item" />
</android.support.constraint.ConstraintLayout>
android android-layout android-recyclerview android-tablayout android-constraintlayout
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have a TabLayout
with two different tabs.
The initial Tab shows a CardView
and want to place the @id/logo
(the last item in the xml file) just below this Card. Namely if the user search for a term, I made the CardView invisible programmatically, and a RecyclerView will populate the screen below the RecyclerView and after the Recycler View
will appear the logo, if instead the user presses the second tab, the RecyclerView will populate all the screen
<?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:background="@color/cardViewBackground">
<android.support.design.widget.TabLayout
android:id="@+id/address_filter_tl"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="start"
android:background="@color/colorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabGravity="fill"
app:tabIndicatorColor="@color/primaryWhite"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/primaryWhite"
app:tabTextColor="@color/inactiveTabText"
android:layout_marginBottom="?attr/actionBarSize">
<android.support.design.widget.TabItem
android:id="@+id/search_results_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_result" />
<android.support.design.widget.TabItem
android:id="@+id/address_book_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/address_book" />
</android.support.design.widget.TabLayout>
<android.support.v7.widget.CardView
android:id="@+id/my_location_cv"
android:layout_width="0dp"
android:layout_height="72dp"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:clickable="true"
android:focusable="true"
app:cardElevation="2dp"
app:layout_constraintBottom_toTopOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/address_filter_tl">
<android.support.constraint.ConstraintLayout
android:id="@+id/my_location_cl"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="16dp"
app:layout_constraintBottom_toBottomOf="@id/my_location_cl"
app:layout_constraintStart_toStartOf="@id/my_location_cl"
app:layout_constraintTop_toTopOf="@id/my_location_cl"
app:srcCompat="@drawable/ic_my_location"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:text="@string/my_location"
android:textColor="@color/primaryBlack"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/guideline"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/my_location_address_tv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:layout_marginEnd="16dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/primaryGreyText"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/guideline"
tools:text="7331 GA Apeldoorn" />
<android.support.constraint.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_begin="36dp" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
<include
android:id="@+id/search_results_cv"
layout="@layout/addresses_card_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/my_location_cv"
app:layout_constraintBottom_toBottomOf="parent" />
<android.support.v7.widget.AppCompatImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
app:layout_goneMarginBottom="8dp"
android:src="@drawable/powered_by_google"
app:layout_constraintTop_toBottomOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
this is the include
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:clipToPadding="false"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/addresses_rv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/address_item" />
</android.support.constraint.ConstraintLayout>
android android-layout android-recyclerview android-tablayout android-constraintlayout
I have a TabLayout
with two different tabs.
The initial Tab shows a CardView
and want to place the @id/logo
(the last item in the xml file) just below this Card. Namely if the user search for a term, I made the CardView invisible programmatically, and a RecyclerView will populate the screen below the RecyclerView and after the Recycler View
will appear the logo, if instead the user presses the second tab, the RecyclerView will populate all the screen
<?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:background="@color/cardViewBackground">
<android.support.design.widget.TabLayout
android:id="@+id/address_filter_tl"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="start"
android:background="@color/colorPrimary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabGravity="fill"
app:tabIndicatorColor="@color/primaryWhite"
app:tabMode="fixed"
app:tabSelectedTextColor="@color/primaryWhite"
app:tabTextColor="@color/inactiveTabText"
android:layout_marginBottom="?attr/actionBarSize">
<android.support.design.widget.TabItem
android:id="@+id/search_results_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_result" />
<android.support.design.widget.TabItem
android:id="@+id/address_book_tab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/address_book" />
</android.support.design.widget.TabLayout>
<android.support.v7.widget.CardView
android:id="@+id/my_location_cv"
android:layout_width="0dp"
android:layout_height="72dp"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:clickable="true"
android:focusable="true"
app:cardElevation="2dp"
app:layout_constraintBottom_toTopOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/address_filter_tl">
<android.support.constraint.ConstraintLayout
android:id="@+id/my_location_cl"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="16dp"
app:layout_constraintBottom_toBottomOf="@id/my_location_cl"
app:layout_constraintStart_toStartOf="@id/my_location_cl"
app:layout_constraintTop_toTopOf="@id/my_location_cl"
app:srcCompat="@drawable/ic_my_location"
tools:ignore="ContentDescription" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:text="@string/my_location"
android:textColor="@color/primaryBlack"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/guideline"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/my_location_address_tv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="72dp"
android:layout_marginEnd="16dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/primaryGreyText"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/guideline"
tools:text="7331 GA Apeldoorn" />
<android.support.constraint.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_begin="36dp" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
<include
android:id="@+id/search_results_cv"
layout="@layout/addresses_card_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/my_location_cv"
app:layout_constraintBottom_toBottomOf="parent" />
<android.support.v7.widget.AppCompatImageView
android:id="@+id/logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
app:layout_goneMarginBottom="8dp"
android:src="@drawable/powered_by_google"
app:layout_constraintTop_toBottomOf="@id/search_results_cv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
this is the include
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:clipToPadding="false"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/addresses_rv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:listitem="@layout/address_item" />
</android.support.constraint.ConstraintLayout>
android android-layout android-recyclerview android-tablayout android-constraintlayout
android android-layout android-recyclerview android-tablayout android-constraintlayout
edited Nov 20 at 13:13
asked Nov 20 at 12:26
Drocchio
6719
6719
add a comment |
add a comment |
active
oldest
votes
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',
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%2f53392970%2fview-not-visible-in-tablayout%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f53392970%2fview-not-visible-in-tablayout%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