Register for your free account! | Forgot your password?

Go Back   elitepvpers › Coders Den › Java
You last visited: Today at 03:00

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

Advertisement



DialogBox for Android Java

Discussion on DialogBox for Android Java within the Java forum part of the Coders Den category.

Reply
 
Old   #1
 
[becky]'s Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 319
Received Thanks: 67
Question DialogBox for Android Java

Hello. I'm very, very new in java and i accepted a pretty hard project (don't ask me why, I don't know). The interface looks like this:



I want to have a DialogBox, but i can't rotate it. The DialogBox looks like this:



Could you help me, please, to rotate that box, or at least the text from the box? The other textbox were rotaded in layout.xml with
Code:
android:rotationX="180"
. But the box isn't in layout, it's in main activity, the code looks like this
Code:
button = (Button) findViewById(R.id.button2);
 
		// add button listener
		button.setOnClickListener(new OnClickListener() {
 
		@Override
		public void onClick(View arg0) {
			AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
				context);
 
			// set title
			alertDialogBuilder.setTitle("METAR");
 
			// set dialog message
			alertDialogBuilder
				.setMessage("LRSB 052300Z 10005KT 3000 -SN BR FEW005 SCT009 OVC025 00/M00 Q1023 R27/29//95 ")
				.setCancelable(false)
				.setNegativeButton("Close",new DialogInterface.OnClickListener() {
					public void onClick(DialogInterface dialog,int id) {
						// if this button is clicked, just close
						// the dialog box and do nothing
						dialog.cancel();
					}
				});
 
				// create alert dialog
				AlertDialog alertDialog = alertDialogBuilder.create();
 
				// show it
				alertDialog.show();
		};
		});
Thanks in advice.
[becky] is offline  
Reply


Similar Threads Similar Threads
[Java/Android] xml Datei Downloaden
02/01/2015 - Java - 6 Replies
Hallo liebe Com, ich hoffe ich könnt mir helfen. Mein Problem ist, dass ich es nicht schaffe, meine XML Datei von einer URL runterzuladen, um damit weiter zuarbeiten. Mein Code: onCreate(): XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); XmlPullParser parser = factory.newPullParser();
[Trading] [S] Lehrer Java für Android app
05/29/2014 - Trading - 1 Replies
Topic
Suche Java (Android) Programmierer
09/25/2013 - Coders Trading - 7 Replies
Hey, Ich suche jemanden, der fit in Java bzgl. Android ist. Das ganze soll keine Aufgabe bzw. Auftrag sein, sondern ein Projekt, was zu zweit realisiert wird. Dieses Projekt stellt eine Art Service für Programmierer und Softwarevertreiber jeder Art dar. Es wird jemand mit Erfahrung gesucht und nicht jemand, der denkt evtl. könnte er es in 3 Monaten schaffen. Einige Beispiele, die ihr können solltet: Notifications, Oberflächengestaltung (ihr sollt kein Grafiker sein, aber das ganze...
[Android 4.04] Java Problem
10/09/2012 - Smartphones - 1 Replies
Hi ich kriege immer folgende Meldung, wenn ich ne App starte die Java benötigt... oder Wie behebe ich das Problem?
Java ( Android App )
03/05/2012 - General Coding - 6 Replies
Hey Leute (; Mir ist heute so eine super idee geschossen und diese wollte ich sofort in ein kleines App für Android umetzen ^^ Mitlerweile bin ich schon ne Stunde am Googlen dran find aber einfach nicht wie es geht. Also.. Hatt jemand eine idee wie ich das Microphon vom Handy ansprechen könnte, dass es die ganze Zeit zu hört und dann das "gehörte" mit einer Datei die auf dem Handy liegt vergleicht? Also so im Shazam Prinzip Anhören --> Vergleichen



All times are GMT +2. The time now is 03:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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