Obsolete
Status Update
Comments
da...@gmail.com <da...@gmail.com> #2
Thanks for the report. This should work if you do
setMovementMethod(LinkMovementMethod.getInstance()) but you're right that it would be
good for it to work without you having to do that.
setMovementMethod(LinkMovementMethod.getInstance()) but you're right that it would be
good for it to work without you having to do that.
[Deleted User] <[Deleted User]> #3
That worked, thanks!
[Deleted User] <[Deleted User]> #4
It does not work for me!
when touched its changing color, thats it, nothing else happens.
like launching of browser. SOS!
when touched its changing color, thats it, nothing else happens.
like launching of browser. SOS!
kj...@gmail.com <kj...@gmail.com> #5
[Comment deleted]
mi...@gmail.com <mi...@gmail.com> #6
[Comment deleted]
an...@urbanpiper.com <an...@urbanpiper.com> #7
I've got the same problem : color changes and nothing more... :(
I've found the solution : if you use getString for string resources, do not integrate html in your xml. You have to externalize html. For example :
your xml won't contain : <string name="mystring"><a href='#'>link</a></string>
but only : <string name="mystring">link</string>
and then use it as :
textView.setText(Html.fromHtml("<a href='#'>"+getString(R.string.mystring)+"</a>"));
Enjoy :)
I've found the solution : if you use getString for string resources, do not integrate html in your xml. You have to externalize html. For example :
your xml won't contain : <string name="mystring"><a href='#'>link</a></string>
but only : <string name="mystring">link</string>
and then use it as :
textView.setText(Html.fromHtml("<a href='#'>"+getString(R.string.mystring)+"</a>"));
Enjoy :)
jo...@gmail.com <jo...@gmail.com> #8
I am facing problem in formating and setting text view in android if any special character comes(starting Html tags like < and </) during Html formatting
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
al...@gmail.com <al...@gmail.com> #9
I am facing problem in formating and setting text view in android if any special character comes(starting Html tags like < and </) during Html formatting
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
jo...@gmail.com <jo...@gmail.com> #10
If you externalize your string, use the CDATA notation if you want the links to work. For example:
<string
name="signup_fine_print"><![CDATA[Foo bar bar\'s
<a href="http://www.foo.com/about/tos ">Terms of Service</a>]]>
</string>
<string
name="signup_fine_print"><![CDATA[Foo bar bar\'s
<a href="
</string>
en...@google.com <en...@google.com>
kj...@gmail.com <kj...@gmail.com> #11
Can we implement multiple link on TextView any how?
ed...@gmail.com <ed...@gmail.com> #12
[Comment deleted]
ku...@gmail.com <ku...@gmail.com> #13
When we got wrong link from server then application is crashing.
How to Handle this crash please tell me??
How to Handle this crash please tell me??
ku...@gmail.com <ku...@gmail.com> #14
Why was this set to obsolete?
ci...@gmail.com <ci...@gmail.com> #15
If this is obsolete, what is the recommended solution?
in...@gmail.com <in...@gmail.com> #16
da...@gmail.com <da...@gmail.com> #18
Still experiencing this issue on Android 5.1
va...@gmail.com <va...@gmail.com> #19
How is this obsolete?
in...@gmail.com <in...@gmail.com> #20
Still experiencing this issue on Android 5.1
How is this obsolete?
How is this obsolete?
[Deleted User] <[Deleted User]> #21
We are also facing the same problem. Actually we have a tabhost which holds a fragment on each tab, and with in tab we have one more level of nested fragment. When we switch tabs the inner nested fragment can not restored from backstack. Please some one at GOOGLE resolve this issue.
jo...@gmail.com <jo...@gmail.com> #22
Please fix this, it is very annoying
[Deleted User] <[Deleted User]> #23
please fix this.
ro...@gmail.com <ro...@gmail.com> #24
shame still not fixed or a proper workaround :(
jo...@gmail.com <jo...@gmail.com> #25
It will be nice to put at least a one line explanation of why a bug is marked obsolete
pa...@gmail.com <pa...@gmail.com> #26
Still facing the same issue in 5.x.
pn...@gmail.com <pn...@gmail.com> #27
Still see this in Android 6.0.
ng...@visual-engin.com <ng...@visual-engin.com> #28
Still facing the same issue on 6.0.1 using support libraries, why it was marked as obsolete?
je...@gmail.com <je...@gmail.com> #29
From what I can tell, bugs never leave obsolete status. If this is still a problem for some of you, I strongly recommend you create a new bug and link back to this one in the description.
mw...@gmail.com <mw...@gmail.com> #31
fragmentManager
?.beginTransaction()
?.replace(android.R.id.content, parentFragment)
?.addToBackStack(null)
?.setPrimaryNavigationFragment(parentFragment) . //<<<<<<<<<<<<<<<<<<
?.commit()
Now any fragment added on back stack inside parentFragment using childFragmentManager will pop properly when back button is pressed.
?.beginTransaction()
?.replace(android.R.id.content, parentFragment)
?.addToBackStack(null)
?.setPrimaryNavigationFragment(parentFragment) . //<<<<<<<<<<<<<<<<<<
?.commit()
Now any fragment added on back stack inside parentFragment using childFragmentManager will pop properly when back button is pressed.
Description
Expected behavior: Pressing Back button should pop the parent Fragment's back stack.
The code is:
MainActivity.java
package com.example.nestedfragmentsbug;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
public class MainActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
HostFragment fragment = new HostFragment();
FragmentTransaction transaction = getSupportFragmentManager()
.beginTransaction();
transaction.add(R.id.host, fragment, HostFragment.HOST_FRAGMENT_TAG);
transaction.commit();
}
}
HostFragment.java
package com.example.nestedfragmentsbug;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
public class HostFragment extends Fragment implements OnClickListener {
public static final String HOST_FRAGMENT_TAG = "host_fragment";
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.fragment_host_layout, container,
false);
((Button) root.findViewById(R.id.host_btn)).setOnClickListener(this);
return root;
}
@Override
public void onClick(View v) {
if (v.getId() == R.id.host_btn) {
NestedFragment fragment = new NestedFragment();
FragmentTransaction transaction = getChildFragmentManager()
.beginTransaction();
transaction.add(R.id.host_layout, fragment);
transaction.addToBackStack(HOST_FRAGMENT_TAG);
transaction.commit();
}
}
}
NestedFragment.java
package com.example.nestedfragmentsbug;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class NestedFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_nested_layout, container,
false);
}
}