J'ai un fichier xml que je veux faire zoomer.Comment faire un LinearLayout zoomable?
Répondre
use this jar in your application
1.Créez une nouvelle mise en page (R.layout.zoomableview) pour les vues que je veux appliquer la fonctionnalité de zoom.
2.Placez-le dans ZoomView.
3.Placez ensuite ZoomView dans le conteneur principal où vous souhaitez afficher la vue zoomable.
private ZoomView zoomView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_zoomable);
View v = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.zoomableview, null, false);
v.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
zoomView = new ZoomView(this);
zoomView.addView(v);
main_container = (LinearLayout) findViewById(R.id.main_container);
main_container.addView(zoomView); }
@BlackTiger qui mise en page, nous pouvons déclarer en inflate mise en page ....... – NagarjunaReddy
@NVR quelle mise en page nous pouvons déclarer en déployer la mise en page ....... – NagarjunaReddy
Super! son fonctionnement :) –
- 1. Faire un UIView zoomable
- 2. Faire un highlightable vue dans un LinearLayout
- 3. Faire une mise en page personnalisée zoomable
- 4. Faire LinearLayout dans FrameLayout opaque
- 5. Comment faire un EditText défilant à l'intérieur d'un LinearLayout défilant?
- 6. image zoomable - android
- 7. Insérer un linearLayout dans un autre linearLayout
- 8. Comment rendre mon ImageView zoomable?
- 9. Comment centrer un ImageView dans un LinearLayout?
- 10. Comment positionner une image zoomable avec pincement?
- 11. Comment implémenter un UIPageViewController zoomable en mode deux pages?
- 12. Comment créer TableLayout zoomable dans Android?
- 13. Collection d'objets zoomable et panable
- 14. Comment espacer des éléments dans un LinearLayout?
- 15. LinearLayout dans un ListView
- 16. Comment faire pour dynamiser le bouton sur LinearLayout?
- 17. image Faire glisser par LinearLayout dans Android
- 18. Comment faire pour gonfler Extended LinearLayout à partir de XML
- 19. comment faire de l'espace entre le bouton dans linearlayout
- 20. Comment faire pour que ImageView flotte au-dessus d'un LinearLayout?
- 21. Comment gonfler un LinearLayout (pour clavier Android)?
- 22. Comment ajuster 3 ImageViews dans un LinearLayout
- 23. Comment centrer un LinearLayout dans RelativeLayout?
- 24. Comment convertir un LinearLayout en image?
- 25. Comment ajouter Canvas dans un LinearLayout spécifique?
- 26. Android ViewPager à zoomable ImageView
- 27. Comment ajouter LinearLayout sous un autre LinearLayout dans un FrameLayout par programmation?
- 28. Custom LinearLayout carré. Comment?
- 29. Comment faire pour déplacer un LinearLayout quand un SlidingDrawer se développe?
- 30. Android + setDividerDrawable sur un LinearLayout?
Modifier la taille de la police ...... –
http://myandroidnote.blogspot.ch/2011/03/zooming-view-completely.html voir ce lien – Venkat