briangriffey / book-animation Goto Github PK
View Code? Open in Web Editor NEWbook-animation
License: Apache License 2.0
book-animation
License: Apache License 2.0
Hi! This project might be dead, but I was interested in using what you've got as long as I can find a way to trigger the full animation with a button press. I'm having difficulty finding the right place to hook in to run a full animation (am not familiar with Android, obviously), any chance I could get some support in this? If I getting working, I would contribute. ๐
How would one go about putting a edittext on a page. I've tried but the touch event doesn't reach the editText.
Hello,
I want use book animation for my application but PageTurnLayout not working.
my code :
@OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
layout = new PageTurnLayout ( this.getBaseContext() );
PageTurnLayout.LayoutParams layoutparams = new PageTurnLayout . LayoutParams ( ViewGroup . LayoutParams.MATCH_PARENT , ViewGroup . LayoutParams.MATCH_PARENT);
layout . setLayoutParams ( layoutparams );
layout.setBackgroundColor(getResources().getColor(R.color.fond));
menus = Restaurants.menus;
for (int i = 0; i < menus.size(); i++) {
LinearLayout menu = new LinearLayout(layout.getContext());
LinearLayout.LayoutParams params = new LinearLayout . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT , Gravity . CENTER_HORIZONTAL | Gravity . CENTER_VERTICAL );
menu.setLayoutParams(params);
menu.setBackgroundColor(getResources().getColor(R.color.fond));
menu.setOrientation ( LinearLayout . VERTICAL );
TextView nom = new TextView(menu.getContext());
nom. setLayoutParams ( new LinearLayout . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT, 1f ));
nom.setGravity(Gravity . CENTER_HORIZONTAL | Gravity . CENTER_VERTICAL);
nom.setTypeface(TBLActivity.CLB);
nom.setTextColor(getResources().getColor(R.color.text));
nom.setTextSize(12);
nom.setText(menus.get(i).nom);
TextView descriptif = new TextView(menu.getContext());
descriptif. setLayoutParams ( new LinearLayout . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT, 0.4f ));
descriptif.setGravity(Gravity . CENTER_HORIZONTAL | Gravity . CENTER_VERTICAL);
descriptif.setTypeface(TBLActivity.CLB);
descriptif.setTextColor(getResources().getColor(R.color.text));
descriptif.setTextSize(6);
descriptif.setText(menus.get(i).descriptif);
TextView prix = new TextView(menu.getContext());
prix. setLayoutParams ( new LinearLayout . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT, 1f ));
prix.setGravity(Gravity . CENTER_HORIZONTAL | Gravity . CENTER_VERTICAL);
prix.setTypeface(TBLActivity.CLB);
prix.setTextColor(getResources().getColor(R.color.text));
prix.setTextSize(5);
prix.setText(menus.get(i).prix);
menu.addView(nom);
menu.addView(descriptif);
menu.addView(prix);
layout.addView(menu);
}
setContentView(layout);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.