Click here to Skip to main content
14,734,952 members
Home » Discussions » Android
   

Android

 
Questionhelp me Convert code SignalR From Xamarin (C#) to Eclipse (Java) Pin
thientamtita26-Nov-14 23:53
Memberthientamtita26-Nov-14 23:53 
AnswerRe: help me Convert code SignalR From Xamarin (C#) to Eclipse (Java) Pin
Richard MacCutchan26-Nov-14 23:59
mveRichard MacCutchan26-Nov-14 23:59 
GeneralNeed help from Google Glass dev/designers/testers! Pin
Josh Siemanowicz24-Nov-14 6:42
MemberJosh Siemanowicz24-Nov-14 6:42 
GeneralRe: Need help from Google Glass dev/designers/testers! Pin
Richard MacCutchan24-Nov-14 7:23
mveRichard MacCutchan24-Nov-14 7:23 
QuestionWeb browser Pin
Member 1125990424-Nov-14 6:08
MemberMember 1125990424-Nov-14 6:08 
AnswerRe: Web browser Pin
Richard MacCutchan24-Nov-14 6:55
mveRichard MacCutchan24-Nov-14 6:55 
Questionabout images in ListView Pin
Erdinc2724-Nov-14 2:28
MemberErdinc2724-Nov-14 2:28 
QuestionI can't find control id in R.id Pin
Richard MacCutchan21-Nov-14 4:19
mveRichard MacCutchan21-Nov-14 4: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]

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);
	}
}


<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 5:48
MemberDavid Crow22-Nov-14 5:48 
AnswerRe: I can't find control id in R.id Pin
Richard MacCutchan22-Nov-14 6:52
mveRichard MacCutchan22-Nov-14 6:52 
QuestionHow to display ListFragments with corresponding details fragments Pin
Member 1124009217-Nov-14 1:37
MemberMember 1124009217-Nov-14 1:37 
SuggestionRe: How to display ListFragments with corresponding details fragments Pin
David Crow20-Nov-14 12:04
MemberDavid Crow20-Nov-14 12:04 
SuggestionRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan17-Nov-14 0:46
mveRichard MacCutchan17-Nov-14 0:46 
QuestionGive Mee Lotsss Ideasss Pin
owais_ahmed_ansari13-Nov-14 3:02
Memberowais_ahmed_ansari13-Nov-14 3:02 
RantRe: Give Mee Lotsss Ideasss Pin
Kornfeld Eliyahu Peter13-Nov-14 3:16
professionalKornfeld Eliyahu Peter13-Nov-14 3:16 
AnswerRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan13-Nov-14 3:59
mveRichard MacCutchan13-Nov-14 3:59 
QuestionHow to read files in the folder by clicking on the button Pin
Kroshandowski11-Nov-14 5:18
MemberKroshandowski11-Nov-14 5:18 
QuestionRe: How to read files in the folder by clicking on the button Pin
David Crow20-Nov-14 12:08
MemberDavid Crow20-Nov-14 12:08 
QuestionBinary XML missing layout_width. Pin
ericgahn30-Oct-14 12:47
Memberericgahn30-Oct-14 12:47 
AnswerRe: Binary XML missing layout_width. Pin
Dominic Burford3-Nov-14 1:40
professionalDominic Burford3-Nov-14 1:40 
GeneralRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 21:27
Memberericgahn5-Nov-14 21:27 
GeneralRe: Binary XML missing layout_width. Pin
Richard MacCutchan5-Nov-14 23:38
mveRichard MacCutchan5-Nov-14 23:38 
QuestionRe: Binary XML missing layout_width. Pin
David Crow3-Nov-14 5:47
MemberDavid Crow3-Nov-14 5:47 
AnswerRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 21:28
Memberericgahn5-Nov-14 21:28 
GeneralRe: Binary XML missing layout_width. Pin
Richard MacCutchan5-Nov-14 23:41
mveRichard MacCutchan5-Nov-14 23: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.