Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,226,964 members, 8,068,763 topics. Date: Monday, 03 February 2025 at 05:11 AM |
Nairaland Forum / Science/Technology / Phones / Learn How To Develop Android Apps With Your Android Phone (20765 Views)
Learn To Develop Android & Ios Apps Without Writing Codes(free Tutorial) / How To Lock Apps With Fingerprint On Any Infinix Phone Running Android 7 Nougat / How To Lock Your Apps With Password Or Fingerprint On Infinix XUI 2.0 (2) (3) (4)
(1) (2) (3) (4) (5) (6) (7) (8) (9) (Reply) (Go Down)
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 11:49am On Jul 11, 2016 |
Not too bad so far.
|
Re: Learn How To Develop Android Apps With Your Android Phone by Mrluv(m): 6:45pm On Jul 11, 2016 |
DavidTheGeek:bro i cant acess play store can u upload the app here |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 2:23pm On Jul 12, 2016 |
yorex2011:Also, by using the 2nd method, you can apply style (bold and italic) at different points of a text. Example: <string name="title"><b>This text is a bold text</b> while this other <i>text here is italic</i></string> Bold - <b>text here</b> Italic - <i>text here</i> yorex2011 i see you. Thanks for the contribution |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 2:29pm On Jul 12, 2016 |
Reyginus:Have you added style and increased the text size? |
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 2:30pm On Jul 12, 2016 |
DavidTheGeek:No. Let me try it now. I'm not using the second method btw. |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 2:36pm On Jul 12, 2016 |
Reyginus:Okay. Well the 1st method is quicker when coding. Tho it's not adviceable to use it for big projects. |
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 2:51pm On Jul 12, 2016 |
DavidTheGeek:Why? |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 3:03pm On Jul 12, 2016 |
Reyginus:Read yorex2011 post above. |
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 3:11pm On Jul 12, 2016 |
How about this, DavidTheGeek? I borrowed your colour codes.
|
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 3:15pm On Jul 12, 2016 |
Jinf:Where is the string.xml file? Or do I create it myself? |
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 3:20pm On Jul 12, 2016 |
.. |
Re: Learn How To Develop Android Apps With Your Android Phone by yorex2011: 7:16pm On Jul 12, 2016 |
Reyginus:Its in the res folder |
Re: Learn How To Develop Android Apps With Your Android Phone by phensbassey: 1:44am On Jul 13, 2016 |
DavidTheGeek:here s a screen shot of mine its showing me eror pls tel me what idid wrong
|
Re: Learn How To Develop Android Apps With Your Android Phone by richez25(m): 5:42am On Jul 13, 2016 |
DavidTheGeek: Add me to the whatsapp group, wud be easier to relate there.. 08067182848 |
Re: Learn How To Develop Android Apps With Your Android Phone by Nobody: 8:28am On Jul 13, 2016 |
phensbassey:Create a gap using the symbol _ between your Text Colour like the others. |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 10:20am On Jul 13, 2016 |
phensbassey:Copy and paste your code here. |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 10:23am On Jul 13, 2016 |
Reyginus:Not bad. The background color tho |
Re: Learn How To Develop Android Apps With Your Android Phone by xtophy(m): 11:20am On Jul 13, 2016 |
colour codes stuff.... try http://www.w3schools.com/colors/colors_names.asp |
Re: Learn How To Develop Android Apps With Your Android Phone by xtophy(m): 11:31am On Jul 13, 2016 |
i changed the colour code
|
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 11:46am On Jul 13, 2016 |
MOVING ON.... BUTTON We're still working on our app. Button A Button is a Push-button which can be pressed, or clicked, by the user to. perform an action. Attributes The following are the important attributes related to Button control. You can check Android official documentation for complete list of attributes. * android:text - This is the Text to display. android:text="Click Me" * android:id - This supplies an identifier name for this view eg android:id="@+id/button1" * android:onClick - This is the name of the method in this View's context to invoke when the view is clicked. eg android:onClick="showToast" There are 2 ways to respond to a button click. 1. Using the Button onClick attribute 2. Registering an onClick Event listener Lets use the Option 1 first... To respond to button clicks using onClick attribute, you need to create a method in your activity (in this case MainActivity.java) and then invoke it in your Button package com.learning.myfirstapp; public void showToast(View v) showToast is the name i chose to call the method i created. You can name it anything you like. In your main.xml, add onClick attribute and invoke the method: android:onClick="showToast" ********** Click menu and Run. Open your app and click the button. A toast message should appear.
|
Re: Learn How To Develop Android Apps With Your Android Phone by deekseen(m): 1:35pm On Jul 13, 2016 |
I got this! (see attached picture). However, the text on the button isn't displaying well and I will want the sentences in red and green to display on different lines. What am I not doing right?
|
Re: Learn How To Develop Android Apps With Your Android Phone by phensbassey: 1:39pm On Jul 13, 2016 |
DavidTheGeek:here it is <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:background="#ffffff" andriod:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" android:textColor="#ff0000"/> <Button android:id="@+id/click_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Click Me" /> |
Re: Learn How To Develop Android Apps With Your Android Phone by deekseen(m): 1:45pm On Jul 13, 2016 |
Here's my code <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:background="#ffffff"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="When I saw the colour RED, I bled." android:textSize="10sp" android:textStyle="italic" android:textColor="#ff0000"/>\n <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="When I saw the colour Green, I screamed" android:textSize="10sp" android:textColor="#008000"/> <Button android:id="@+id/click_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Click Me" android:textSize="20sp" android:onClick="showToast" android:textColor="#ffffff"/> </LinearLayout> I had to create 2 TextViews for the different colors because I couldn't combine them in one TextView. The bigger the text in the sentences, the smaller the button. |
Re: Learn How To Develop Android Apps With Your Android Phone by xtophy(m): 2:49pm On Jul 13, 2016 |
Reyginus:dats also an error bro...wat i noticed is dat it is textSize not textsize, textColor not textcolour |
Re: Learn How To Develop Android Apps With Your Android Phone by Jinf: 8:51pm On Jul 13, 2016 |
phensbassey:That's where your error is. You mis-spelt android. Correct it. ~ DavidTheGeek |
Re: Learn How To Develop Android Apps With Your Android Phone by Jinf: 9:01pm On Jul 13, 2016 |
deekseen:You didn't add an orientation to your layout. By default it's horizontal that's why the button would disappear if the text is long. What you need is vertical. add "android:orientation="vertical" in LinearLayout. CORRECTION: \n should not be added outside, it should be inside TextView. ~DavidTheGeek |
Re: Learn How To Develop Android Apps With Your Android Phone by shakrullah(m): 11:37pm On Jul 13, 2016 |
DavidTheGeek:I am in sir |
Re: Learn How To Develop Android Apps With Your Android Phone by deekseen(m): 2:17pm On Jul 14, 2016 |
Jinf:Corrected. Thanks. 1 Like
|
Re: Learn How To Develop Android Apps With Your Android Phone by destino24(m): 9:51pm On Jul 14, 2016 |
Earth2Metahuman: Regular coding, but in a more organised way |
Re: Learn How To Develop Android Apps With Your Android Phone by Toluene15: 1:33pm On Jul 15, 2016 |
Next.. How do we make the "<button" respond?
|
Re: Learn How To Develop Android Apps With Your Android Phone by pators(m): 4:40pm On Jul 15, 2016 |
cool i really need guidance on C# |
Re: Learn How To Develop Android Apps With Your Android Phone by DavidTheGeek: 2:35am On Jul 16, 2016 |
Toluene15:I've posted that already. Check my previous posts. |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (Reply)
MTN Who Deserves To Be A Millionaire Winner Pockets N50 Million Apartment / How To Check If Your MTN SIM Or Device Is 4G Ready / Unlock Ur E303,e173 and any ZTEs modem
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2025 Oluwaseun Osewa. All rights reserved. See How To Advertise. 59 |