Click here to Skip to main content
15,887,822 members
Home / Discussions / Android
   

Android

 
Questionhelp me Convert code SignalR From Xamarin (C#) to Eclipse (Java) Pin
thientamtita26-Nov-14 22:53
thientamtita26-Nov-14 22:53 
AnswerRe: help me Convert code SignalR From Xamarin (C#) to Eclipse (Java) Pin
Richard MacCutchan26-Nov-14 22:59
mveRichard MacCutchan26-Nov-14 22:59 
GeneralNeed help from Google Glass dev/designers/testers! Pin
Josh Siemanowicz24-Nov-14 5:42
Josh Siemanowicz24-Nov-14 5:42 
GeneralRe: Need help from Google Glass dev/designers/testers! Pin
Richard MacCutchan24-Nov-14 6:23
mveRichard MacCutchan24-Nov-14 6:23 
QuestionWeb browser Pin
Member 1125990424-Nov-14 5:08
Member 1125990424-Nov-14 5:08 
AnswerRe: Web browser Pin
Richard MacCutchan24-Nov-14 5:55
mveRichard MacCutchan24-Nov-14 5:55 
Questionabout images in ListView Pin
Erdinc2724-Nov-14 1:28
Erdinc2724-Nov-14 1:28 
QuestionI can't find control id in R.id Pin
Richard MacCutchan21-Nov-14 3:19
mveRichard MacCutchan21-Nov-14 3:19 
[edit]
I edited this message and it is now (incorrectly) under my name!
Can't find a way to go back to the original user.
[/edit]

Java
package com.example.abcpos;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.GridView;

public class OrderMenu extends Activity {

	private GridView gridView;
	private GridViewAdapter customGridAdapter;
	
	<a href="http://www.codeproject.com/Members/override">@Override</a>
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_order_menu);
		
 :sigh:  :sigh:  :sigh:      // It should be R.id.grdOrderMenu *********
		gridView = (GridView) findViewById(R.id.??????)
		
	}

	<a href="http://www.codeproject.com/Members/override">@Override</a>
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.order_menu, menu);
		return true;
	}

	<a href="http://www.codeproject.com/Members/override">@Override</a>
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
}


XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.abcpos.OrderMenu" >

    <GridView
        android:id="@+id/grdOrderMenu"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:numColumns="3" />

    

</RelativeLayout>

Sign


modified 21-Nov-14 11:20am.

QuestionRe: I can't find control id in R.id Pin
David Crow22-Nov-14 4:48
David Crow22-Nov-14 4:48 
AnswerRe: I can't find control id in R.id Pin
Richard MacCutchan22-Nov-14 5:52
mveRichard MacCutchan22-Nov-14 5:52 
QuestionHow to display ListFragments with corresponding details fragments Pin
Member 1124009217-Nov-14 0:37
Member 1124009217-Nov-14 0:37 
SuggestionRe: How to display ListFragments with corresponding details fragments Pin
David Crow20-Nov-14 11:04
David Crow20-Nov-14 11:04 
SuggestionRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan16-Nov-14 23:46
mveRichard MacCutchan16-Nov-14 23:46 
QuestionGive Mee Lotsss Ideasss Pin
owais_ahmed_ansari13-Nov-14 2:02
owais_ahmed_ansari13-Nov-14 2:02 
RantRe: Give Mee Lotsss Ideasss Pin
Kornfeld Eliyahu Peter13-Nov-14 2:16
professionalKornfeld Eliyahu Peter13-Nov-14 2:16 
AnswerRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan13-Nov-14 2:59
mveRichard MacCutchan13-Nov-14 2:59 
QuestionHow to read files in the folder by clicking on the button Pin
Kroshandowski11-Nov-14 4:18
Kroshandowski11-Nov-14 4:18 
QuestionRe: How to read files in the folder by clicking on the button Pin
David Crow20-Nov-14 11:08
David Crow20-Nov-14 11:08 
QuestionBinary XML missing layout_width. Pin
ericgahn30-Oct-14 11:47
ericgahn30-Oct-14 11:47 
AnswerRe: Binary XML missing layout_width. Pin
Dominic Burford3-Nov-14 0:40
professionalDominic Burford3-Nov-14 0:40 
GeneralRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 20:27
ericgahn5-Nov-14 20:27 
GeneralRe: Binary XML missing layout_width. Pin
Richard MacCutchan5-Nov-14 22:38
mveRichard MacCutchan5-Nov-14 22:38 
QuestionRe: Binary XML missing layout_width. Pin
David Crow3-Nov-14 4:47
David Crow3-Nov-14 4:47 
AnswerRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 20:28
ericgahn5-Nov-14 20:28 
GeneralRe: Binary XML missing layout_width. Pin
Richard MacCutchan5-Nov-14 22:41
mveRichard MacCutchan5-Nov-14 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.