Android wrapping text with FlowTextView is overwriting TextView Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Is there a way to run Python on Android?How do save an Android Activity state using save instance state?How do I center text horizontally and vertically in a TextView?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?Making TextView scrollable on Android“Debug certificate expired” error in Eclipse Android pluginsIs there a unique Android device ID?What is 'Context' on Android?Proper use cases for Android UserManager.isUserAGoat()?
Crossing US/Canada Border for less than 24 hours
Why can't I install Tomboy in Ubuntu Mate 19.04?
How would a mousetrap for use in space work?
How were pictures turned from film to a big picture in a picture frame before digital scanning?
What does this say in Elvish?
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
What is an "asse" in Elizabethan English?
How to run automated tests after each commit?
If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
Dyck paths with extra diagonals from valleys (Laser construction)
How many time has Arya actually used Needle?
Random body shuffle every night—can we still function?
Intuitive explanation of the rank-nullity theorem
Is CEO the "profession" with the most psychopaths?
How does a spellshard spellbook work?
Significance of Cersei's obsession with elephants?
How to write capital alpha?
Did any compiler fully use 80-bit floating point?
Does the Mueller report show a conspiracy between Russia and the Trump Campaign?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
What makes a man succeed?
An adverb for when you're not exaggerating
How to report t statistic from R
Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?
Android wrapping text with FlowTextView is overwriting TextView
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Is there a way to run Python on Android?How do save an Android Activity state using save instance state?How do I center text horizontally and vertically in a TextView?Close/hide the Android Soft KeyboardWhy is the Android emulator so slow? How can we speed up the Android emulator?Making TextView scrollable on Android“Debug certificate expired” error in Eclipse Android pluginsIs there a unique Android device ID?What is 'Context' on Android?Proper use cases for Android UserManager.isUserAGoat()?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I searched StackOverflow for a solution to wrap text around an image and found links to FlowTextView with I have implemented but I am having an issue with it overwriting normal TextViews and the positioning of those TextViews. I did have them constrained to the end of the image but as that has now moved out of the layout I can no longer do that.
I want to get the FlowTextView to start where the 4th long TextView shows across the image and the TextViews to be to the right of the ImageView Can any help?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:cardCornerRadius="8dp" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp">
<uk.co.deanwild.flowtextview.FlowTextView
android:id="@+id/ftv"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView_room"
android:layout_width="200dp"
android:layout_height="160dp"
android:contentDescription="@string/room_image"
android:padding="4dp" />
</uk.co.deanwild.flowtextview.FlowTextView>
<TextView
android:id="@+id/textview_room_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginEnd="29dp"
android:text="@string/living_room"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textview_length"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_room_name"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp"
android:text="@string/length_12_x_6"
android:textSize="14sp" />
<TextView
android:id="@+id/textview_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_length"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="24dp"
android:layout_marginTop="5dp"
android:text="@string/width_10_x_8" />
<TextView
android:id="@+id/textview_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textview_width"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp" android:text="@string/with_a_large_window_looking_onto_the_vast_garden" />
</RelativeLayout>
</android.support.v7.widget.CardView>
add a comment |
I searched StackOverflow for a solution to wrap text around an image and found links to FlowTextView with I have implemented but I am having an issue with it overwriting normal TextViews and the positioning of those TextViews. I did have them constrained to the end of the image but as that has now moved out of the layout I can no longer do that.
I want to get the FlowTextView to start where the 4th long TextView shows across the image and the TextViews to be to the right of the ImageView Can any help?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:cardCornerRadius="8dp" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp">
<uk.co.deanwild.flowtextview.FlowTextView
android:id="@+id/ftv"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView_room"
android:layout_width="200dp"
android:layout_height="160dp"
android:contentDescription="@string/room_image"
android:padding="4dp" />
</uk.co.deanwild.flowtextview.FlowTextView>
<TextView
android:id="@+id/textview_room_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginEnd="29dp"
android:text="@string/living_room"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textview_length"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_room_name"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp"
android:text="@string/length_12_x_6"
android:textSize="14sp" />
<TextView
android:id="@+id/textview_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_length"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="24dp"
android:layout_marginTop="5dp"
android:text="@string/width_10_x_8" />
<TextView
android:id="@+id/textview_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textview_width"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp" android:text="@string/with_a_large_window_looking_onto_the_vast_garden" />
</RelativeLayout>
</android.support.v7.widget.CardView>
add a comment |
I searched StackOverflow for a solution to wrap text around an image and found links to FlowTextView with I have implemented but I am having an issue with it overwriting normal TextViews and the positioning of those TextViews. I did have them constrained to the end of the image but as that has now moved out of the layout I can no longer do that.
I want to get the FlowTextView to start where the 4th long TextView shows across the image and the TextViews to be to the right of the ImageView Can any help?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:cardCornerRadius="8dp" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp">
<uk.co.deanwild.flowtextview.FlowTextView
android:id="@+id/ftv"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView_room"
android:layout_width="200dp"
android:layout_height="160dp"
android:contentDescription="@string/room_image"
android:padding="4dp" />
</uk.co.deanwild.flowtextview.FlowTextView>
<TextView
android:id="@+id/textview_room_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginEnd="29dp"
android:text="@string/living_room"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textview_length"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_room_name"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp"
android:text="@string/length_12_x_6"
android:textSize="14sp" />
<TextView
android:id="@+id/textview_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_length"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="24dp"
android:layout_marginTop="5dp"
android:text="@string/width_10_x_8" />
<TextView
android:id="@+id/textview_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textview_width"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp" android:text="@string/with_a_large_window_looking_onto_the_vast_garden" />
</RelativeLayout>
</android.support.v7.widget.CardView>
I searched StackOverflow for a solution to wrap text around an image and found links to FlowTextView with I have implemented but I am having an issue with it overwriting normal TextViews and the positioning of those TextViews. I did have them constrained to the end of the image but as that has now moved out of the layout I can no longer do that.
I want to get the FlowTextView to start where the 4th long TextView shows across the image and the TextViews to be to the right of the ImageView Can any help?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:cardCornerRadius="8dp" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp">
<uk.co.deanwild.flowtextview.FlowTextView
android:id="@+id/ftv"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView_room"
android:layout_width="200dp"
android:layout_height="160dp"
android:contentDescription="@string/room_image"
android:padding="4dp" />
</uk.co.deanwild.flowtextview.FlowTextView>
<TextView
android:id="@+id/textview_room_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginEnd="29dp"
android:text="@string/living_room"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textview_length"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_room_name"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp"
android:text="@string/length_12_x_6"
android:textSize="14sp" />
<TextView
android:id="@+id/textview_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview_length"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="24dp"
android:layout_marginTop="5dp"
android:text="@string/width_10_x_8" />
<TextView
android:id="@+id/textview_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textview_width"
android:layout_alignStart="@+id/ftv"
android:layout_marginStart="25dp"
android:layout_marginTop="10dp" android:text="@string/with_a_large_window_looking_onto_the_vast_garden" />
</RelativeLayout>
</android.support.v7.widget.CardView>
asked Mar 8 at 21:46
pedaarspedaars
418
418
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You need to use android:layout_toEndOf="@+id/ftv". layout_alignEnd puts the end of both the views together instead of start to end.
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%2f55071445%2fandroid-wrapping-text-with-flowtextview-is-overwriting-textview%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to use android:layout_toEndOf="@+id/ftv". layout_alignEnd puts the end of both the views together instead of start to end.
add a comment |
You need to use android:layout_toEndOf="@+id/ftv". layout_alignEnd puts the end of both the views together instead of start to end.
add a comment |
You need to use android:layout_toEndOf="@+id/ftv". layout_alignEnd puts the end of both the views together instead of start to end.
You need to use android:layout_toEndOf="@+id/ftv". layout_alignEnd puts the end of both the views together instead of start to end.
answered Mar 8 at 21:55
Ge3ngGe3ng
9521633
9521633
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%2f55071445%2fandroid-wrapping-text-with-flowtextview-is-overwriting-textview%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