mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix padding on text-view & text-field (#3758)
* fix padding on text-view & text-field text-base is now snapshotable view.android is now snapshotable * createNativeView returns the nativeView for android Fix image tests Implement test for image loaded from res:// EffectivePaddings updated when nativeView have some from its native theme
This commit is contained in:
@@ -12,10 +12,11 @@ export class HtmlView extends HtmlViewBase {
|
||||
}
|
||||
|
||||
public _createNativeView() {
|
||||
this._android = new android.widget.TextView(this._context);
|
||||
const textView = this._android = new android.widget.TextView(this._context);
|
||||
// This makes the html <a href...> work
|
||||
this._android.setLinksClickable(true);
|
||||
this._android.setMovementMethod(android.text.method.LinkMovementMethod.getInstance());
|
||||
textView.setLinksClickable(true);
|
||||
textView.setMovementMethod(android.text.method.LinkMovementMethod.getInstance());
|
||||
return textView;
|
||||
}
|
||||
|
||||
get [htmlProperty.native](): string {
|
||||
|
||||
Reference in New Issue
Block a user