Nschool providing real-time android course in Coimbatore along with placement and offer various projects to improve their android app development skills
seen from Spain
seen from United States

seen from Japan
seen from United States
seen from United States
seen from Saudi Arabia
seen from Australia
seen from China
seen from United States
seen from United States

seen from Türkiye

seen from United States
seen from China
seen from China
seen from United States

seen from Canada
seen from China

seen from France

seen from United States

seen from United States
Nschool providing real-time android course in Coimbatore along with placement and offer various projects to improve their android app development skills
Nschool providing real-time android course in Coimbatore along with placement and offer various projects to improve their android app development skills
Nschool providing real-time android course in Coimbatore along with placement and offer various projects to improve their android app development skills
Upload Multiple Images Using Retrofit Library
Upload Multiple Images Using Retrofit Library
In this tutorial, we will upload multiple images to server using Retrofit Library.
Creating Server Side Codes
Go to your server’s root directory (c:/wamp/www) and create a new folder. I created UploadImage.
Inside the folder create a folder named uploads, in this folder, we will save all the uploaded images.
Create a file named upload.php and write the following code.
View On WordPress
Send multiple files to server using retrofit 1.9
If you want to send multiple files,Images, Text etc then you need to send that whole data as MultipartTypedOutput. This is same as Multipart Entity in HTTP Client & Post.
So lets start :
this is my server url where i m going to upload files : xml http://192.168.1.106/learnpainless/android/file_upload/fileUpload.php and these are parameters : image,email,website
To send files to server we need to use POST method instead of GET method. I assume that you must know about POST and GET methods and you also know about how to use Retrofit API. and then we will attach “MultipartTypedOutput” to Body of our response to send over POST method.
How to create TextArea in Android
Hi Android coders!!!!!
So if you want to add TextArea in your Android App then you will notice that there is no TextArea available for Android. but TextArea is available for all other platforms like html,iOS,C# etc. But in android there is only EditText widget which is editable.
So what to do now?
But there is still an option available to make TextArea widget in android app. you can modify EditText so it can behave like TextArea. first of all figure out difference between EditText and TextArea so that we can easily modify EditText
TextArea is multiline
TextArea is scrollable from inside, so we can view all text inside textarea.
Text in TextArea start from Top-Left corner.
TextArea is box type.
TextArea can be scroll from top to bottom and right to left.
So we can add these features to normal EditText widget of android.
layout_weight的用法
android:layout_weight
字面上的解釋就是重要度,用於賦予Layout中的View元件的重要度(預設值為0)。
舉例來說,如果有兩個View元件在同一LinearLayout裡,各自的weight值皆為1,則兩者平分LinearLayout中的面積。
Layout_weight就是元件大小會佔了"自身weight/parent layout的總weight"比的面積。