You can adjust the angle with the “Rotate” bar and the size of the pattern with the “Zoom” bar!Īfter adjusting, click “OK” at the bottom right.ĭeselect and you’re done! The pattern is now applied to the selected area.Īfter pasting the material, a blue bar will appear at the bottom. This time I want to use this blue diamond pattern.Ĭlick on “Paste to Canvas” in the lower left corner. You will see a list of publicly available materials. →Click on “Add Material from Cloud” at the bottom of the Material Panel.
It’s not easy to find such a wide range of materials in free software, and if you want to make a comic for a doujinshi or web publication, you can make it with just the materials in MediBang Paint!
There are many useful materials that can be used by themselves. This is a collection of tone materials that can be used mainly for manga. This is a material with the same pattern repeating. There are roughly three types of materials available in MediBang Paint.
Please, take a look at Vertical (rotated) label in Android to see the full source code. Log.e(LOG_TAG, Log.getStackTraceString(e)) SetMeasuredDimension(widthMeasureSpec, heightMeasureSpec) SetMeasuredDimension(this._measuredWidth, this._measuredHeight) This._ascent = this._textBounds.height() / 2 + this._measuredWidth / 2 This._measuredHeight = this._tempView.getMeasuredWidth() This._measuredWidth = this._tempView.getMeasuredHeight() This._tTextSize(TypedValue.COMPLEX_UNIT_PX, this._textSize) This._tPadding(this._leftPadding, this._topPadding, this._rightPadding, this._bottomPadding) This._tempView = new TextView(getContext()) This._textPaint.getTextBounds(this._text, 0, this._text.length(), this._textBounds) Main point is to override onDraw() and onMeasure() methods based on parameters of your text: void onDraw(Canvas canvas)įloat textHorizontall圜enteredOriginX = this._measuredHeight / 2f įloat textHorizontall圜enteredOriginY = this._ascent Ĭanslate(textHorizontall圜enteredOriginY, textHorizontall圜enteredOriginX) Ĭanvas.drawText(this._text, 0, 0, void onMeasure(int widthMeasureSpec, int heightMeasureSpec) A text will be written from bottom to top. If you don't need animation then you can try a solution provided in a similar question. Example XML for a frame view housing rotated text: Here is an example of right and bottom aligned text rotated through -90 degrees: Then use the layout_gravity settings to move the boundary within the parent FrameLayout within it:
Use the TextView gravity settings to move the Text within it's boundary. The TextView will now float in the FrameLayout. TextView with hard-coded height and width Then place the TextView in a FrameLayout and turn clipping off for the FrameLayout android:clipChildren="false" and clip to padding off for the TextView android:clipToPadding="false": The trick here is to hard-code the layout_width and layout_height of the TextView larger than the text will ever be - e.g.
After a year of this being on my bucket list without any suitable answers on the forums I have finally sorted this!