Simple view which allow you to customise your pizza's toppings and size as per your choice.

Overview

TwistedPizzaToppingsView

Overview

Simple view which allows options to customize your pizza toppings and size as per your choice.

ezgif com-gif-maker (10)

Features

  • Android 12 support
  • Easy setup
  • Pizza image customization
  • Pizza size customization
  • Topping size customization
  • Topping quantity customization
  • Pizza serving plate customization
  • Animation customization
  • Orientation support

Usage

Dependencies

  • Step 1: Add the JitPack repository in your project build.gradle file
allprojects {
	    repositories {
		    ...
		    maven { url 'https://jitpack.io' }
	    }
    }

or

If Android studio version is Arctic Fox or higher then add it in your settings.gradle

dependencyResolutionManagement {
  		repositories {
       		...
       		maven { url 'https://jitpack.io' }
   		}
   }
  • Step 2: Add the dependency in your app module build.gradle file
dependencies {
		    ...
	        implementation 'com.github.Mindinventory:TwistedPizzaToppingsView:x.x.x'
	}

Implementation

  • Step 1: Add TwistedPizzaToppingsView in your xml and customize attributes
   <com.mindinventory.twistedpizzatoppings.TwistedPizzaToppingsView
       android:id="@+id/twistedPizzaToppingsView"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       app:animationDuration="800"
       app:pizzaAnimation="true"
       app:pizzaImage="@drawable/pizza5"
       app:pizzaSize="large"
       app:pizzaImageMargin="@dimen/_20sdp"
       app:plateImage="@drawable/plate"
       app:toppingQuantity="12"
       app:toppingViewSize="@dimen/_15sdp" />

Step 2: Add Topping on pizza

 fun addTopping(resId: Int)

Customize properties of some attributes programmatically

fun setPizzaImage(resId: Int)
fun setPizzaImage(uri: Uri)
fun setPizzaSize(@IntRange(from = 1, to = 100) size: Int)
fun setPlateImage(resId: Int)
fun setPlateImage(uri: Uri)
fun setAnimationDuration(@IntRange(from = 1, to = 1000) value: Long)

Appearance

Attribute Type Description Default
animationDuration long Customize animation duration (From 1 to 1000 ms) 800ms
pizzaAnimation boolean Enable pizza & plate view animation true
pizzaSize enum SMALL, MEDIUM & LARGE Set pizza view size LARGE
pizzaImage int or Uri Set pizza image ic_pizza.png
pizzaImageMargin int Set pizza image margin _20dp
plateImage int or Uri Set pizza plate image plate.png
toppingQuantity int Customize adding topping quantity (maximum 12) 12
toppingViewSize int Customize topping view size _15dp

Guideline for contributors

Contribution towards our repository is always welcome, we request contributors to create a pull request to the develop branch only.

Guideline to report an issue/feature request

It would be great for us if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue

Requirements

  • minSdkVersion >= 21
  • Androidx

Library used

LICENSE!

TwistedPizzaToppingsView is MIT-licensed.

Let us know!

If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventorycom

Please feel free to use this component and Let us know if you are interested to building Apps or Designing Products.

app development
You might also like...
Simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money.
Simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money.

GreenStash GreenStash is a simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money. 🤙 S

An Android app where you can view and examine the details of fast food divided into categories.
An Android app where you can view and examine the details of fast food divided into categories.

🍔 FastFood An Android application where you can view and examine the details of fast food divided into categories. 🛠 Tech Stack & Open-Source Librar

LinkHub is a simple and effective link management application that can help you to easily manage your app with no ads!
LinkHub is a simple and effective link management application that can help you to easily manage your app with no ads!

LinkHub LinkHub is a simple and effective link management application that can help you to easily manage your own links with no ads! Download Screensh

This is a practice app. An app that you can find random recipes and choose the ones you like.
This is a practice app. An app that you can find random recipes and choose the ones you like.

A food suggestion app like Tinder This is a practice app. In this app, you can find random recipes and choose the ones you like. This is main menu. Yo

A simple App which fetches data from NewYork times api and show news to the user
A simple App which fetches data from NewYork times api and show news to the user

Stay-TheNewsApp This is a simple java app, which fetches data from NewYork times api and show news to the user, News can be seen from various categori

sample project that shows you how you can use Ktor to creat a server for real Project.

Ktor-Sample This is a sample project that shows you how you can use Ktor to creat a server for real Project. What is done Save data to database (Get a

If you had one month to visit the best places in Kenya, where would you go?
If you had one month to visit the best places in Kenya, where would you go?

VisitKenya If you had one month to visit the best places in Kenya, where would you go? This app just shows you sample places where you could visit, wi

AppD-Task1 - A simple basic app with use of card view and toast
AppD-Task1 - A simple basic app with use of card view and toast

AppD-Task1 Made a simple basic app with use of card view and toast. Screenshots

A counter down timer for android which supports both dark and light mode and Persian text and digit.
A counter down timer for android which supports both dark and light mode and Persian text and digit.

FlipTimerView A counter down timer for android which supports both dark and light mode and Persian text and digit. English Perisan Getting started Ste

Releases(0.0.3)
Owner
MindInventory
MindInventory works with Enterprises, Startups, and Agencies since 2011 providing web, mobile app development, enterprise mobility solutions & DevOps services.
MindInventory
Automatically generates UI demos which allow users to call any function with any parameters

Automatically generates UI demos which allow users to call any function (including composable ones) with any parameters. Useful for building demo screens in playground apps of various design systems.

Anton Popov 3 Jul 28, 2022
A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends!

Meme Share A very simple Android app which shows you random memes with the help of meme-api which you can share with your friends! Tech stack 100% wri

Stɑrry Shivɑm 8 Aug 10, 2022
Application to allow user to search his favourite repositories from Github.

Github Search Repositories App details: The application contain one screen with a search field and list of repositories. After the user inputs, the se

Arsalan Mehmood 1 Nov 26, 2022
An Android Image compress library, reduce's the size of the image by 90% without losing any of its pixels.

Image Compressor An Android image compress library, image compressor, is small and effective. With very little or no image quality degradation, a comp

Vinod Baste 11 Dec 23, 2022
A webapp which generates a simple Discord profile banner image in real-time which shows user's status and activity.

DiscordProfileBanner This tool generates a Discord profile banner image in realtime. I wrote it for use in my AniList profile. An example in action: H

Quanta 11 Oct 17, 2022
A simple android library which helps you to create a curved bottom navigation

CurvedBottomNavigation A simple android library which helps you to create a curved bottom navigation DEMO Setup Update your module level build.gradle

Qama A. Safadi 92 Dec 29, 2022
A Simple Android library to get the number of words and give you the time it will take you to finish an article/story.

MinRead A Simple Android library to get the number of words and give you the time it will take you to finish an article/story. Prerequisite Androidx K

Nwokocha wisdom maduabuchi 36 Nov 17, 2021
A simple tool used to check the users you follow that do not follow you back.

instafbchecker - Instagram no life guide Current Release: v1.0.1 (30/08/2022) A command line tool used to check which users dont follow you back on In

Nathan 2 Aug 30, 2022
A custom view for rating which easy to make and use, but function is excellent

QRatingView A custom view for rating which easy to make and use, but function is excellent Effect Picture Properties <declare-styleable name="QRat

QCoder 1 Dec 3, 2021