Using Android Studio, why is TextView display contained into LinearLayout widget truncated? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!What's the difference between fill_parent and wrap_content?Change background of LinearLayout in AndroidWhy is the Android emulator so slow? How can we speed up the Android emulator?Making TextView scrollable on AndroidHow do I display an alert dialog on Android?How to display HTML in TextView?How do I put a border around an Android textview?How do I rotate the Android emulator display?How do I play an audio file in Android?How to change fontFamily of TextView in AndroidHow do I add a library project to Android Studio?Android Studio: Add jar as library?
How to open locks without disable device?
What is /etc/mtab in Linux?
What's the difference between using dependency injection with a container and using a service locator?
How to not starve gigantic beasts
Bayes factor vs P value
How would this chord from "Rocket Man" be analyzed?
Can I criticise the more senior developers around me for not writing clean code?
Putting Ant-Man on house arrest
Can we hide a text first in a picture and then hide that image again in one more image?
What does a straight horizontal line above a few notes, after a changed tempo mean?
Double-nominative constructions and “von”
Retract an already submitted recommendation letter (written for an undergrad student)
Why do distances seem to matter in the Foundation world?
Tikz positioning above circle exact alignment
Check if a string is entirely made of the same substring
All ASCII characters with a given bit count
Why does Arg'[1. + I] return -0.5?
How would I use different systems of magic when they are capable of the same effects?
Does Feeblemind produce an ongoing magical effect that can be dispelled?
What was Apollo 13's "Little Jolt" after MECO?
What is purpose of DB Browser(dbbrowser.aspx) under admin tool?
What is this word supposed to be?
What’s with the clanks at the end of the credits in Avengers: Endgame?
Drawing a german abacus as in the books of Adam Ries
Using Android Studio, why is TextView display contained into LinearLayout widget truncated?
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!What's the difference between fill_parent and wrap_content?Change background of LinearLayout in AndroidWhy is the Android emulator so slow? How can we speed up the Android emulator?Making TextView scrollable on AndroidHow do I display an alert dialog on Android?How to display HTML in TextView?How do I put a border around an Android textview?How do I rotate the Android emulator display?How do I play an audio file in Android?How to change fontFamily of TextView in AndroidHow do I add a library project to Android Studio?Android Studio: Add jar as library?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I want to extract following part of 'display' as an image to a PNG file.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/Layout">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/Image_view"
/>
<TextView
android:id="@+id/text_view1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</FrameLayout>
</LinearLayout>
To do that, I use following code
list.add("Raghul s");
list.add("Name 2");
list.add("Name 3");
for(int i=0;i<list.size();i++)
LinearLayout view = (LinearLayout) findViewById(R.id.Layout);
txt = (TextView) findViewById(R.id.Text_View1);
txt.setText(list.get(i));
view.setDrawingCacheEnabled(true);
view.buildDrawingCache(true);
Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);
bs = new ByteArrayOutputStream();
bs.compress(Bitmap.CompressFormat.PNG, 40, bitmap);
try
file = new File("Image.png");
file.createNewFile();
ws = new FileOutputStream(file);
ws.write(bs.toByteArray());
ws.close();
catch (Exception e)
e.printStackTrace();
When I execute this code, I obtain an PGN image where Raghul s word is partially truncated as in the following image
For the Name 2 and Name 3:
What is happening ?
Why "Raghul s" and "name 2" are truncated ?
How to solve this issue ?
java android android-bitmap
|
show 7 more comments
I want to extract following part of 'display' as an image to a PNG file.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/Layout">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/Image_view"
/>
<TextView
android:id="@+id/text_view1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</FrameLayout>
</LinearLayout>
To do that, I use following code
list.add("Raghul s");
list.add("Name 2");
list.add("Name 3");
for(int i=0;i<list.size();i++)
LinearLayout view = (LinearLayout) findViewById(R.id.Layout);
txt = (TextView) findViewById(R.id.Text_View1);
txt.setText(list.get(i));
view.setDrawingCacheEnabled(true);
view.buildDrawingCache(true);
Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);
bs = new ByteArrayOutputStream();
bs.compress(Bitmap.CompressFormat.PNG, 40, bitmap);
try
file = new File("Image.png");
file.createNewFile();
ws = new FileOutputStream(file);
ws.write(bs.toByteArray());
ws.close();
catch (Exception e)
e.printStackTrace();
When I execute this code, I obtain an PGN image where Raghul s word is partially truncated as in the following image
For the Name 2 and Name 3:
What is happening ?
Why "Raghul s" and "name 2" are truncated ?
How to solve this issue ?
java android android-bitmap
In Android Studio. Please give any code to do save the Image correctly with all the text.
– Raghul S
Mar 9 at 6:47
Hello Ragul, welcome to stack overflow. I'm "supervisor" and I must accept your question and I don't understand anything in your question ! Can you please give some lines of your code limited to your problem so that other users can understand your problem and help you. If reading file part is not important, remove it for your explanation. What is 'whole layout' ? Can you add some blank lines in your question so that is it more readable ?
– schlebe
Mar 9 at 7:03
i am trying to save layout as image that's why i mention it as whole layout
– Raghul S
Mar 9 at 7:48
I don't understand your problem beause it is not well explained ! Please make an efford and make what I have explained in my first comment. Are you sure that you want have some help ? Follow my advise ! Give some lines of code to show that you have already worked on this problem. The others are not there to make work at your place. This site is really great and fun.If you put some code, I can perhaps understand your problem and help you to write a good question, help you to know how to use all StackOverflow formatting possibilities.
– schlebe
Mar 9 at 7:57
1
above is my code
– Raghul S
Mar 9 at 8:06
|
show 7 more comments
I want to extract following part of 'display' as an image to a PNG file.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/Layout">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/Image_view"
/>
<TextView
android:id="@+id/text_view1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</FrameLayout>
</LinearLayout>
To do that, I use following code
list.add("Raghul s");
list.add("Name 2");
list.add("Name 3");
for(int i=0;i<list.size();i++)
LinearLayout view = (LinearLayout) findViewById(R.id.Layout);
txt = (TextView) findViewById(R.id.Text_View1);
txt.setText(list.get(i));
view.setDrawingCacheEnabled(true);
view.buildDrawingCache(true);
Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);
bs = new ByteArrayOutputStream();
bs.compress(Bitmap.CompressFormat.PNG, 40, bitmap);
try
file = new File("Image.png");
file.createNewFile();
ws = new FileOutputStream(file);
ws.write(bs.toByteArray());
ws.close();
catch (Exception e)
e.printStackTrace();
When I execute this code, I obtain an PGN image where Raghul s word is partially truncated as in the following image
For the Name 2 and Name 3:
What is happening ?
Why "Raghul s" and "name 2" are truncated ?
How to solve this issue ?
java android android-bitmap
I want to extract following part of 'display' as an image to a PNG file.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/Layout">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/Image_view"
/>
<TextView
android:id="@+id/text_view1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</FrameLayout>
</LinearLayout>
To do that, I use following code
list.add("Raghul s");
list.add("Name 2");
list.add("Name 3");
for(int i=0;i<list.size();i++)
LinearLayout view = (LinearLayout) findViewById(R.id.Layout);
txt = (TextView) findViewById(R.id.Text_View1);
txt.setText(list.get(i));
view.setDrawingCacheEnabled(true);
view.buildDrawingCache(true);
Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());
view.setDrawingCacheEnabled(false);
bs = new ByteArrayOutputStream();
bs.compress(Bitmap.CompressFormat.PNG, 40, bitmap);
try
file = new File("Image.png");
file.createNewFile();
ws = new FileOutputStream(file);
ws.write(bs.toByteArray());
ws.close();
catch (Exception e)
e.printStackTrace();
When I execute this code, I obtain an PGN image where Raghul s word is partially truncated as in the following image
For the Name 2 and Name 3:
What is happening ?
Why "Raghul s" and "name 2" are truncated ?
How to solve this issue ?
java android android-bitmap
java android android-bitmap
edited Mar 13 at 17:54
Raghul S
asked Mar 9 at 6:45
Raghul SRaghul S
32
32
In Android Studio. Please give any code to do save the Image correctly with all the text.
– Raghul S
Mar 9 at 6:47
Hello Ragul, welcome to stack overflow. I'm "supervisor" and I must accept your question and I don't understand anything in your question ! Can you please give some lines of your code limited to your problem so that other users can understand your problem and help you. If reading file part is not important, remove it for your explanation. What is 'whole layout' ? Can you add some blank lines in your question so that is it more readable ?
– schlebe
Mar 9 at 7:03
i am trying to save layout as image that's why i mention it as whole layout
– Raghul S
Mar 9 at 7:48
I don't understand your problem beause it is not well explained ! Please make an efford and make what I have explained in my first comment. Are you sure that you want have some help ? Follow my advise ! Give some lines of code to show that you have already worked on this problem. The others are not there to make work at your place. This site is really great and fun.If you put some code, I can perhaps understand your problem and help you to write a good question, help you to know how to use all StackOverflow formatting possibilities.
– schlebe
Mar 9 at 7:57
1
above is my code
– Raghul S
Mar 9 at 8:06
|
show 7 more comments
In Android Studio. Please give any code to do save the Image correctly with all the text.
– Raghul S
Mar 9 at 6:47
Hello Ragul, welcome to stack overflow. I'm "supervisor" and I must accept your question and I don't understand anything in your question ! Can you please give some lines of your code limited to your problem so that other users can understand your problem and help you. If reading file part is not important, remove it for your explanation. What is 'whole layout' ? Can you add some blank lines in your question so that is it more readable ?
– schlebe
Mar 9 at 7:03
i am trying to save layout as image that's why i mention it as whole layout
– Raghul S
Mar 9 at 7:48
I don't understand your problem beause it is not well explained ! Please make an efford and make what I have explained in my first comment. Are you sure that you want have some help ? Follow my advise ! Give some lines of code to show that you have already worked on this problem. The others are not there to make work at your place. This site is really great and fun.If you put some code, I can perhaps understand your problem and help you to write a good question, help you to know how to use all StackOverflow formatting possibilities.
– schlebe
Mar 9 at 7:57
1
above is my code
– Raghul S
Mar 9 at 8:06
In Android Studio. Please give any code to do save the Image correctly with all the text.
– Raghul S
Mar 9 at 6:47
In Android Studio. Please give any code to do save the Image correctly with all the text.
– Raghul S
Mar 9 at 6:47
Hello Ragul, welcome to stack overflow. I'm "supervisor" and I must accept your question and I don't understand anything in your question ! Can you please give some lines of your code limited to your problem so that other users can understand your problem and help you. If reading file part is not important, remove it for your explanation. What is 'whole layout' ? Can you add some blank lines in your question so that is it more readable ?
– schlebe
Mar 9 at 7:03
Hello Ragul, welcome to stack overflow. I'm "supervisor" and I must accept your question and I don't understand anything in your question ! Can you please give some lines of your code limited to your problem so that other users can understand your problem and help you. If reading file part is not important, remove it for your explanation. What is 'whole layout' ? Can you add some blank lines in your question so that is it more readable ?
– schlebe
Mar 9 at 7:03
i am trying to save layout as image that's why i mention it as whole layout
– Raghul S
Mar 9 at 7:48
i am trying to save layout as image that's why i mention it as whole layout
– Raghul S
Mar 9 at 7:48
I don't understand your problem beause it is not well explained ! Please make an efford and make what I have explained in my first comment. Are you sure that you want have some help ? Follow my advise ! Give some lines of code to show that you have already worked on this problem. The others are not there to make work at your place. This site is really great and fun.If you put some code, I can perhaps understand your problem and help you to write a good question, help you to know how to use all StackOverflow formatting possibilities.
– schlebe
Mar 9 at 7:57
I don't understand your problem beause it is not well explained ! Please make an efford and make what I have explained in my first comment. Are you sure that you want have some help ? Follow my advise ! Give some lines of code to show that you have already worked on this problem. The others are not there to make work at your place. This site is really great and fun.If you put some code, I can perhaps understand your problem and help you to write a good question, help you to know how to use all StackOverflow formatting possibilities.
– schlebe
Mar 9 at 7:57
1
1
above is my code
– Raghul S
Mar 9 at 8:06
above is my code
– Raghul S
Mar 9 at 8:06
|
show 7 more comments
1 Answer
1
active
oldest
votes
I think that your problem is linked to the fact that your TextView width is too short to display completely your name.
There are 3 possibilities to check if why I see is correct or not.
A. you remove ImageView
widget and you replace wrap_content
in TextView by match_parent
B. you add following property in TextView widget
android:text="xxxxxxxxxx"
C. you refresh your LinearLayout using view.invalidate()
after having assign your TextView using following code:
txt.setText(list.get(i));
view.invalidate();
I think (without testing), that last command will solve your problem.
I have added this possiblities
D. you can colorize ALL widgets present in LinearLayout and see what happens. Doing that, we can see the width of all widgets and perhaps we can have a better understanding of your problem.
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
|
show 5 more comments
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%2f55074776%2fusing-android-studio-why-is-textview-display-contained-into-linearlayout-widget%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
I think that your problem is linked to the fact that your TextView width is too short to display completely your name.
There are 3 possibilities to check if why I see is correct or not.
A. you remove ImageView
widget and you replace wrap_content
in TextView by match_parent
B. you add following property in TextView widget
android:text="xxxxxxxxxx"
C. you refresh your LinearLayout using view.invalidate()
after having assign your TextView using following code:
txt.setText(list.get(i));
view.invalidate();
I think (without testing), that last command will solve your problem.
I have added this possiblities
D. you can colorize ALL widgets present in LinearLayout and see what happens. Doing that, we can see the width of all widgets and perhaps we can have a better understanding of your problem.
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
|
show 5 more comments
I think that your problem is linked to the fact that your TextView width is too short to display completely your name.
There are 3 possibilities to check if why I see is correct or not.
A. you remove ImageView
widget and you replace wrap_content
in TextView by match_parent
B. you add following property in TextView widget
android:text="xxxxxxxxxx"
C. you refresh your LinearLayout using view.invalidate()
after having assign your TextView using following code:
txt.setText(list.get(i));
view.invalidate();
I think (without testing), that last command will solve your problem.
I have added this possiblities
D. you can colorize ALL widgets present in LinearLayout and see what happens. Doing that, we can see the width of all widgets and perhaps we can have a better understanding of your problem.
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
|
show 5 more comments
I think that your problem is linked to the fact that your TextView width is too short to display completely your name.
There are 3 possibilities to check if why I see is correct or not.
A. you remove ImageView
widget and you replace wrap_content
in TextView by match_parent
B. you add following property in TextView widget
android:text="xxxxxxxxxx"
C. you refresh your LinearLayout using view.invalidate()
after having assign your TextView using following code:
txt.setText(list.get(i));
view.invalidate();
I think (without testing), that last command will solve your problem.
I have added this possiblities
D. you can colorize ALL widgets present in LinearLayout and see what happens. Doing that, we can see the width of all widgets and perhaps we can have a better understanding of your problem.
I think that your problem is linked to the fact that your TextView width is too short to display completely your name.
There are 3 possibilities to check if why I see is correct or not.
A. you remove ImageView
widget and you replace wrap_content
in TextView by match_parent
B. you add following property in TextView widget
android:text="xxxxxxxxxx"
C. you refresh your LinearLayout using view.invalidate()
after having assign your TextView using following code:
txt.setText(list.get(i));
view.invalidate();
I think (without testing), that last command will solve your problem.
I have added this possiblities
D. you can colorize ALL widgets present in LinearLayout and see what happens. Doing that, we can see the width of all widgets and perhaps we can have a better understanding of your problem.
edited Mar 13 at 18:08
answered Mar 10 at 18:14
schlebeschlebe
1,0491128
1,0491128
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
|
show 5 more comments
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
Sir, Again the same problem is repeating... Please help me with some other methods.
– Raghul S
Mar 13 at 17:19
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
I'm a C++, Java and VB.Net developper and I try to help you because I have already worked with bitmap in C++ and VB.net and your problem seems to be linked to what is really displayed. I have added another possiblities to try to understand what happen, can you try it and send me the result. I add it now.
– schlebe
Mar 13 at 18:04
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Yes sir.... help me with your idea's sir
– Raghul S
Mar 15 at 11:25
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
Have you try to colorize all your widgets ?
– schlebe
Mar 15 at 11:33
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
yes...sir i tried it
– Raghul S
Mar 16 at 11:26
|
show 5 more comments
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%2f55074776%2fusing-android-studio-why-is-textview-display-contained-into-linearlayout-widget%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
In Android Studio. Please give any code to do save the Image correctly with all the text.
– Raghul S
Mar 9 at 6:47
Hello Ragul, welcome to stack overflow. I'm "supervisor" and I must accept your question and I don't understand anything in your question ! Can you please give some lines of your code limited to your problem so that other users can understand your problem and help you. If reading file part is not important, remove it for your explanation. What is 'whole layout' ? Can you add some blank lines in your question so that is it more readable ?
– schlebe
Mar 9 at 7:03
i am trying to save layout as image that's why i mention it as whole layout
– Raghul S
Mar 9 at 7:48
I don't understand your problem beause it is not well explained ! Please make an efford and make what I have explained in my first comment. Are you sure that you want have some help ? Follow my advise ! Give some lines of code to show that you have already worked on this problem. The others are not there to make work at your place. This site is really great and fun.If you put some code, I can perhaps understand your problem and help you to write a good question, help you to know how to use all StackOverflow formatting possibilities.
– schlebe
Mar 9 at 7:57
1
above is my code
– Raghul S
Mar 9 at 8:06