Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 01:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Android] Update einer Activity mit neuen Widgets

Discussion on [Android] Update einer Activity mit neuen Widgets within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
eXtreme''s Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 452
Received Thanks: 20
[Android] Update einer Activity mit neuen Widgets

Hallo,
ich habe vor ein kleines Spiel zu schreiben und stehe vor meinem 1. Problem.

Ich möchte (wenn man bspw. den Button "Spiel starten" drückt) meine aktuelle Activity neu laden, allerdings mit neuen Komponenten wie z.B. neuen Buttons, neuen TextViews usw. Ich könnte theoretisch eine neue Activity starten, ist aber nicht Sinn der Sache, weil es nicht unbedingt schön aussieht. Hat jemand eine Idee wie ich das umsetze?

Vielen Dank
eXtreme' is offline  
Old 12/01/2014, 17:45   #2
 
XxharCs's Avatar
 
elite*gold: 34
Join Date: Apr 2011
Posts: 1,475
Received Thanks: 1,228
Die Komponenten, Layouts usw. programmier-technisch erstellen.
Sprich nicht über xml das Design definieren sondern Code-"mäßig".

Bsp:
Code:
Button bt = new Button(this);
bt.setText("A Button");
bt.setHeight(123);
bt.setWidth(123);
// .... usw.
XxharCs is offline  
Old 12/07/2014, 23:14   #3
 
Warnuk3r's Avatar
 
elite*gold: 307
Join Date: Jul 2009
Posts: 1,091
Received Thanks: 434
Das macht man alles wie XxharCs schrieb über den Code. Du könntest alternativ der Activity eine neue xml Datei zuordnen durch setContentView(xmldatei);
Warnuk3r is offline  
Reply


Similar Threads Similar Threads
Der Beginn einer neuen Ära! (rießiges Metin2 update)
02/28/2013 - Metin2 - 22 Replies
Quelle -> Metin2.de Forum http://image.board.gameforge.com/uploads/announce ments/metin2/it/announcement_metin2_it_8c0112c88c0 fe5492d209aa284104fdf.png Liebe Community, das Warten hat ein Ende - der Startschuss zum großen Metin2-Update ist gefallen! Schultert eure Waffen und zieht in eine neue Ära: Erobert jetzt den Fels der Dunklen Drachen! Lange Zeit lag diese geheimnisvolle Insel im Verborgenen, doch nun haben sich die Nebelschleier gelüftet. Gehört zu den Ersten, die ihren Fuß auf...
Crytec' D3D work after update No Crash&No lagg/ Chams,STW,ESP heute nach NEUEN Update
05/06/2012 - WarRock Hacks, Bots, Cheats & Exploits - 36 Replies
Hallo liebe user hier relase ich mein Hack V 2.5 neuen update is relased DOWNLOAD dll+exe: File-Upload.net - Crytec---Hack-work-updatet-after-update.rar



All times are GMT +1. The time now is 01:45.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.