-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: draw clipart option in drawer #388
Conversation
ae626fb
to
ed6f06e
Compare
28096f6
to
b911f0d
Compare
Awesome! Please resolve conflicts. |
@adityastic Please add a "Draw Clipart Icon" at the end of the clipart list. This button should direct to the "Draw Clipart screen. |
@mariobehling On it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reset lgtm 👍
if (drawableInfo.image is VectorDrawable) | ||
ImageUtils.vectorToBitmap(drawableInfo.image) | ||
else | ||
(drawableInfo.image as BitmapDrawable).bitmap, 70)), 0, strToAppend.length, 33) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use smart cast instead: drawableInfo.image is BitmapDrawable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 more unsafe casts like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 more unsafe casts like that.
on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, please review
|
||
<ImageView | ||
android:layout_width="48dp" | ||
android:layout_height="48dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dimensions should define inside dimentsion reqources file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more than one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liveHarshit yes updated all with the same
DrawFragment() | ||
} | ||
|
||
private val viewModel by viewModel<DrawViewModel>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too generic, it can be drawViewModel
95270e9
to
2c0c3aa
Compare
@liveHarshit updated |
@mariobehling here is the update. Screenshot of the update: |
@liveHarshit updated with the rest, please review |
android:layout_alignParentTop="true" | ||
android:layout_centerInParent="true" | ||
android:layout_marginStart="50dp" | ||
android:layout_marginEnd="50dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in dimens.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated, @liveHarshit review
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:orientation="horizontal" | ||
android:padding="10dp"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dimens.xml
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_margin="10dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dimens.xml
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_margin="10dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_margin="10dp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@mariobehling @iamareebjamal peer review done |
@mariobehling ready to merge |
Fixes #385
Screenshots:
On Drawer:
After Opening:
Drawn and Saved:
ClipArts get Updated: