Click here to Skip to main content
14,977,701 members
Home / Discussions / Android
   

Android

 
GeneralRe: FCM notification Pin
Malashree Halade9-Sep-17 5:38
MemberMalashree Halade9-Sep-17 5:38 
GeneralRe: FCM notification Pin
Malashree Halade9-Sep-17 5:41
MemberMalashree Halade9-Sep-17 5:41 
QuestionRe: FCM notification Pin
David Crow9-Sep-17 14:31
MemberDavid Crow9-Sep-17 14:31 
Generalfor googple map serach location Pin
Member 133938216-Sep-17 2:23
MemberMember 133938216-Sep-17 2:23 
QuestionRe: for googple map serach location Pin
David Crow6-Sep-17 3:14
MemberDavid Crow6-Sep-17 3:14 
QuestionRe: for googple map serach location Pin
Richard MacCutchan6-Sep-17 3:55
mveRichard MacCutchan6-Sep-17 3:55 
QuestionRe: for googple map serach location Pin
thatraja6-Sep-17 4:33
professionalthatraja6-Sep-17 4:33 
QuestionIssue navigating to a Fragment Pin
Vimalsoft(Pty) Ltd3-Sep-17 10:56
professionalVimalsoft(Pty) Ltd3-Sep-17 10:56 
Good Day All

i have a Navigation Drawer which is defined like this

<FrameLayout
                android:id="@+id/content_frame"
                android:layout_width="match_parent"
                android:background="#0099ff"
                android:layout_height="fill_parent" />

and when one of my drawer item is selected i have this code

// Create a new fragment and a transaction.
                        FragmentTransaction fragmentTx = this.FragmentManager.BeginTransaction();
                        Fragment1 aDifferentDetailsFrag = new Fragment1(); 
                        // The fragment will have the ID of Resource.Id.fragment_container.
                        fragmentTx.Add(Resource.Id.content_frame, aDifferentDetailsFrag);

<pre>
                    // Commit the transaction.
                    fragmentTx.Commit();
                    Toast.MakeText(this, "Home:", ToastLength.Long).Show();</pre>

and Fragment1 is defined like this
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:local="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"

<pre>
android:paddingLeft="12dp"
        android:paddingRight="12dp">

    <Button
        android:textSize="24dp"
        android:textColor="#FFF"
        android:id="@+id/btn_details_file_save"
        android:layout_width="match_parent" 
        android:layout_height="wrap_content"
        android:text="HOME" />



and the cs is defined like this

public class Fragment1 :  Fragment
    {

<pre>
    public override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);

        // Create your fragment here
    }
    public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
    {
        return inflater.Inflate(Resource.Layout.Fragment1, null, false); 
    }
}</pre>

when i run this , i only get a toast message, the Fragment1 does not show which has a button that is having text "home"

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vimalsoft.com
vuyiswa[at]vimalsoft.com

Question(View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd30-Aug-17 7:22
professionalVimalsoft(Pty) Ltd30-Aug-17 7:22 
SuggestionRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow30-Aug-17 10:35
MemberDavid Crow30-Aug-17 10:35 
GeneralRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd30-Aug-17 11:08
professionalVimalsoft(Pty) Ltd30-Aug-17 11:08 
QuestionRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow31-Aug-17 3:56
MemberDavid Crow31-Aug-17 3:56 
AnswerRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd31-Aug-17 4:00
professionalVimalsoft(Pty) Ltd31-Aug-17 4:00 
AnswerRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
David Crow31-Aug-17 4:23
MemberDavid Crow31-Aug-17 4:23 
GeneralRe: (View) in a parent or ancestor Context for android:onClick attribute defined on view class Button Pin
Vimalsoft(Pty) Ltd3-Sep-17 10:49
professionalVimalsoft(Pty) Ltd3-Sep-17 10:49 
SuggestionAndroid Notification by App Pin
Andy_Bell27-Aug-17 6:58
MemberAndy_Bell27-Aug-17 6:58 
QuestionRe: Android Notification by App Pin
David Crow27-Aug-17 13:00
MemberDavid Crow27-Aug-17 13:00 
AnswerRe: Android Notification by App Pin
Andy_Bell27-Aug-17 20:59
MemberAndy_Bell27-Aug-17 20:59 
QuestionRe: Android Notification by App Pin
David Crow28-Aug-17 2:05
MemberDavid Crow28-Aug-17 2:05 
AnswerRe: Android Notification by App Pin
Andy_Bell28-Aug-17 3:40
MemberAndy_Bell28-Aug-17 3:40 
GeneralRe: Android Notification by App Pin
Member 1328039729-Aug-17 2:29
MemberMember 1328039729-Aug-17 2:29 
GeneralRe: Android Notification by App Pin
kusuma chowdary22-Sep-17 0:58
Memberkusuma chowdary22-Sep-17 0:58 
QuestionUsing Android class and Xml files as templet Pin
venky.nani9120-Aug-17 20:06
Membervenky.nani9120-Aug-17 20:06 
AnswerRe: Using Android class and Xml files as templet Pin
Richard MacCutchan20-Aug-17 21:55
mveRichard MacCutchan20-Aug-17 21:55 
GeneralRe: Using Android class and Xml files as templet Pin
venky.nani9120-Aug-17 22:56
Membervenky.nani9120-Aug-17 22:56 

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.